diff options
author | monsta <[email protected]> | 2016-12-04 22:31:41 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-12-05 16:57:36 +0300 |
commit | ce25be232024458af2a28f4cf145d8cd22f2db29 (patch) | |
tree | 7d4d2ebe765d938ba63e671b199895f0d7d9921b /plugins/trailsave/pluma-trail-save-plugin.h | |
parent | 95d29254d97484cbbece5a7acd994025d90699e1 (diff) | |
download | pluma-ce25be232024458af2a28f4cf145d8cd22f2db29.tar.bz2 pluma-ce25be232024458af2a28f4cf145d8cd22f2db29.tar.xz |
trailsave plugin: port to libpeas
this plugin isn't present upstream, so all the changes
were picked from other plugins here
Diffstat (limited to 'plugins/trailsave/pluma-trail-save-plugin.h')
-rw-r--r-- | plugins/trailsave/pluma-trail-save-plugin.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/plugins/trailsave/pluma-trail-save-plugin.h b/plugins/trailsave/pluma-trail-save-plugin.h index 4d0e3306..73608de5 100644 --- a/plugins/trailsave/pluma-trail-save-plugin.h +++ b/plugins/trailsave/pluma-trail-save-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 @@ -37,6 +38,9 @@ G_BEGIN_DECLS #define PLUMA_IS_TRAIL_SAVE_PLUGIN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), PLUMA_TYPE_TRAIL_SAVE_PLUGIN)) #define PLUMA_TRAIL_SAVE_PLUGIN_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), PLUMA_TYPE_TRAIL_SAVE_PLUGIN, PlumaTrailSavePluginClass)) +/* Private structure type */ +typedef struct _PlumaTrailSavePluginPrivate PlumaTrailSavePluginPrivate; + /* * Main object structure */ @@ -44,7 +48,10 @@ typedef struct _PlumaTrailSavePlugin PlumaTrailSavePlugin; struct _PlumaTrailSavePlugin { - PlumaPlugin parent_instance; + PeasExtensionBase parent_instance; + + /*< private >*/ + PlumaTrailSavePluginPrivate *priv; }; /* @@ -54,7 +61,7 @@ typedef struct _PlumaTrailSavePluginClass PlumaTrailSavePluginClass; struct _PlumaTrailSavePluginClass { - PlumaPluginClass parent_class; + PeasExtensionBaseClass parent_class; }; /* @@ -63,7 +70,7 @@ struct _PlumaTrailSavePluginClass GType pluma_trail_save_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 |