[evolution/wip/webkit-composer] EEditor: Avoid crash when no proxies are returned



commit 8e8ec64fb6475a7cc247e078c91b3e6930675468
Author: Tomas Popela <tpopela redhat com>
Date:   Wed Feb 26 11:06:33 2014 +0100

    EEditor: Avoid crash when no proxies are returned

 e-util/e-editor.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/e-util/e-editor.c b/e-util/e-editor.c
index d1dc969..1a79ba3 100644
--- a/e-util/e-editor.c
+++ b/e-util/e-editor.c
@@ -289,8 +289,10 @@ editor_spell_checkers_foreach (EEditor *editor,
                 *     child of the proxy widget. */
                gtk_ui_manager_ensure_update (manager);
                proxies = gtk_action_get_proxies (action);
-               child = gtk_bin_get_child (proxies->data);
-               g_object_set (child, "use-markup", TRUE, NULL);
+               if (proxies->data) {
+                       child = gtk_bin_get_child (proxies->data);
+                       g_object_set (child, "use-markup", TRUE, NULL);
+               }
 
                g_free (action_name);
                g_free (action_label);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]