[gnome-control-center] shell: Fix crash when using keynav in overview



commit f2a9d3a4787e69f1c27fa8e2b328ec82fb707302
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Jun 6 16:11:26 2012 +0100

    shell: Fix crash when using keynav in overview
    
    get_item_views() was expecting all the children of the overview
    to be of type "CcShellCategoryView".
    
    It's not the case since 620e70113c30b0ae868577153dda60139f3c20b4
    added GtkSeparators as children.
    
    We now just skip them non-views in get_item_views().
    
    https://bugzilla.gnome.org/show_bug.cgi?id=677314

 shell/gnome-control-center.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/shell/gnome-control-center.c b/shell/gnome-control-center.c
index 2e2f8e6..9a386ef 100644
--- a/shell/gnome-control-center.c
+++ b/shell/gnome-control-center.c
@@ -306,6 +306,8 @@ get_item_views (GnomeControlCenter *shell)
   res = NULL;
   for (l = list; l; l = l->next)
     {
+      if (!CC_IS_SHELL_CATEGORY_VIEW (l->data))
+        continue;
       res = g_list_append (res, cc_shell_category_view_get_item_view (CC_SHELL_CATEGORY_VIEW (l->data)));
     }
 



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