diff options
author | monsta <[email protected]> | 2017-04-26 12:37:16 +0300 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-04-26 12:00:48 +0200 |
commit | e04356360b9277fa6001f57df712752b315d1be3 (patch) | |
tree | 100ba67f4a8c040c36598bf7a9917dc225afb4f3 | |
parent | 0f5e75679006b457d90345be19ffb3bb6230c9b9 (diff) | |
download | mate-panel-e04356360b9277fa6001f57df712752b315d1be3.tar.bz2 mate-panel-e04356360b9277fa6001f57df712752b315d1be3.tar.xz |
use GTK+3 bookmarks location for Places menu
-rw-r--r-- | mate-panel/panel-menu-items.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/mate-panel/panel-menu-items.c b/mate-panel/panel-menu-items.c index a7754652..6ea12c20 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; |