summaryrefslogtreecommitdiff
path: root/gtk/gtkappchooserwidget.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2010-11-23 18:10:01 +0100
committerCosimo Cecchi <cosimoc@gnome.org>2010-11-23 18:10:01 +0100
commitd0c35d63e0f61a85c8f9b19c00aff513c723741a (patch)
tree8b0d9714b19afed54bdc2cf4de7d8ab1906a172e /gtk/gtkappchooserwidget.c
parent05bb715c51d8963e47a8b34f94b14f0748f6b8d8 (diff)
downloadgtk+-d0c35d63e0f61a85c8f9b19c00aff513c723741a.tar.gz
Revert "open-with-widget: don't check if the app supports URIs/files"
This reverts commit b432242078c88b0b8b1762fb5c86424097dd5236.
Diffstat (limited to 'gtk/gtkappchooserwidget.c')
-rw-r--r--gtk/gtkappchooserwidget.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk/gtkappchooserwidget.c b/gtk/gtkappchooserwidget.c
index 5bac17b989..bafff98c63 100644
--- a/gtk/gtkappchooserwidget.c
+++ b/gtk/gtkappchooserwidget.c
@@ -115,7 +115,7 @@ refresh_and_emit_app_selected (GtkAppChooserWidget *self,
if (info == NULL)
return;
- if (self->priv->selected_app_info != NULL)
+ if (self->priv->selected_app_info)
{
if (!g_app_info_equal (self->priv->selected_app_info, info))
{
@@ -427,6 +427,10 @@ gtk_app_chooser_widget_add_section (GtkAppChooserWidget *self,
{
app = l->data;
+ if (!g_app_info_supports_uris (app) &&
+ !g_app_info_supports_files (app))
+ continue;
+
if (exclude_apps != NULL &&
g_list_find_custom (exclude_apps, app,
(GCompareFunc) compare_apps_func))