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-control.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'calendar/gui/tasks-control.c') diff --git a/calendar/gui/tasks-control.c b/calendar/gui/tasks-control.c index cd1e00fedf..fc4b560f76 100644 --- a/calendar/gui/tasks-control.c +++ b/calendar/gui/tasks-control.c @@ -240,6 +240,9 @@ tasks_control_sensitize_commands (BonoboControl *control, ETasks *tasks, int n_s uic = bonobo_control_get_ui_component (control); g_assert (uic != NULL); + if (bonobo_ui_component_get_container (uic) == CORBA_OBJECT_NIL) + return; + model = e_calendar_table_get_model (e_tasks_get_calendar_table (tasks)); e_cal_is_read_only (e_cal_model_get_default_client (model), &read_only, NULL); -- cgit v1.2.3