summaryrefslogtreecommitdiff
path: root/plugins/filebrowser/pluma-file-bookmarks-store.c
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-12-02 19:46:49 +0300
committermonsta <[email protected]>2016-12-05 16:57:36 +0300
commit3e00f9094c06fa43d768bd3268cb503d8e6a738b (patch)
treef7d6d46fd31aa56b30e679e0eb470e14b7c79fe3 /plugins/filebrowser/pluma-file-bookmarks-store.c
parent9ca3dda49113bcc40b726ebf51db7f07d69e96ad (diff)
downloadpluma-3e00f9094c06fa43d768bd3268cb503d8e6a738b.tar.bz2
pluma-3e00f9094c06fa43d768bd3268cb503d8e6a738b.tar.xz
filebrowser plugin: port to libpeas
mostly adapted from: https://git.gnome.org/browse/gedit/commit/?id=6e8ef59b74a2f726f8a2a0ab1fa7f5c4aa6ac3f2 https://git.gnome.org/browse/gedit/commit/?id=6cc3b4074bad0a775532216c82fa6ce6599bde2c https://git.gnome.org/browse/gedit/commit/?id=9103c5109d5f897c3cc0390fcf09c5a4713cf72f https://git.gnome.org/browse/gedit/commit/?id=e3d36ce46c795887fa449db7eba19b4cc949f714
Diffstat (limited to 'plugins/filebrowser/pluma-file-bookmarks-store.c')
-rw-r--r--plugins/filebrowser/pluma-file-bookmarks-store.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/plugins/filebrowser/pluma-file-bookmarks-store.c b/plugins/filebrowser/pluma-file-bookmarks-store.c
index d1d8b53d..073d6bb3 100644
--- a/plugins/filebrowser/pluma-file-bookmarks-store.c
+++ b/plugins/filebrowser/pluma-file-bookmarks-store.c
@@ -23,7 +23,6 @@
#include <glib/gi18n.h>
#include <gio/gio.h>
#include <pluma/pluma-utils.h>
-#include <pluma/pluma-plugin.h>
#include "pluma-file-bookmarks-store.h"
#include "pluma-file-browser-utils.h"
@@ -56,7 +55,7 @@ static gboolean find_with_flags (GtkTreeModel * model,
guint flags,
guint notflags);
-PLUMA_PLUGIN_DEFINE_TYPE(PlumaFileBookmarksStore, pluma_file_bookmarks_store, GTK_TYPE_TREE_STORE)
+G_DEFINE_DYNAMIC_TYPE (PlumaFileBookmarksStore, pluma_file_bookmarks_store, GTK_TYPE_TREE_STORE)
static void
pluma_file_bookmarks_store_dispose (GObject * object)
@@ -98,6 +97,12 @@ pluma_file_bookmarks_store_class_init (PlumaFileBookmarksStoreClass *klass)
}
static void
+pluma_file_bookmarks_store_class_finalize (PlumaFileBookmarksStoreClass *klass)
+{
+ /* dummy function - used by G_DEFINE_DYNAMIC_TYPE */
+}
+
+static void
pluma_file_bookmarks_store_init (PlumaFileBookmarksStore * obj)
{
obj->priv = PLUMA_FILE_BOOKMARKS_STORE_GET_PRIVATE (obj);
@@ -876,4 +881,10 @@ on_bookmarks_file_changed (GFileMonitor * monitor,
}
}
+void
+_pluma_file_bookmarks_store_register_type (GTypeModule *type_module)
+{
+ pluma_file_bookmarks_store_register_type (type_module);
+}
+
// ex:ts=8:noet: