summaryrefslogtreecommitdiff
path: root/plugins/docinfo/pluma-docinfo-plugin.h
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-12-02 15:08:35 +0300
committermonsta <[email protected]>2016-12-05 16:57:33 +0300
commit9ca3dda49113bcc40b726ebf51db7f07d69e96ad (patch)
tree8d0f817dff34fc6d8c240864e4a90f501d947099 /plugins/docinfo/pluma-docinfo-plugin.h
parentc475e25a50537301f95606a4b09f4951ccd592a7 (diff)
downloadpluma-9ca3dda49113bcc40b726ebf51db7f07d69e96ad.tar.bz2
pluma-9ca3dda49113bcc40b726ebf51db7f07d69e96ad.tar.xz
docinfo plugin: port to libpeas
mostly adapted from: https://git.gnome.org/browse/gedit/commit/?id=c950fdf896b89f77cc7e9c065df33e2952f43165 https://git.gnome.org/browse/gedit/commit/?id=e97c74342d9836ab21677f31d15a7edb574ea74a https://git.gnome.org/browse/gedit/commit/?id=8f6d93bc0730e0a5b6254a0458bf34168f6ee6a2
Diffstat (limited to 'plugins/docinfo/pluma-docinfo-plugin.h')
-rw-r--r--plugins/docinfo/pluma-docinfo-plugin.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/plugins/docinfo/pluma-docinfo-plugin.h b/plugins/docinfo/pluma-docinfo-plugin.h
index 7b8fe272..5476e4fb 100644
--- a/plugins/docinfo/pluma-docinfo-plugin.h
+++ b/plugins/docinfo/pluma-docinfo-plugin.h
@@ -25,7 +25,8 @@
#include <glib.h>
#include <glib-object.h>
-#include <pluma/pluma-plugin.h>
+#include <libpeas/peas-extension-base.h>
+#include <libpeas/peas-object-module.h>
G_BEGIN_DECLS
@@ -49,7 +50,10 @@ typedef struct _PlumaDocInfoPlugin PlumaDocInfoPlugin;
struct _PlumaDocInfoPlugin
{
- PlumaPlugin parent_instance;
+ PeasExtensionBase parent_instance;
+
+ /*< private >*/
+ PlumaDocInfoPluginPrivate *priv;
};
/*
@@ -59,7 +63,7 @@ typedef struct _PlumaDocInfoPluginClass PlumaDocInfoPluginClass;
struct _PlumaDocInfoPluginClass
{
- PlumaPluginClass parent_class;
+ PeasExtensionBaseClass parent_class;
};
/*
@@ -68,7 +72,7 @@ struct _PlumaDocInfoPluginClass
GType pluma_docinfo_plugin_get_type (void) G_GNUC_CONST;
/* All the plugins must implement this function */
-G_MODULE_EXPORT GType register_pluma_plugin (GTypeModule *module);
+G_MODULE_EXPORT void peas_register_types (PeasObjectModule *module);
G_END_DECLS