From 9ea10deea3b27d7bde1b82792cae76b99b5610f6 Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Fri, 31 Aug 2007 05:23:46 +0000 Subject: Move away from g_asserts from g_return*. svn path=/trunk/; revision=34142 --- widgets/table/e-cell-text.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'widgets/table/e-cell-text.c') diff --git a/widgets/table/e-cell-text.c b/widgets/table/e-cell-text.c index 8558ca6540..ec20d6bbf3 100644 --- a/widgets/table/e-cell-text.c +++ b/widgets/table/e-cell-text.c @@ -888,7 +888,7 @@ ect_get_bg_color(ECellView *ecell_view, int row) static void ect_edit_select_all (ECellTextView *text_view) { - g_assert (text_view->edit); + g_return_if_fail (text_view->edit); text_view->edit->selection_start = 0; text_view->edit->selection_end = strlen (text_view->edit->text); @@ -2327,7 +2327,9 @@ _get_position (ECellTextView *text_view, ETextEventProcessorCommand *command) default: return edit->selection_end; } - g_assert_not_reached (); + + g_return_val_if_reached(0); + return 0; /* Kill warning */ } -- cgit