summaryrefslogtreecommitdiff
path: root/plugins/reload/eom-reload-plugin.h
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-11-30 21:46:53 +0300
committermonsta <[email protected]>2016-11-30 22:34:04 +0300
commitceae2747ae3fc8fc5319351643f841f9bb956f0f (patch)
tree085d8c097ad2d499161ad48379a8c0f9930a45ff /plugins/reload/eom-reload-plugin.h
parentfe5d786a5dbbf3f2a12db6ef7b3adba5b1567614 (diff)
downloadeom-ceae2747ae3fc8fc5319351643f841f9bb956f0f.tar.bz2
eom-ceae2747ae3fc8fc5319351643f841f9bb956f0f.tar.xz
reload plugin: port to libpeas
mostly adapted from: https://git.gnome.org/browse/eog/commit/?id=cf39e40b422dad061184ac67028661bd4dcb0106 https://git.gnome.org/browse/eog/commit/?id=8b0acfddc52c220393770a9895b6b56cab7821fd
Diffstat (limited to 'plugins/reload/eom-reload-plugin.h')
-rw-r--r--plugins/reload/eom-reload-plugin.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/plugins/reload/eom-reload-plugin.h b/plugins/reload/eom-reload-plugin.h
index 5f285d2..f3830e1 100644
--- a/plugins/reload/eom-reload-plugin.h
+++ b/plugins/reload/eom-reload-plugin.h
@@ -3,7 +3,9 @@
#include <glib.h>
#include <glib-object.h>
-#include <eom-plugin.h>
+#include <gtk/gtk.h>
+#include <libpeas/peas-extension-base.h>
+#include <libpeas/peas-object-module.h>
G_BEGIN_DECLS
@@ -32,7 +34,11 @@ typedef struct _EomReloadPluginPrivate EomReloadPluginPrivate;
typedef struct _EomReloadPlugin EomReloadPlugin;
struct _EomReloadPlugin {
- EomPlugin parent_instance;
+ PeasExtensionBase parent_instance;
+
+ GtkWidget *window;
+ GtkActionGroup *ui_action_group;
+ guint ui_id;
};
/*
@@ -41,7 +47,7 @@ struct _EomReloadPlugin {
typedef struct _EomReloadPluginClass EomReloadPluginClass;
struct _EomReloadPluginClass {
- EomPluginClass parent_class;
+ PeasExtensionBaseClass parent_class;
};
/*
@@ -50,7 +56,7 @@ struct _EomReloadPluginClass {
GType eom_reload_plugin_get_type (void) G_GNUC_CONST;
/* All the plugins must implement this function */
-G_MODULE_EXPORT GType register_eom_plugin (GTypeModule* module);
+G_MODULE_EXPORT void peas_register_types (PeasObjectModule *module);
G_END_DECLS