diff options
author | monsta <[email protected]> | 2016-11-30 22:03:09 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-11-30 22:34:49 +0300 |
commit | 5ee13bce9f5c4672d24006be64790bd206b68319 (patch) | |
tree | 7cfe6022cf9f3805a9beb3beb7270bcd060ccbe9 /plugins/statusbar-date/eom-statusbar-date-plugin.h | |
parent | ceae2747ae3fc8fc5319351643f841f9bb956f0f (diff) | |
download | eom-5ee13bce9f5c4672d24006be64790bd206b68319.tar.bz2 eom-5ee13bce9f5c4672d24006be64790bd206b68319.tar.xz |
statusbar-date 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/statusbar-date/eom-statusbar-date-plugin.h')
-rw-r--r-- | plugins/statusbar-date/eom-statusbar-date-plugin.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/plugins/statusbar-date/eom-statusbar-date-plugin.h b/plugins/statusbar-date/eom-statusbar-date-plugin.h index 0718bbe..b779fce 100644 --- a/plugins/statusbar-date/eom-statusbar-date-plugin.h +++ b/plugins/statusbar-date/eom-statusbar-date-plugin.h @@ -24,7 +24,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 @@ -53,7 +55,11 @@ typedef struct _EomStatusbarDatePluginPrivate EomStatusbarDatePluginPrivate; typedef struct _EomStatusbarDatePlugin EomStatusbarDatePlugin; struct _EomStatusbarDatePlugin { - EomPlugin parent_instance; + PeasExtensionBase parent_instance; + + GtkWidget *window; + GtkWidget *statusbar_date; + gulong signal_id; }; /* @@ -62,7 +68,7 @@ struct _EomStatusbarDatePlugin { typedef struct _EomStatusbarDatePluginClass EomStatusbarDatePluginClass; struct _EomStatusbarDatePluginClass { - EomPluginClass parent_class; + PeasExtensionBaseClass parent_class; }; /* @@ -71,7 +77,7 @@ struct _EomStatusbarDatePluginClass { GType eom_statusbar_date_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 |