From 58f1e8808ad02102f1872d40a4239b565615c5bd Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Mon, 3 Dec 2001 12:34:53 +0000 Subject: connect to "cal_set_mode" signal before calling cal_client_set_mode. Also, 2001-12-02 Rodrigo Moya * 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 --- calendar/ChangeLog | 8 ++++++++ calendar/gui/calendar-offline-handler.c | 12 +++++------- 2 files changed, 13 insertions(+), 7 deletions(-) (limited to 'calendar') diff --git a/calendar/ChangeLog b/calendar/ChangeLog index d9b1be5e66..e7a4a21a15 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,11 @@ +2001-12-02 Rodrigo Moya + + * 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 + 2001-11-30 Damon Chaplin * gui/e-itip-control.c (remove_item): only show the dialog if we 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 * -- cgit