summaryrefslogtreecommitdiff
path: root/gtk/gtkbookmarksmanager.c
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2018-02-15 13:29:38 +0100
committerBastien Nocera <hadess@hadess.net>2018-02-15 20:42:21 +0100
commitcc951ac6c88915585a5451da8260c27920e8cd06 (patch)
tree3e4d9dae7c700c09406bedded6461c33b8831c84 /gtk/gtkbookmarksmanager.c
parentd8e476f4dbe55ed038a8ac29cdab549c0995b795 (diff)
downloadgtk+-cc951ac6c88915585a5451da8260c27920e8cd06.tar.gz
gtkbookmarksmanager: Use GTK+ 3.0's bookmarks file
There's no reason to use a separate file until the format of the file changes though, as this just means that GTK+ 3.x and GTK+ 4.x applications would end up showing different bookmarks in the file chooser. https://bugzilla.gnome.org/show_bug.cgi?id=793425
Diffstat (limited to 'gtk/gtkbookmarksmanager.c')
-rw-r--r--gtk/gtkbookmarksmanager.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk/gtkbookmarksmanager.c b/gtk/gtkbookmarksmanager.c
index f97d5afe98..31f83fd4dc 100644
--- a/gtk/gtkbookmarksmanager.c
+++ b/gtk/gtkbookmarksmanager.c
@@ -73,7 +73,11 @@ get_bookmarks_file (void)
GFile *file;
gchar *filename;
- filename = g_build_filename (g_get_user_config_dir (), "gtk-4.0", "bookmarks", NULL);
+ /* Use gtk-3.0's bookmarks file as the format didn't change.
+ * Add the 3.0 file format to get_legacy_bookmarks_file() when
+ * the format does change.
+ */
+ filename = g_build_filename (g_get_user_config_dir (), "gtk-3.0", "bookmarks", NULL);
file = g_file_new_for_path (filename);
g_free (filename);