[evolution/wip/webkit-composer] EEditorActions: Don't try to continue if given object is not EEditor
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/webkit-composer] EEditorActions: Don't try to continue if given object is not EEditor
- Date: Wed, 26 Feb 2014 10:33:51 +0000 (UTC)
commit 531367748a045ccc8a489963117c5e9b95ff80ef
Author: Tomas Popela <tpopela redhat com>
Date: Wed Feb 26 11:16:48 2014 +0100
EEditorActions: Don't try to continue if given object is not EEditor
e-util/e-editor-actions.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/e-util/e-editor-actions.c b/e-util/e-editor-actions.c
index 7f511fe..53b0e15 100644
--- a/e-util/e-editor-actions.c
+++ b/e-util/e-editor-actions.c
@@ -622,6 +622,9 @@ update_mode_combobox (gpointer data)
GtkAction *action;
gboolean is_html;
+ if (!E_IS_EDITOR (editor))
+ return FALSE;
+
editor_widget = e_editor_get_editor_widget (editor);
is_html = e_editor_widget_get_html_mode (editor_widget);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]