summaryrefslogtreecommitdiff
path: root/plugins/spell/pluma-spell-plugin.h
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-12-03 16:37:43 +0300
committermonsta <[email protected]>2016-12-05 16:57:36 +0300
commit67a0f36183ed2fe4dd66a044566e523b4b256fe4 (patch)
tree5fac02cc496c9004b192227ca4a9c1c8473783a3 /plugins/spell/pluma-spell-plugin.h
parent55dfd7836e390c45891b590e8f4bf720100ad063 (diff)
downloadpluma-67a0f36183ed2fe4dd66a044566e523b4b256fe4.tar.bz2
pluma-67a0f36183ed2fe4dd66a044566e523b4b256fe4.tar.xz
spell plugin: port to libpeas
mostly adapted from: https://git.gnome.org/browse/gedit/commit/?id=f12be5be627c7b75c0a5f41e8ffec2d5202401d0 https://git.gnome.org/browse/gedit/commit/?id=939dec5739bfd1f15895994ef133753a095aac4e
Diffstat (limited to 'plugins/spell/pluma-spell-plugin.h')
-rw-r--r--plugins/spell/pluma-spell-plugin.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/plugins/spell/pluma-spell-plugin.h b/plugins/spell/pluma-spell-plugin.h
index d2c06252..aa45eb63 100644
--- a/plugins/spell/pluma-spell-plugin.h
+++ b/plugins/spell/pluma-spell-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,8 +50,9 @@ typedef struct _PlumaSpellPlugin PlumaSpellPlugin;
struct _PlumaSpellPlugin
{
- PlumaPlugin parent_instance;
+ PeasExtensionBase parent_instance;
+ /*< private >*/
PlumaSpellPluginPrivate *priv;
};
@@ -61,7 +63,7 @@ typedef struct _PlumaSpellPluginClass PlumaSpellPluginClass;
struct _PlumaSpellPluginClass
{
- PlumaPluginClass parent_class;
+ PeasExtensionBaseClass parent_class;
};
/*
@@ -70,7 +72,7 @@ struct _PlumaSpellPluginClass
GType pluma_spell_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