diff options
author | Florian Müllner <fmuellner@gnome.org> | 2017-10-23 00:18:19 +0200 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2017-10-26 06:18:01 -0400 |
commit | 07beb6dba291fafa440228439e5ec827a0c754ad (patch) | |
tree | 6f6c092202cac19831e0b69a8f290c7b90dfca10 | |
parent | 29d1cc2fcd43bd4d929243f8cc8dc0adbcb5428a (diff) | |
download | gtk+-07beb6dba291fafa440228439e5ec827a0c754ad.tar.gz |
appchooserwidget: Don't limit application list unconditionally
As documented, GtkAppChooser is "typically [used] for the purpose of
opening a file". However given that applications that support neither
opening files nor URLs are filtered out, the chooser is not actual
useful for any other (atypical) usage. Change that by only applying
the filtering if a content-type was set, and use the full unfiltered
list otherwise.
https://bugzilla.gnome.org/show_bug.cgi?id=789327
-rw-r--r-- | gtk/gtkappchooserwidget.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkappchooserwidget.c b/gtk/gtkappchooserwidget.c index 54b22a28c2..91ad228269 100644 --- a/gtk/gtkappchooserwidget.c +++ b/gtk/gtkappchooserwidget.c @@ -563,7 +563,8 @@ gtk_app_chooser_widget_add_section (GtkAppChooserWidget *self, { app = l->data; - if (!g_app_info_supports_uris (app) && + if (self->priv->content_type != NULL && + !g_app_info_supports_uris (app) && !g_app_info_supports_files (app)) continue; |