summaryrefslogtreecommitdiff
path: root/plugins/changecase/pluma-changecase-plugin.h
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-12-01 23:02:38 +0300
committermonsta <[email protected]>2016-12-05 16:56:51 +0300
commitc475e25a50537301f95606a4b09f4951ccd592a7 (patch)
treead2699ad381c18e1061fa46c821cc35be9af3abd /plugins/changecase/pluma-changecase-plugin.h
parent52fd78ddfcbe35507aee9122fed0f18c99407c89 (diff)
downloadpluma-c475e25a50537301f95606a4b09f4951ccd592a7.tar.bz2
pluma-c475e25a50537301f95606a4b09f4951ccd592a7.tar.xz
changecase plugin: port to libpeas
mostly adapted from: https://git.gnome.org/browse/gedit/commit/?id=0ecd2454c85bdb68968aa2c1500d63f48f9c8349 https://git.gnome.org/browse/gedit/commit/?id=3e1e1c725679392a3a6c8219fc921c21c0041089 https://git.gnome.org/browse/gedit/commit/?id=111d6d0c3388849efe7f44580e713e034d554b81
Diffstat (limited to 'plugins/changecase/pluma-changecase-plugin.h')
-rw-r--r--plugins/changecase/pluma-changecase-plugin.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/plugins/changecase/pluma-changecase-plugin.h b/plugins/changecase/pluma-changecase-plugin.h
index b3d1016f..f610ac27 100644
--- a/plugins/changecase/pluma-changecase-plugin.h
+++ b/plugins/changecase/pluma-changecase-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
@@ -39,6 +40,9 @@ G_BEGIN_DECLS
#define PLUMA_IS_CHANGECASE_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), PLUMA_TYPE_CHANGECASE_PLUGIN))
#define PLUMA_CHANGECASE_PLUGIN_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), PLUMA_TYPE_CHANGECASE_PLUGIN, PlumaChangecasePluginClass))
+/* Private structure type */
+typedef struct _PlumaChangecasePluginPrivate PlumaChangecasePluginPrivate;
+
/*
* Main object structure
*/
@@ -46,7 +50,10 @@ typedef struct _PlumaChangecasePlugin PlumaChangecasePlugin;
struct _PlumaChangecasePlugin
{
- PlumaPlugin parent_instance;
+ PeasExtensionBase parent_instance;
+
+ /*< private >*/
+ PlumaChangecasePluginPrivate *priv;
};
/*
@@ -56,7 +63,7 @@ typedef struct _PlumaChangecasePluginClass PlumaChangecasePluginClass;
struct _PlumaChangecasePluginClass
{
- PlumaPluginClass parent_class;
+ PeasExtensionBaseClass parent_class;
};
/*
@@ -65,7 +72,7 @@ struct _PlumaChangecasePluginClass
GType pluma_changecase_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