aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar-commands.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-commands.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-commands.c')
-rw-r--r--calendar/gui/calendar-commands.c3
1 files changed, 3 insertions, 0 deletions
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));