shell: Show the submenu icon hint for the applications panel

The panel swarms details/devices/privacy show this icon. Since the applications
panel is not made from sub-panels, this doesn't show. For consistency this shows
the icon so the transition isn't as jarring for the user.

Add a flat into the panel .desktop file to enable this - other panels might
require this in the future
This commit is contained in:
Robert Ancell 2019-11-13 16:33:29 +13:00
parent acc8aff5d0
commit 5dbbc20918
6 changed files with 26 additions and 7 deletions

View file

@ -351,6 +351,7 @@ setup_model (CcWindow *self)
g_autofree gchar *id = NULL;
g_auto(GStrv) keywords = NULL;
CcPanelVisibility visibility;
gboolean has_sidebar;
const gchar *icon_name = NULL;
gtk_tree_model_get (model, &iter,
@ -361,6 +362,7 @@ setup_model (CcWindow *self)
COL_NAME, &name,
COL_KEYWORDS, &keywords,
COL_VISIBILITY, &visibility,
COL_HAS_SIDEBAR, &has_sidebar,
-1);
if (G_IS_THEMED_ICON (icon))
@ -373,7 +375,8 @@ setup_model (CcWindow *self)
description,
keywords,
icon_name,
visibility);
visibility,
has_sidebar);
valid = gtk_tree_model_iter_next (model, &iter);
}