diff options
Diffstat (limited to 'tools/plugin_template/pluma-plugin.h')
-rw-r--r-- | tools/plugin_template/pluma-plugin.h | 9 |
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 |