From db14454c1d9f8a89e13e4469c771d9ce5d543135 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Fri, 19 Dec 2003 19:50:50 +0000 Subject: make sure there is a ui container 2003-12-19 JP Rosevear * 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 --- calendar/gui/tasks-component.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'calendar/gui/tasks-component.c') diff --git a/calendar/gui/tasks-component.c b/calendar/gui/tasks-component.c index 2b57dc5411..2f89ea31bb 100644 --- a/calendar/gui/tasks-component.c +++ b/calendar/gui/tasks-component.c @@ -198,8 +198,9 @@ update_uri_for_primary_selection (TasksComponent *component) cal_table = e_tasks_get_calendar_table (priv->tasks); etable = e_calendar_table_get_table (cal_table); - tasks_control_sensitize_commands (priv->view_control, priv->tasks, e_table_selected_count (etable)); + tasks_control_sensitize_commands (priv->view_control, priv->tasks, e_table_selected_count (etable)); + /* Save the selection for next time we start up */ calendar_config_set_primary_tasks (e_source_peek_uid (source)); } @@ -529,11 +530,6 @@ 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", @@ -546,6 +542,10 @@ 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); -- cgit v1.2.3