aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar-component.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2003-12-20 03:50:50 +0800
committerJP Rosevear <jpr@src.gnome.org>2003-12-20 03:50:50 +0800
commitdb14454c1d9f8a89e13e4469c771d9ce5d543135 (patch)
tree1ed646b2fdb841048e54469b8ece307c2bd295a2 /calendar/gui/calendar-component.c
parentfb8be1c3e2d094b9e3f5739af3252cb3de38726f (diff)
downloadgsoc2013-evolution-db14454c1d9f8a89e13e4469c771d9ce5d543135.tar
gsoc2013-evolution-db14454c1d9f8a89e13e4469c771d9ce5d543135.tar.gz
gsoc2013-evolution-db14454c1d9f8a89e13e4469c771d9ce5d543135.tar.bz2
gsoc2013-evolution-db14454c1d9f8a89e13e4469c771d9ce5d543135.tar.lz
gsoc2013-evolution-db14454c1d9f8a89e13e4469c771d9ce5d543135.tar.xz
gsoc2013-evolution-db14454c1d9f8a89e13e4469c771d9ce5d543135.tar.zst
gsoc2013-evolution-db14454c1d9f8a89e13e4469c771d9ce5d543135.zip
make sure there is a ui container
2003-12-19 JP Rosevear <jpr@ximian.com> * gui/tasks-control.c (tasks_control_sensitize_commands): make sure there is a ui container * gui/calendar-commands.c (calendar_control_sensitize_calendar_commands): ditto * gui/tasks-component.c (impl_createControls): update after the signals are connected so that the ecal's are actually loaded * gui/calendar-component.c: ditto svn path=/trunk/; revision=23990
Diffstat (limited to 'calendar/gui/calendar-component.c')
-rw-r--r--calendar/gui/calendar-component.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/calendar/gui/calendar-component.c b/calendar/gui/calendar-component.c
index b978c003a6..bf29355b9d 100644
--- a/calendar/gui/calendar-component.c
+++ b/calendar/gui/calendar-component.c
@@ -196,6 +196,7 @@ update_uri_for_primary_selection (CalendarComponent *calendar_component)
gnome_calendar_set_default_uri (priv->calendar, uri);
g_free (uri);
+ /* Make sure we are embedded first */
calendar_control_sensitize_calendar_commands (priv->view_control, priv->calendar, TRUE);
/* Save the selection for next time we start up */
@@ -573,10 +574,6 @@ impl_createControls (PortableServer_Servant servant,
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",
@@ -589,6 +586,10 @@ impl_createControls (PortableServer_Servant servant,
G_CALLBACK (fill_popup_menu_cb),
G_OBJECT (calendar_component), 0);
+ /* 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);