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 /calendar/gui/dialogs/event-editor.c | |
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
Diffstat (limited to 'calendar/gui/dialogs/event-editor.c')
-rw-r--r-- | calendar/gui/dialogs/event-editor.c | 8 |
1 files changed, 8 insertions, 0 deletions
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); |