aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/cal-client
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@ximian.com>2002-10-03 18:57:22 +0800
committerRodrigo Moya <rodrigo@src.gnome.org>2002-10-03 18:57:22 +0800
commit5a20dc84bb40f9ab827290eb67b4a41c81df1817 (patch)
tree2b6252ef4f5408a3b322a85d0afc10283057305a /calendar/cal-client
parent566e0fe148c54f18a2ff41a68c90444ed178b930 (diff)
downloadgsoc2013-evolution-5a20dc84bb40f9ab827290eb67b4a41c81df1817.tar
gsoc2013-evolution-5a20dc84bb40f9ab827290eb67b4a41c81df1817.tar.gz
gsoc2013-evolution-5a20dc84bb40f9ab827290eb67b4a41c81df1817.tar.bz2
gsoc2013-evolution-5a20dc84bb40f9ab827290eb67b4a41c81df1817.tar.lz
gsoc2013-evolution-5a20dc84bb40f9ab827290eb67b4a41c81df1817.tar.xz
gsoc2013-evolution-5a20dc84bb40f9ab827290eb67b4a41c81df1817.tar.zst
gsoc2013-evolution-5a20dc84bb40f9ab827290eb67b4a41c81df1817.zip
Fixes #30057
2002-10-02 Rodrigo Moya <rodrigo@ximian.com> Fixes #30057 * cal-client/cal-client.c (cal_client_is_read_only): added check of the status of the client before trying to make CORBA calls. * gui/calendar-commands.c (sensitize_calendar_commands, sensitize_taskpad_commands): * gui/tasks-control.c (sensitize_commands): * gui/dialogs/event-editor.c (set_menu_sens): * gui/dialogs/task-editor.c (set_menu_sens): * gui/e-calendar-table.c (e_calendar_table_on_right_click): * gui/e-day-view.c (e_day_view_on_event_right_click): * gui/e-week-view.c (e_week_view_show_popup_menu): take into account the read-onlyness of clients to disable/enable menu items. svn path=/trunk/; revision=18316
Diffstat (limited to 'calendar/cal-client')
-rw-r--r--calendar/cal-client/cal-client.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/calendar/cal-client/cal-client.c b/calendar/cal-client/cal-client.c
index 0f270c05bc..ae4ab40c94 100644
--- a/calendar/cal-client/cal-client.c
+++ b/calendar/cal-client/cal-client.c
@@ -1039,6 +1039,8 @@ cal_client_is_read_only (CalClient *client)
priv = client->priv;
+ g_return_val_if_fail (priv->load_state == CAL_CLIENT_LOAD_LOADED, FALSE);
+
CORBA_exception_init (&ev);
read_only = GNOME_Evolution_Calendar_Cal_isReadOnly (priv->cal, &ev);
if (BONOBO_EX (&ev)) {