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 620e70113c
added GtkSeparators as children.
We now just skip them non-views in get_item_views().
https://bugzilla.gnome.org/show_bug.cgi?id=677314
This commit is contained in:
parent
f94490a5b5
commit
f2a9d3a478
1 changed files with 2 additions and 0 deletions
|
@ -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)));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue