summaryrefslogtreecommitdiff
path: root/plugins/fullscreen/eom-fullscreen-plugin.h
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-11-30 21:33:21 +0300
committermonsta <[email protected]>2016-11-30 22:32:20 +0300
commitfe5d786a5dbbf3f2a12db6ef7b3adba5b1567614 (patch)
treee0e314c694f9c8d6fb36b881c490d4a4000fba17 /plugins/fullscreen/eom-fullscreen-plugin.h
parent108741a82a158996883f9d1ae19c6e65226f3309 (diff)
downloadeom-fe5d786a5dbbf3f2a12db6ef7b3adba5b1567614.tar.bz2
eom-fe5d786a5dbbf3f2a12db6ef7b3adba5b1567614.tar.xz
fullscreen 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/fullscreen/eom-fullscreen-plugin.h')
-rw-r--r--plugins/fullscreen/eom-fullscreen-plugin.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/plugins/fullscreen/eom-fullscreen-plugin.h b/plugins/fullscreen/eom-fullscreen-plugin.h
index 17db056..0e7d9da 100644
--- a/plugins/fullscreen/eom-fullscreen-plugin.h
+++ b/plugins/fullscreen/eom-fullscreen-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,10 @@ typedef struct _EomFullscreenPluginPrivate EomFullscreenPluginPrivate;
typedef struct _EomFullscreenPlugin EomFullscreenPlugin;
struct _EomFullscreenPlugin {
- EomPlugin parent_instance;
+ PeasExtensionBase parent_instance;
+
+ GtkWidget *window;
+ gulong signal_id;
};
/*
@@ -41,7 +46,7 @@ struct _EomFullscreenPlugin {
typedef struct _EomFullscreenPluginClass EomFullscreenPluginClass;
struct _EomFullscreenPluginClass {
- EomPluginClass parent_class;
+ PeasExtensionBaseClass parent_class;
};
/*
@@ -50,7 +55,7 @@ struct _EomFullscreenPluginClass {
GType eom_fullscreen_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