places sidebar: Make 'recent' work on other platforms

Desktop / GNOME / GTK - Matthias Clasen [redhat.com] - 6 June 2015 16:13 UTC

Since nautilus merge, we were not showing 'Recent' in the sidebar if GIO did not support the recent: scheme. But the file chooser can show recent files independent of gvfs - it loads the recent files manually. This is relevant on Windows and OS X, where gvfs is typically not used.

This commit adds a show-recent property which can be used to override the recent: scheme check. We use it in the file chooser.

https://bugzilla.gnome.org/show_bug.cgi?id=750068

a8191e7 places sidebar: Make 'recent' work on other platforms
docs/reference/gtk/gtk3-sections.txt | 2 +
gtk/gtkfilechooserwidget.c | 20 +---------
gtk/gtkplacessidebar.c | 68 +++++++++++++++++++++++++++++++++-
gtk/gtkplacessidebar.h | 6 +++
gtk/ui/gtkfilechooserwidget.ui | 1 +
5 files changed, 77 insertions(+), 20 deletions(-)

Upstream: git.gnome.org


  • Share