From ba64403a4fef604cc3aaea6bff35b8275f30cfb1 Mon Sep 17 00:00:00 2001 From: Hans Petter Jansson Date: Mon, 24 Feb 2003 03:10:28 +0000 Subject: Don't warn if calendar isn't loaded... Doesn't seem to hurt, but this 2003-02-23 Hans Petter Jansson * cal-client/cal-client.c (cal_client_is_read_only): Don't warn if calendar isn't loaded... Doesn't seem to hurt, but this should probably be investigated further. * gui/dialogs/comp-editor-util.c (comp_editor_contacts_to_widget): If we have no contacts, don't bother trying to set them in the widget. Used to pass a NULL list, which would lead to much anxiety in callees. * gui/dialogs/meeting-page.c (meeting_page_fill_widgets): If we have no potential organizers, emit a sensible warning. * gui/dialogs/task-page.c (init_widgets): Don't try to connect to the "changed" signal of the GtkTextView -- we listen to the GtkTextBuffer now. svn path=/trunk/; revision=20019 --- calendar/cal-client/cal-client.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'calendar/cal-client') diff --git a/calendar/cal-client/cal-client.c b/calendar/cal-client/cal-client.c index fd235e1d3c..89579a34a0 100644 --- a/calendar/cal-client/cal-client.c +++ b/calendar/cal-client/cal-client.c @@ -1128,7 +1128,8 @@ cal_client_is_read_only (CalClient *client) priv = client->priv; - g_return_val_if_fail (priv->load_state == CAL_CLIENT_LOAD_LOADED, FALSE); + if (priv->load_state != CAL_CLIENT_LOAD_LOADED) + return FALSE; CORBA_exception_init (&ev); read_only = GNOME_Evolution_Calendar_Cal_isReadOnly (priv->cal, &ev); -- cgit v1.2.3