aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/tasks-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/tasks-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/tasks-component.c')
-rw-r--r--calendar/gui/tasks-component.c12
1 files changed, 6 insertions, 6 deletions
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);