aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar-component.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/calendar-component.c')
-rw-r--r--calendar/gui/calendar-component.c20
1 files changed, 11 insertions, 9 deletions
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);