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/calendar-commands.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'calendar/gui/calendar-commands.c') diff --git a/calendar/gui/calendar-commands.c b/calendar/gui/calendar-commands.c index cc7896bd13..c03b722de9 100644 --- a/calendar/gui/calendar-commands.c +++ b/calendar/gui/calendar-commands.c @@ -513,6 +513,9 @@ calendar_control_sensitize_calendar_commands (BonoboControl *control, GnomeCalen uic = bonobo_control_get_ui_component (control); g_assert (uic != NULL); + if (bonobo_ui_component_get_container (uic) == CORBA_OBJECT_NIL) + return; + view = gnome_calendar_get_current_view_widget (gcal); list = e_calendar_view_get_selected_events (E_CALENDAR_VIEW (view)); -- cgit v1.2.3