summaryrefslogtreecommitdiff
path: root/gtk/gtkappchooserwidget.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2012-10-15 18:45:49 -0400
committerCosimo Cecchi <cosimoc@gnome.org>2012-10-15 18:45:49 -0400
commit84922d331768ba9046d9737dbe66468ac45d41f2 (patch)
tree8eb211d66f1f60243ffd2780fc182505033e8f8c /gtk/gtkappchooserwidget.c
parent92085887711eb5a2598d6bd2f0b15b5a70b6438e (diff)
downloadgtk+-84922d331768ba9046d9737dbe66468ac45d41f2.tar.gz
appchooserwidget: check for g_app_info_should_show()
This ensures NoDisplay=true or NotShowIn/OnlyShowIn values in the desktop file are respected.
Diffstat (limited to 'gtk/gtkappchooserwidget.c')
-rw-r--r--gtk/gtkappchooserwidget.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkappchooserwidget.c b/gtk/gtkappchooserwidget.c
index ea4ac44a63..36875dfb0d 100644
--- a/gtk/gtkappchooserwidget.c
+++ b/gtk/gtkappchooserwidget.c
@@ -536,6 +536,9 @@ gtk_app_chooser_widget_add_section (GtkAppChooserWidget *self,
!g_app_info_supports_files (app))
continue;
+ if (!g_app_info_should_show (app))
+ continue;
+
if (g_list_find_custom (exclude_apps, app,
(GCompareFunc) compare_apps_func))
continue;