diff options
author | JP Rosevear <jpr@ximian.com> | 2003-12-20 03:50:50 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2003-12-20 03:50:50 +0800 |
commit | db14454c1d9f8a89e13e4469c771d9ce5d543135 (patch) | |
tree | 1ed646b2fdb841048e54469b8ece307c2bd295a2 /calendar/gui/tasks-control.c | |
parent | fb8be1c3e2d094b9e3f5739af3252cb3de38726f (diff) | |
download | gsoc2013-evolution-db14454c1d9f8a89e13e4469c771d9ce5d543135.tar.gz 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-control.c')
-rw-r--r-- | calendar/gui/tasks-control.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |