diff options
author | Rodrigo Moya <rodrigo@novell.com> | 2004-06-04 00:11:18 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2004-06-04 00:11:18 +0800 |
commit | 75be12445f9ffea3983c620c456a63097b393e16 (patch) | |
tree | dc05b4932c64de50b1b8272ca1b674db63542759 | |
parent | c1afb96405bb7b7e093a7e7fcb55736988eea933 (diff) | |
download | gsoc2013-evolution-75be12445f9ffea3983c620c456a63097b393e16.tar.gz gsoc2013-evolution-75be12445f9ffea3983c620c456a63097b393e16.tar.zst gsoc2013-evolution-75be12445f9ffea3983c620c456a63097b393e16.zip |
Fixes #56875
2004-06-03 Rodrigo Moya <rodrigo@novell.com>
Fixes #56875
* gui/dialogs/event-editor.c (event_editor_construct): connect to
"client_changed" signal on the EventPage.
(client_changed_cb): set menu sensibility when the client changes.
* gui/dialogs/task-editor.c (task_editor_construct): connect to
"client_changed signal on the TaskPage.
(client_changed_cb): set menu sensibility when the client changes.
svn path=/trunk/; revision=26173
-rw-r--r-- | calendar/ChangeLog | 15 | ||||
-rw-r--r-- | calendar/gui/dialogs/event-editor.c | 8 | ||||
-rw-r--r-- | calendar/gui/dialogs/task-editor.c | 8 |
3 files changed, 28 insertions, 3 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index aad2578a20..98fc04d344 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,15 @@ +2004-06-03 Rodrigo Moya <rodrigo@novell.com> + + Fixes #56875 + + * gui/dialogs/event-editor.c (event_editor_construct): connect to + "client_changed" signal on the EventPage. + (client_changed_cb): set menu sensibility when the client changes. + + * gui/dialogs/task-editor.c (task_editor_construct): connect to + "client_changed signal on the TaskPage. + (client_changed_cb): set menu sensibility when the client changes. + 2004-06-02 Chris Toshok <toshok@ximian.com> * gui/migration.c (migrate_calendars): remove absolute_uri from @@ -11,9 +23,6 @@ (emlv_finalize): no need to unref the book anymore. (emlv_init): don't call start_addressbook_server. - * gui/e-meeting-store.c (start_addressbook_server): removed. - (ems_finalize): no need to unref the book anymore. - * gui/dialogs/copy-source-dialog.c (copy_source): fixed leak and pass the correct icalcomponent to e_cal_modify_object. diff --git a/calendar/gui/dialogs/event-editor.c b/calendar/gui/dialogs/event-editor.c index f8197b5f85..a035f6b87e 100644 --- a/calendar/gui/dialogs/event-editor.c +++ b/calendar/gui/dialogs/event-editor.c @@ -172,6 +172,12 @@ init_widgets (EventEditor *ee) G_CALLBACK (model_row_delete_cb), ee); } +static void +client_changed_cb (CompEditorPage *page, ECal *client, gpointer user_data) +{ + set_menu_sens (EVENT_EDITOR (user_data)); +} + /* Object initialization function for the event editor */ static void event_editor_init (EventEditor *ee) @@ -199,6 +205,8 @@ event_editor_construct (EventEditor *ee, ECal *client) comp_editor_append_page (COMP_EDITOR (ee), COMP_EDITOR_PAGE (priv->event_page), _("Appointment")); + g_signal_connect (G_OBJECT (priv->event_page), "client_changed", + G_CALLBACK (client_changed_cb), ee); priv->alarm_page = alarm_page_new (); g_object_ref (priv->alarm_page); diff --git a/calendar/gui/dialogs/task-editor.c b/calendar/gui/dialogs/task-editor.c index 166dc538ba..972651b6c8 100644 --- a/calendar/gui/dialogs/task-editor.c +++ b/calendar/gui/dialogs/task-editor.c @@ -163,6 +163,12 @@ init_widgets (TaskEditor *te) G_CALLBACK (model_row_delete_cb), te); } +static void +client_changed_cb (CompEditorPage *page, ECal *client, gpointer user_data) +{ + set_menu_sens (TASK_EDITOR (user_data)); +} + /* Object initialization function for the task editor */ static void task_editor_init (TaskEditor *te) @@ -191,6 +197,8 @@ task_editor_construct (TaskEditor *te, ECal *client) comp_editor_append_page (COMP_EDITOR (te), COMP_EDITOR_PAGE (priv->task_page), _("Basic")); + g_signal_connect (G_OBJECT (priv->task_page), "client_changed", + G_CALLBACK (client_changed_cb), te); priv->task_details_page = task_details_page_new (); g_object_ref (priv->task_details_page); |