diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-09-13 01:14:00 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-09-13 01:14:00 -0400 |
commit | 22257b124ad18491fef5ebd7c7c1771dee9df546 (patch) | |
tree | c6e3ea4898d962a334a31423e24cee9d5e8de73b /gtk/gtkplacessidebar.c | |
parent | 46291822461d7b335d174b003756caa3016588ce (diff) | |
download | gtk+-22257b124ad18491fef5ebd7c7c1771dee9df546.tar.gz |
placessidebar: Remove a pointless restriction
The sidebar was refusing to show shortcuts for
things that don't have a local path, for no
good reason.
Diffstat (limited to 'gtk/gtkplacessidebar.c')
-rw-r--r-- | gtk/gtkplacessidebar.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c index eb49757eef..a6124cc800 100644 --- a/gtk/gtkplacessidebar.c +++ b/gtk/gtkplacessidebar.c @@ -661,22 +661,6 @@ get_desktop_directory_uri (void) } static gboolean -should_show_file (GtkPlacesSidebar *sidebar, - GFile *file) -{ - char *path; - - path = g_file_get_path (file); - if (path) - { - g_free (path); - return TRUE; - } - - return FALSE; -} - -static gboolean file_is_shown (GtkPlacesSidebar *sidebar, GFile *file) { @@ -765,9 +749,6 @@ add_application_shortcuts (GtkPlacesSidebar *sidebar) g_object_unref (file); - if (!should_show_file (sidebar, file)) - continue; - if (file_is_shown (sidebar, file)) continue; |