appDisplay: Don't show apps in NoDisplay categories in the All view
We explicitly include NoDisplay applications in the ShellAppSystem because we want app tracking for them, but we explicitly filter NoDisplay applications out when showing them to the user because we don't want to show them to the user. We also based our "All" apps view on a flattened list of apps. While we did check for NoDisplay on the app item itself, we didn't check against its parents. Refactor the app display view to not use a separate flat list of applications, but instead a concatenation of all the applications in all the loaded categories. https://bugzilla.gnome.org/show_bug.cgi?id=658176
This commit is contained in:
@ -644,30 +644,6 @@ shell_app_system_lookup_wmclass (ShellAppSystem *system,
|
||||
return app;
|
||||
}
|
||||
|
||||
/**
|
||||
* shell_app_system_get_all:
|
||||
* @system:
|
||||
*
|
||||
* Returns: (transfer container) (element-type ShellApp): All installed applications
|
||||
*/
|
||||
GSList *
|
||||
shell_app_system_get_all (ShellAppSystem *self)
|
||||
{
|
||||
GSList *result = NULL;
|
||||
GHashTableIter iter;
|
||||
gpointer key, value;
|
||||
|
||||
g_hash_table_iter_init (&iter, self->priv->id_to_app);
|
||||
while (g_hash_table_iter_next (&iter, &key, &value))
|
||||
{
|
||||
ShellApp *app = value;
|
||||
|
||||
if (!g_desktop_app_info_get_nodisplay (shell_app_get_app_info (app)))
|
||||
result = g_slist_prepend (result, app);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
void
|
||||
_shell_app_system_notify_app_state_changed (ShellAppSystem *self,
|
||||
ShellApp *app)
|
||||
|
@ -52,8 +52,6 @@ ShellApp *shell_app_system_lookup_heuristic_basename (ShellAppSystem *
|
||||
ShellApp *shell_app_system_lookup_wmclass (ShellAppSystem *system,
|
||||
const char *wmclass);
|
||||
|
||||
GSList *shell_app_system_get_all (ShellAppSystem *system);
|
||||
|
||||
GSList *shell_app_system_get_running (ShellAppSystem *self);
|
||||
|
||||
GSList *shell_app_system_initial_search (ShellAppSystem *system,
|
||||
|
Reference in New Issue
Block a user