aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2001-12-03 20:34:53 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2001-12-03 20:34:53 +0800
commit58f1e8808ad02102f1872d40a4239b565615c5bd (patch)
treec96121e3296583e88fa86045f5c3e047696db216 /calendar/gui
parentcb0c2cb9a08e5cfdde7facca0b57c3a615e7d9f0 (diff)
downloadgsoc2013-evolution-58f1e8808ad02102f1872d40a4239b565615c5bd.tar
gsoc2013-evolution-58f1e8808ad02102f1872d40a4239b565615c5bd.tar.gz
gsoc2013-evolution-58f1e8808ad02102f1872d40a4239b565615c5bd.tar.bz2
gsoc2013-evolution-58f1e8808ad02102f1872d40a4239b565615c5bd.tar.lz
gsoc2013-evolution-58f1e8808ad02102f1872d40a4239b565615c5bd.tar.xz
gsoc2013-evolution-58f1e8808ad02102f1872d40a4239b565615c5bd.tar.zst
gsoc2013-evolution-58f1e8808ad02102f1872d40a4239b565615c5bd.zip
connect to "cal_set_mode" signal before calling cal_client_set_mode. Also,
2001-12-02 Rodrigo Moya <rodrigo@ximian.com> * gui/calendar-offline-handler.c (backend_cal_opened): connect to "cal_set_mode" signal before calling cal_client_set_mode. Also, s/cal_mode_set/cal_set_mode (backend_go_offline): connect to "cal_opened" signal before calling cal_client_open_calendar svn path=/trunk/; revision=14848
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/calendar-offline-handler.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/calendar/gui/calendar-offline-handler.c b/calendar/gui/calendar-offline-handler.c
index 9c82e3fbff..a01d3fa160 100644
--- a/calendar/gui/calendar-offline-handler.c
+++ b/calendar/gui/calendar-offline-handler.c
@@ -156,10 +156,9 @@ backend_cal_opened (CalClient *client, CalClientOpenStatus status, gpointer data
return;
}
- cal_client_set_mode (client, CAL_MODE_LOCAL);
-
- gtk_signal_connect (GTK_OBJECT (client), "cal_mode_set",
+ gtk_signal_connect (GTK_OBJECT (client), "cal_set_mode",
backend_cal_set_mode, offline_handler);
+ cal_client_set_mode (client, CAL_MODE_LOCAL);
}
static void
@@ -171,15 +170,14 @@ backend_go_offline (gpointer data, gpointer user_data)
gboolean success;
client = cal_client_new ();
+ gtk_signal_connect (GTK_OBJECT (client), "cal_opened",
+ backend_cal_opened, offline_handler);
success = cal_client_open_calendar (client, uri, TRUE);
if (!success) {
update_offline (offline_handler);
gtk_object_unref (GTK_OBJECT (client));
return;
}
-
- gtk_signal_connect (GTK_OBJECT (client), "cal_opened",
- backend_cal_opened, offline_handler);
}
static void
@@ -268,7 +266,7 @@ calendar_offline_handler_init (CalendarOfflineHandler *offline_handler)
priv->client = cal_client_new ();
priv->listener_interface = CORBA_OBJECT_NIL;
- priv->is_offline = FALSE;
+ priv->is_offline = FALSE;
}
CalendarOfflineHandler *