aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-search-bar.c
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@src.gnome.org>2007-08-31 13:23:46 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2007-08-31 13:23:46 +0800
commit9ea10deea3b27d7bde1b82792cae76b99b5610f6 (patch)
tree0ca0584e525ab8ff7e1e24ec61437406dcbcf5d4 /widgets/misc/e-search-bar.c
parent095302aef20099e51739209a4e4229379da85047 (diff)
downloadgsoc2013-evolution-9ea10deea3b27d7bde1b82792cae76b99b5610f6.tar.gz
gsoc2013-evolution-9ea10deea3b27d7bde1b82792cae76b99b5610f6.tar.zst
gsoc2013-evolution-9ea10deea3b27d7bde1b82792cae76b99b5610f6.zip
Move away from g_asserts from g_return*.
svn path=/trunk/; revision=34142
Diffstat (limited to 'widgets/misc/e-search-bar.c')
-rw-r--r--widgets/misc/e-search-bar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/widgets/misc/e-search-bar.c b/widgets/misc/e-search-bar.c
index 4b8d459911..8424c77651 100644
--- a/widgets/misc/e-search-bar.c
+++ b/widgets/misc/e-search-bar.c
@@ -113,7 +113,7 @@ update_clear_menuitem_sensitive (ESearchBar *search_bar)
static void
clear_button_state_changed (GtkWidget *clear_button, GtkStateType state, ESearchBar *search_bar)
{
- g_assert (clear_button != NULL && search_bar != NULL);
+ g_return_if_fail (clear_button != NULL && search_bar != NULL);
update_clear_menuitem_sensitive (search_bar);
}
@@ -276,7 +276,7 @@ search_verb_cb (BonoboUIComponent *ui_component,
esb = E_SEARCH_BAR (data);
p = strrchr (verb_name, ':');
- g_assert (p != NULL);
+ g_return_if_fail (p != NULL);
id = atoi (p + 1);