diff options
author | Rodrigo Moya <rodrigo@novell.com> | 2004-06-09 00:44:46 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2004-06-09 00:44:46 +0800 |
commit | bab3dc622a2cd10e861e1ffb762768e68079a81e (patch) | |
tree | 49f87315bdc07b6adaec78e5838cd0f5d89a05ab /calendar/gui/dialogs/event-page.c | |
parent | 7601e9e71eb0f412b7671954c8724e1820e519cd (diff) | |
download | gsoc2013-evolution-bab3dc622a2cd10e861e1ffb762768e68079a81e.tar.gz gsoc2013-evolution-bab3dc622a2cd10e861e1ffb762768e68079a81e.tar.zst gsoc2013-evolution-bab3dc622a2cd10e861e1ffb762768e68079a81e.zip |
new function for notifying all pages of the client change.
2004-06-08 Rodrigo Moya <rodrigo@novell.com>
* gui/dialogs/comp-editor.[ch] (comp_editor_notify_client_changed):
new function for notifying all pages of the client change.
(page_client_changed_cb): no need for this callback.
(comp_editor_append_page): no need to connect to "client_changed"
signal on the pages.
* gui/dialogs/comp-editor-page.c
(comp_editor_page_notify_client_changed): re-added the call to
comp_editor_page_set_e_cal(), the client was not being set anywhere.
* gui/dialogs/event-page.c (source_changed_cb): use
comp_editor_notify_client_changed() so that all pages get informed
of the client change.
* gui/dialogs/task-page.c (source_changed_cb): ditto.
svn path=/trunk/; revision=26255
Diffstat (limited to 'calendar/gui/dialogs/event-page.c')
-rw-r--r-- | calendar/gui/dialogs/event-page.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/calendar/gui/dialogs/event-page.c b/calendar/gui/dialogs/event-page.c index abdc84aa34..d832cf4873 100644 --- a/calendar/gui/dialogs/event-page.c +++ b/calendar/gui/dialogs/event-page.c @@ -41,6 +41,7 @@ #include <libecal/e-cal-time-util.h> #include "../calendar-config.h" #include "../e-timezone-entry.h" +#include "comp-editor.h" #include "comp-editor-util.h" #include "event-page.h" @@ -1297,7 +1298,9 @@ source_changed_cb (GtkWidget *widget, ESource *source, gpointer data) gtk_dialog_run (GTK_DIALOG (dialog)); gtk_widget_destroy (dialog); } else { - comp_editor_page_notify_client_changed (COMP_EDITOR_PAGE (epage), client); + comp_editor_notify_client_changed ( + COMP_EDITOR (gtk_widget_get_toplevel (priv->main)), + client); sensitize_widgets (epage); } } |