From fe5d786a5dbbf3f2a12db6ef7b3adba5b1567614 Mon Sep 17 00:00:00 2001 From: monsta Date: Wed, 30 Nov 2016 21:33:21 +0300 Subject: 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 --- plugins/fullscreen/eom-fullscreen-plugin.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'plugins/fullscreen/eom-fullscreen-plugin.h') 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 #include -#include +#include +#include +#include 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 -- cgit v1.2.1