[nautilus] Revert "mime-actions: filter applications not supposed to be visible"



commit 9a4ff3ca0d8476e15daa6dd92ac6c0eb8c5b9695
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue Sep 17 10:59:37 2013 -0700

    Revert "mime-actions: filter applications not supposed to be visible"
    
    This reverts commit 7770b63d6726bc7ab4b886d6bd3edd009e622e55.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=702681

 src/nautilus-mime-actions.c |   24 ------------------------
 1 files changed, 0 insertions(+), 24 deletions(-)
---
diff --git a/src/nautilus-mime-actions.c b/src/nautilus-mime-actions.c
index ae9fa8a..401aa8c 100644
--- a/src/nautilus-mime-actions.c
+++ b/src/nautilus-mime-actions.c
@@ -258,28 +258,6 @@ filter_nautilus_handler (GList *apps)
 }
 
 static GList*
-filter_no_show_apps (GList *apps)
-{
-       GList *l, *next;
-       GAppInfo *application;
-
-       l = apps;
-       while (l != NULL) {
-               application = (GAppInfo *) l->data;
-               next = l->next;
-
-               if (!g_app_info_should_show (application)) {
-                       g_object_unref (application);
-                       apps = g_list_delete_link (apps, l);
-               }
-
-               l = next;
-       }
-
-       return apps;
-}
-
-static GList*
 filter_non_uri_apps (GList *apps,
                     gboolean accept_files)
 {
@@ -470,8 +448,6 @@ nautilus_mime_get_applications_for_file (NautilusFile *file)
                g_free (uri_scheme);
        }
 
-       result = filter_no_show_apps (result);
-
        /* Filter out non-uri supporting apps */
        result = filter_non_uri_apps (result, file_has_local_path (file));
 


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