From f8374109ac06f8c0528dcf27f214f26c5d2aaf8d Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Sun, 2 Sep 2007 18:44:00 +0000 Subject: ** Fix for bug #471791 (Move away from asserts to g_ret*) svn path=/trunk/; revision=34156 --- calendar/gui/dialogs/comp-editor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'calendar/gui/dialogs/comp-editor.c') diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c index 6a8981daa7..4ff5055110 100644 --- a/calendar/gui/dialogs/comp-editor.c +++ b/calendar/gui/dialogs/comp-editor.c @@ -2006,7 +2006,7 @@ comp_editor_append_page (CompEditor *editor, } page_widget = comp_editor_page_get_widget (page); - g_assert (page_widget != NULL); + g_return_if_fail (page_widget != NULL); if (label) label_widget = gtk_label_new_with_mnemonic (label); @@ -2811,7 +2811,7 @@ comp_editor_get_mime_attach_list (CompEditor *editor) static void raise_and_focus (GtkWidget *widget) { - g_assert (GTK_WIDGET_REALIZED (widget)); + g_return_if_fail (GTK_WIDGET_REALIZED (widget)); gdk_window_show (widget->window); gtk_widget_grab_focus (widget); } -- cgit v1.2.3