aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer.c
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@src.gnome.org>2007-09-03 02:54:06 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2007-09-03 02:54:06 +0800
commit19e564f320e368e4b8f4f6c238158960380bba71 (patch)
tree4a08dd0e878fbf04e8a89ea2adc3c4e5df555710 /composer/e-msg-composer.c
parent0a362c9453f46464d6f227b410f12ff271af16e4 (diff)
downloadgsoc2013-evolution-19e564f320e368e4b8f4f6c238158960380bba71.tar.gz
gsoc2013-evolution-19e564f320e368e4b8f4f6c238158960380bba71.tar.zst
gsoc2013-evolution-19e564f320e368e4b8f4f6c238158960380bba71.zip
** Fix for bug #471791 (Move away from asserts to g_ret*)
svn path=/trunk/; revision=34158
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r--composer/e-msg-composer.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index 75dcd0eaa5..f38afb554e 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -1896,7 +1896,7 @@ menu_edit_cut_cb (BonoboUIComponent *uic, void *data, const char *path)
gtk_editable_cut_clipboard (GTK_EDITABLE (p->focused_entry));
} else {
/* happy happy joy joy, an EEntry. */
- g_assert_not_reached ();
+ g_return_if_reached ();
}
}
@@ -1912,7 +1912,7 @@ menu_edit_copy_cb (BonoboUIComponent *uic, void *data, const char *path)
gtk_editable_copy_clipboard (GTK_EDITABLE (p->focused_entry));
} else {
/* happy happy joy joy, an EEntry. */
- g_assert_not_reached ();
+ g_return_if_reached ();
}
}
@@ -1928,7 +1928,7 @@ menu_edit_paste_cb (BonoboUIComponent *uic, void *data, const char *path)
gtk_editable_paste_clipboard (GTK_EDITABLE (p->focused_entry));
} else {
/* happy happy joy joy, an EEntry. */
- g_assert_not_reached ();
+ g_return_if_reached ();
}
}
@@ -1960,7 +1960,7 @@ menu_edit_select_all_cb (BonoboUIComponent *uic, void *data, const char *path)
gtk_editable_select_region (GTK_EDITABLE (p->focused_entry), 0, -1);
} else {
/* happy happy joy joy, an EEntry. */
- g_assert_not_reached ();
+ g_return_if_reached ();
}
}
@@ -2701,7 +2701,7 @@ update_auto_recipients (EMsgComposerHdrs *hdrs, int mode, const char *auto_addrs
destv = e_msg_composer_hdrs_get_bcc (hdrs);
break;
default:
- g_assert_not_reached ();
+ g_return_if_reached ();
}
if (destv) {
@@ -2738,7 +2738,7 @@ update_auto_recipients (EMsgComposerHdrs *hdrs, int mode, const char *auto_addrs
e_msg_composer_hdrs_set_bcc (hdrs, destv);
break;
default:
- g_assert_not_reached ();
+ g_return_if_reached ();
}
e_destination_freev (destv);
@@ -3626,7 +3626,7 @@ composer_entry_focus_out_event_cb (GtkWidget *widget, GdkEventFocus *event, gpoi
EMsgComposer *composer = user_data;
EMsgComposerPrivate *p = composer->priv;
- g_assert (p->focused_entry == widget);
+ g_return_val_if_fail (p->focused_entry == widget, FALSE);
p->focused_entry = NULL;
bonobo_ui_component_unset_container (p->entry_uic, NULL);