[gtk+/open-with-dialog: 51/53] open-with-widget: don't check if the app supports URIs/files



commit b432242078c88b0b8b1762fb5c86424097dd5236
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue Nov 23 16:49:30 2010 +0100

    open-with-widget: don't check if the app supports URIs/files
    
    Because some apps are broken wrt. this property.

 gtk/gtkopenwithwidget.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/gtk/gtkopenwithwidget.c b/gtk/gtkopenwithwidget.c
index 4b8f73f..801d881 100644
--- a/gtk/gtkopenwithwidget.c
+++ b/gtk/gtkopenwithwidget.c
@@ -115,7 +115,7 @@ refresh_and_emit_app_selected (GtkOpenWithWidget *self,
   if (info == NULL)
     return;
 
-  if (self->priv->selected_app_info)
+  if (self->priv->selected_app_info != NULL)
     {
       if (!g_app_info_equal (self->priv->selected_app_info, info))
 	{
@@ -427,10 +427,6 @@ gtk_open_with_widget_add_section (GtkOpenWithWidget *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))



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]