diff options
author | Rodrigo Moya <rodrigo@ximian.com> | 2003-12-19 00:37:52 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@src.gnome.org> | 2003-12-19 00:37:52 +0800 |
commit | be53f12e69044dc6de3f8b1325692a11f5f1a23a (patch) | |
tree | b9bbdef7045784ee0435e4fafd9d52ac101774b0 /calendar | |
parent | ae5a6615bf34e0bad1f9b3006fca52a7fb6d94e5 (diff) | |
download | gsoc2013-evolution-be53f12e69044dc6de3f8b1325692a11f5f1a23a.tar gsoc2013-evolution-be53f12e69044dc6de3f8b1325692a11f5f1a23a.tar.gz gsoc2013-evolution-be53f12e69044dc6de3f8b1325692a11f5f1a23a.tar.bz2 gsoc2013-evolution-be53f12e69044dc6de3f8b1325692a11f5f1a23a.tar.lz gsoc2013-evolution-be53f12e69044dc6de3f8b1325692a11f5f1a23a.tar.xz gsoc2013-evolution-be53f12e69044dc6de3f8b1325692a11f5f1a23a.tar.zst gsoc2013-evolution-be53f12e69044dc6de3f8b1325692a11f5f1a23a.zip |
make sure we connect to the "changed" signals after setting the initial
2003-12-18 Rodrigo Moya <rodrigo@ximian.com>
* gui/tasks-component.c (impl_createControls):
* gui/calendar-component.c (impl_createControls): make sure we
connect to the "changed" signals after setting the initial selections
on the ESourceSelector. Fixes some nasty warnings because of
calendar_control_sensitize_calendar_commands being called with
no container yet for the control.
svn path=/trunk/; revision=23981
Diffstat (limited to 'calendar')
-rw-r--r-- | calendar/ChangeLog | 1 | ||||
-rw-r--r-- | calendar/gui/tasks-component.c | 11 |
2 files changed, 8 insertions, 4 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 247451008a..521331daf5 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,5 +1,6 @@ 2003-12-18 Rodrigo Moya <rodrigo@ximian.com> + * gui/tasks-component.c (impl_createControls): * gui/calendar-component.c (impl_createControls): make sure we connect to the "changed" signals after setting the initial selections on the ESourceSelector. Fixes some nasty warnings because of diff --git a/calendar/gui/tasks-component.c b/calendar/gui/tasks-component.c index f12e1a6078..619f753906 100644 --- a/calendar/gui/tasks-component.c +++ b/calendar/gui/tasks-component.c @@ -527,6 +527,13 @@ impl_createControls (PortableServer_Servant servant, priv->tasks = (ETasks *) bonobo_control_get_widget (priv->view_control); + + /* Load the selection from the last run */ + update_selection (component); + update_primary_selection (component); + + /* connect after setting the initial selections, or we'll get unwanted calls + to tasks_control_sensitize_commands */ g_signal_connect_object (priv->source_selector, "selection_changed", G_CALLBACK (source_selection_changed_cb), G_OBJECT (component), 0); @@ -537,10 +544,6 @@ impl_createControls (PortableServer_Servant servant, G_CALLBACK (fill_popup_menu_cb), G_OBJECT (component), 0); - /* Load the selection from the last run */ - update_selection (component); - update_primary_selection (component); - /* If it gets fiddled with update */ not = calendar_config_add_notification_tasks_selected (config_selection_changed_cb, component); |