diff options
author | Srinivasa Ragavan <sragavan@src.gnome.org> | 2007-09-10 18:57:03 +0800 |
---|---|---|
committer | Srinivasa Ragavan <sragavan@src.gnome.org> | 2007-09-10 18:57:03 +0800 |
commit | 508aee66f947c5b9689262f9d523aeafa8d51ba2 (patch) | |
tree | d4533f5ef6094a18cf10003eba26b1b66b66f302 /e-util/e-dialog-widgets.c | |
parent | 07bec7e9f84a24801a92a877dd023e770e8e3058 (diff) | |
download | gsoc2013-evolution-508aee66f947c5b9689262f9d523aeafa8d51ba2.tar.gz gsoc2013-evolution-508aee66f947c5b9689262f9d523aeafa8d51ba2.tar.zst gsoc2013-evolution-508aee66f947c5b9689262f9d523aeafa8d51ba2.zip |
** Fix for bug #471791
svn path=/trunk/; revision=34214
Diffstat (limited to 'e-util/e-dialog-widgets.c')
-rw-r--r-- | e-util/e-dialog-widgets.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/e-util/e-dialog-widgets.c b/e-util/e-dialog-widgets.c index 7ab4857e29..36ade95803 100644 --- a/e-util/e-dialog-widgets.c +++ b/e-util/e-dialog-widgets.c @@ -359,7 +359,7 @@ e_dialog_radio_get (GtkWidget *widget, const int *value_map) break; } - g_assert (l != NULL); + g_return_val_if_fail (l != NULL, -1); /* Groups are built by prepending items, so the list ends up in reverse * order; we need to flip the index around. @@ -530,7 +530,7 @@ e_dialog_option_menu_get (GtkWidget *widget, const int *value_map) menu = GTK_MENU (gtk_option_menu_get_menu (GTK_OPTION_MENU (widget))); active = gtk_menu_get_active (menu); - g_assert (active != NULL); + g_return_val_if_fail (active != NULL, -1); children = GTK_MENU_SHELL (menu)->children; @@ -539,7 +539,7 @@ e_dialog_option_menu_get (GtkWidget *widget, const int *value_map) break; } - g_assert (l != NULL); + g_return_val_if_fail (l != NULL, -1); v = index_to_value (value_map, i); if (v == -1) { @@ -742,7 +742,7 @@ e_dialog_get_values (GtkWidget *dialog) else if (GTK_IS_EDITABLE (wh->widget)) get_editable_value (GTK_EDITABLE (wh->widget), wh->value_var, wh->info); else - g_assert_not_reached (); + g_return_if_reached (); } } |