diff options
author | monsta <[email protected]> | 2016-12-02 23:33:18 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-12-05 16:57:36 +0300 |
commit | b43579beda637b155aab3bb4fa257f27cb88d75e (patch) | |
tree | 5ecb8895482f2ae59d777bf8e09def21d4141e81 /plugins/modelines/pluma-modeline-plugin.h | |
parent | 3e00f9094c06fa43d768bd3268cb503d8e6a738b (diff) | |
download | pluma-b43579beda637b155aab3bb4fa257f27cb88d75e.tar.bz2 pluma-b43579beda637b155aab3bb4fa257f27cb88d75e.tar.xz |
modelines plugin: port to libpeas
mostly adapted from:
https://git.gnome.org/browse/gedit/commit/?id=e1df93f3b827131d13178286cec365c8bbc0f075
https://git.gnome.org/browse/gedit/commit/?id=aac1cb378359a69bdb4ac7f08578989e4a3b52d1
Diffstat (limited to 'plugins/modelines/pluma-modeline-plugin.h')
-rw-r--r-- | plugins/modelines/pluma-modeline-plugin.h | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/plugins/modelines/pluma-modeline-plugin.h b/plugins/modelines/pluma-modeline-plugin.h index 4618997e..c44faf36 100644 --- a/plugins/modelines/pluma-modeline-plugin.h +++ b/plugins/modelines/pluma-modeline-plugin.h @@ -24,7 +24,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 @@ -35,13 +36,27 @@ G_BEGIN_DECLS #define PLUMA_IS_MODELINE_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), PLUMA_TYPE_MODELINE_PLUGIN)) #define PLUMA_MODELINE_PLUGIN_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), PLUMA_TYPE_MODELINE_PLUGIN, PlumaModelinePluginClass)) -/* Private structure type */ -typedef PlumaPluginClass PlumaModelinePluginClass; -typedef PlumaPlugin PlumaModelinePlugin; +typedef struct _PlumaModelinePlugin PlumaModelinePlugin; +typedef struct _PlumaModelinePluginPrivate PlumaModelinePluginPrivate; + +struct _PlumaModelinePlugin +{ + PeasExtensionBase parent_instance; + + /*< private >*/ + PlumaModelinePluginPrivate *priv; +}; + +typedef struct _PlumaModelinePluginClass PlumaModelinePluginClass; + +struct _PlumaModelinePluginClass +{ + PeasExtensionBaseClass parent_class; +}; GType pluma_modeline_plugin_get_type (void) G_GNUC_CONST; -G_MODULE_EXPORT GType register_pluma_plugin (GTypeModule *module); +G_MODULE_EXPORT void peas_register_types (PeasObjectModule *module); G_END_DECLS |