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
This commit is contained in:
Bastien Nocera 2018-02-15 13:29:38 +01:00
parent d8e476f4db
commit cc951ac6c8

View File

@ -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);