[gedit-plugins] Adapt metadata key name



commit 0f4d45c03af2f762614e34cde25072d32c6c778d
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Fri Nov 15 09:50:33 2019 +0100

    Adapt metadata key name
    
    GeditDocument now uses TeplFileMetadata.
    
    For the bookmarks, unfortunately there is a bug, the bookmarks metadata
    don't work, quitting gedit and re-loading the file doesn't bring back
    the bookmarks. The bug is not a recent regression with TeplFileMetadata,
    the bug also occurs with gedit 3.32.

 meson.build                                | 2 +-
 plugins/bookmarks/gedit-bookmarks-plugin.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/meson.build b/meson.build
index ef5569f..1ba3e35 100644
--- a/meson.build
+++ b/meson.build
@@ -26,7 +26,7 @@ localedir = join_paths(datadir, 'locale')
 
 # Dependencies in common for all plugins
 libpeas_dep = dependency('libpeas-1.0', version: '>= 1.14.1')
-gedit_dep = dependency('gedit', version: '>= 3.32')
+gedit_dep = dependency('gedit', version: '>= 3.35')
 
 appstream_util = find_program('appstream-util', required: false)
 
diff --git a/plugins/bookmarks/gedit-bookmarks-plugin.c b/plugins/bookmarks/gedit-bookmarks-plugin.c
index 5b974fe..7a61d50 100644
--- a/plugins/bookmarks/gedit-bookmarks-plugin.c
+++ b/plugins/bookmarks/gedit-bookmarks-plugin.c
@@ -39,7 +39,7 @@
 #define BOOKMARK_PRIORITY 1
 
 #define INSERT_DATA_KEY "GeditBookmarksInsertData"
-#define METADATA_ATTR "metadata::gedit-bookmarks"
+#define METADATA_ATTR "gedit-bookmarks"
 
 #define MESSAGE_OBJECT_PATH "/plugins/bookmarks"
 #define BUS_CONNECT(bus, name, data) gedit_message_bus_connect(bus, MESSAGE_OBJECT_PATH, #name, 
(GeditMessageCallback)  message_##name##_cb, data, NULL)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]