appchooserwidget: check for g_app_info_should_show()

This ensures NoDisplay=true or NotShowIn/OnlyShowIn values in the
desktop file are respected.
This commit is contained in:
Cosimo Cecchi 2012-10-15 18:45:49 -04:00
parent 9208588771
commit 84922d3317

View File

@ -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;