summaryrefslogtreecommitdiff
path: root/gtk/gtkappchooserbutton.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2013-03-22 12:44:27 -0400
committerCosimo Cecchi <cosimoc@gnome.org>2013-03-22 15:27:41 -0400
commit5568dcb53c3a322b8399dc520fb539985814f451 (patch)
tree894167d3d89ad533ceba9cc568fe743f785b3766 /gtk/gtkappchooserbutton.c
parent70cfac0e9ac0d78cd3a70c9f159cb13b115b578b (diff)
downloadgtk+-5568dcb53c3a322b8399dc520fb539985814f451.tar.gz
appchooserbutton: filter out applications not supposed to be visible
Ensure NoDisplay=true applications don't end up in the list populated by GtkAppChooserButton. https://bugzilla.gnome.org/show_bug.cgi?id=696405
Diffstat (limited to 'gtk/gtkappchooserbutton.c')
-rw-r--r--gtk/gtkappchooserbutton.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkappchooserbutton.c b/gtk/gtkappchooserbutton.c
index 235464c58e..133ce34932 100644
--- a/gtk/gtkappchooserbutton.c
+++ b/gtk/gtkappchooserbutton.c
@@ -348,6 +348,9 @@ gtk_app_chooser_button_populate (GtkAppChooserButton *self)
{
app = l->data;
+ if (!g_app_info_should_show (app))
+ continue;
+
if (default_app != NULL && g_app_info_equal (app, default_app))
continue;