summaryrefslogtreecommitdiff
path: root/tools/plugin_template/pluma-plugin.h
diff options
context:
space:
mode:
authorWu Xiaotian <[email protected]>2020-06-22 00:09:07 +0000
committermbkma <[email protected]>2023-01-05 19:22:19 +0100
commit33f39456bba463e280a3dbb811432d6ca443ef1d (patch)
tree86effbfda493e56cfc23e942e53af9cf7d65ea79 /tools/plugin_template/pluma-plugin.h
parentb724befdb6e61f97b44d04b9d55bc690aee5069f (diff)
downloadpluma-33f39456bba463e280a3dbb811432d6ca443ef1d.tar.bz2
pluma-33f39456bba463e280a3dbb811432d6ca443ef1d.tar.xz
tools: update template to generate new pluma plugin
Diffstat (limited to 'tools/plugin_template/pluma-plugin.h')
-rw-r--r--tools/plugin_template/pluma-plugin.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/plugin_template/pluma-plugin.h b/tools/plugin_template/pluma-plugin.h
index 5a8305bc..4db641f9 100644
--- a/tools/plugin_template/pluma-plugin.h
+++ b/tools/plugin_template/pluma-plugin.h
@@ -23,7 +23,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
@@ -47,7 +48,7 @@ typedef struct _##(PLUGIN_ID.camel)Plugin ##(PLUGIN_ID.camel)Plugin;
struct _##(PLUGIN_ID.camel)Plugin
{
- PlumaPlugin parent_instance;
+ PeasExtensionBase parent_instance;
/*< private >*/
##(PLUGIN_ID.camel)PluginPrivate *priv;
@@ -60,7 +61,7 @@ typedef struct _##(PLUGIN_ID.camel)PluginClass ##(PLUGIN_ID.camel)PluginClass;
struct _##(PLUGIN_ID.camel)PluginClass
{
- PlumaPluginClass parent_class;
+ PeasExtensionBaseClass parent_class;
};
/*
@@ -69,7 +70,7 @@ struct _##(PLUGIN_ID.camel)PluginClass
GType ##(PLUGIN_ID.lower)_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