diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/gtk+/glade-gtk.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/plugins/gtk+/glade-gtk.c b/plugins/gtk+/glade-gtk.c index 3fc67785..80a18f00 100644 --- a/plugins/gtk+/glade-gtk.c +++ b/plugins/gtk+/glade-gtk.c @@ -1708,10 +1708,16 @@ alpha_sort_box_children (GtkWidget *a, GtkWidget *b) ga = glade_widget_get_from_gobject (a); gb = glade_widget_get_from_gobject (b); - if (!ga || !gb) + if (!GLADE_IS_WIDGET (ga) && !GLADE_IS_WIDGET (gb)) + return 0; + + if (!GLADE_IS_WIDGET (ga)) return 1; - else - return strcmp (ga->name, gb->name); + + if (!GLADE_IS_WIDGET (gb)) + return -1; + + return strcmp (ga->name, gb->name); } GList * |