summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2017-04-26 09:37:16 (GMT)
committerraveit65 <[email protected]>2017-04-26 10:00:48 (GMT)
commite04356360b9277fa6001f57df712752b315d1be3 (patch)
tree100ba67f4a8c040c36598bf7a9917dc225afb4f3
parent0f5e75679006b457d90345be19ffb3bb6230c9b9 (diff)
downloadmate-panel-e04356360b9277fa6001f57df712752b315d1be3.tar.bz2
mate-panel-e04356360b9277fa6001f57df712752b315d1be3.tar.xz
use GTK+3 bookmarks location for Places menurefs/pull/568/head
-rw-r--r--mate-panel/panel-menu-items.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/mate-panel/panel-menu-items.c b/mate-panel/panel-menu-items.c
index a775465..6ea12c2 100644
--- a/mate-panel/panel-menu-items.c
+++ b/mate-panel/panel-menu-items.c
@@ -57,7 +57,6 @@
#include "panel-util.h"
#include "panel-schemas.h"
-#define BOOKMARKS_FILENAME ".gtk-bookmarks"
#define MAX_BOOKMARK_ITEMS 100
G_DEFINE_TYPE(PanelPlaceMenuItem, panel_place_menu_item, GTK_TYPE_IMAGE_MENU_ITEM)
@@ -367,8 +366,8 @@ panel_place_menu_item_append_gtk_bookmarks (GtkWidget *menu, guint max_items_or_
GSList *add_bookmarks, *l;
PanelBookmark *bookmark;
- filename = g_build_filename (g_get_home_dir (),
- BOOKMARKS_FILENAME, NULL);
+ filename = g_build_filename (g_get_user_config_dir (),
+ "gtk-3.0", "bookmarks", NULL);
io_channel = g_io_channel_new_file (filename, "r", NULL);
g_free (filename);
@@ -1387,8 +1386,8 @@ panel_place_menu_item_init (PanelPlaceMenuItem *menuitem)
menuitem->priv->recent_manager = gtk_recent_manager_get_default ();
- bookmarks_filename = g_build_filename (g_get_home_dir (),
- BOOKMARKS_FILENAME, NULL);
+ bookmarks_filename = g_build_filename (g_get_user_config_dir (),
+ "gtk-3.0", "bookmarks", NULL);
bookmark = g_file_new_for_path (bookmarks_filename);
error = NULL;