After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 793425 - Carry on using gtk-3.0's bookmarks file
Carry on using gtk-3.0's bookmarks file
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: .General
3.93.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2018-02-13 14:03 UTC by Bastien Nocera
Modified: 2018-02-15 19:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gtkbookmarksmanager: Use GTK+ 3.0's bookmarks file (1.21 KB, patch)
2018-02-15 12:30 UTC, Bastien Nocera
none Details | Review
gtkbookmarksmanager: Use GTK+ 3.0's bookmarks file (1.21 KB, patch)
2018-02-15 19:42 UTC, Bastien Nocera
committed Details | Review

Description Bastien Nocera 2018-02-13 14:03:46 UTC
In https://gitlab.gnome.org/GNOME/gtk/blob/master/gtk/gtkbookmarksmanager.c#L76

  filename = g_build_filename (g_get_user_config_dir (), "gtk-4.0", "bookmarks", NULL);

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.
Comment 1 Matthias Clasen 2018-02-15 02:45:06 UTC
I agree.
Comment 2 Bastien Nocera 2018-02-15 12:30:43 UTC
Created attachment 368370 [details] [review]
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.
Comment 3 Matthias Clasen 2018-02-15 19:34:30 UTC
Review of attachment 368370 [details] [review]:

looks good, otherwise

::: gtk/gtkbookmarksmanager.c
@@ +76,3 @@
+  /* 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. */

Pet peeve of mine: Please put the */ on the next line and line up the stars
Comment 4 Bastien Nocera 2018-02-15 19:42:05 UTC
Created attachment 368387 [details] [review]
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.