[gnumeric] Debug: avoid criticals.



commit c549eb5e9187380d1a2cc1158f7b5711713702cc
Author: Morten Welinder <terra gnome org>
Date:   Wed Mar 6 15:13:25 2013 -0500

    Debug: avoid criticals.

 ChangeLog     |    4 ++++
 src/wbc-gtk.c |    7 +++++--
 2 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index ceedc60..92fe1e7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-03-06  Morten Welinder  <terra gnome org>
+
+       * src/wbc-gtk.c (list_actions): Handle a null group.
+
 2013-03-03  Morten Welinder  <terra gnome org>
 
        * src/libgnumeric.c (gnm_pre_parse_init): Don't call deprecated
diff --git a/src/wbc-gtk.c b/src/wbc-gtk.c
index 1823afa..bf70a8c 100644
--- a/src/wbc-gtk.c
+++ b/src/wbc-gtk.c
@@ -5558,9 +5558,12 @@ wbc_gtk_class_init (GObjectClass *gobject_class)
 static void
 list_actions (GtkActionGroup *group)
 {
-       GList *actions = gtk_action_group_list_actions (group);
-       GList *l;
+       GList *actions, *l;
+
+       if (!group)
+               return;
 
+       actions = gtk_action_group_list_actions (group);
        for (l = actions; l; l = l->next) {
                GtkAction *act = l->data;
                const char *name = gtk_action_get_name (act);


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