diff options
Diffstat (limited to 'calendar')
-rw-r--r-- | calendar/ChangeLog | 8 | ||||
-rw-r--r-- | calendar/gui/calendar-component.c | 20 |
2 files changed, 19 insertions, 9 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index a6ad38d047..247451008a 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,11 @@ +2003-12-18 Rodrigo Moya <rodrigo@ximian.com> + + * 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. + 2003-12-17 Hans Petter Jansson <hpj@ximian.com> * gui/dialogs/comp-editor.c: Add the concept of a source client, where diff --git a/calendar/gui/calendar-component.c b/calendar/gui/calendar-component.c index dc2937eb2e..ee1cd283a9 100644 --- a/calendar/gui/calendar-component.c +++ b/calendar/gui/calendar-component.c @@ -566,6 +566,17 @@ impl_createControls (PortableServer_Servant servant, priv->calendar = (GnomeCalendar *) bonobo_control_get_widget (priv->view_control); + statusbar_widget = e_task_bar_new (); + gtk_widget_show (statusbar_widget); + e_activity_handler_attach_task_bar (priv->activity_handler, E_TASK_BAR (statusbar_widget)); + statusbar_control = bonobo_control_new (statusbar_widget); + + /* Load the selection from the last run */ + update_selection (calendar_component); + update_primary_selection (calendar_component); + + /* connect after setting the initial selections, or we'll get unwanted calls + to calendar_control_sensitize_calendar_commands */ g_signal_connect_object (priv->source_selector, "selection_changed", G_CALLBACK (source_selection_changed_cb), G_OBJECT (calendar_component), 0); @@ -576,15 +587,6 @@ impl_createControls (PortableServer_Servant servant, G_CALLBACK (fill_popup_menu_cb), G_OBJECT (calendar_component), 0); - statusbar_widget = e_task_bar_new (); - gtk_widget_show (statusbar_widget); - e_activity_handler_attach_task_bar (priv->activity_handler, E_TASK_BAR (statusbar_widget)); - statusbar_control = bonobo_control_new (statusbar_widget); - - /* Load the selection from the last run */ - update_selection (calendar_component); - update_primary_selection (calendar_component); - /* If it gets fiddled with update */ not = calendar_config_add_notification_calendars_selected (config_selection_changed_cb, calendar_component); |