From 026b114ae5839cdb61524639a91e111e5f15e369 Mon Sep 17 00:00:00 2001 From: Felix Riemann Date: Sun, 2 Jan 2011 23:54:13 +0100 Subject: Add our own activatable interface to EomWindow Improves typesafety by explicitly passing the EomWindow and allows us to extend the interface if necessary. https://bugzilla.gnome.org/show_bug.cgi?id=626091 origin commit: https://gitlab.gnome.org/GNOME/eog/commit/397a6a5 --- src/eom-window.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/eom-window.c') diff --git a/src/eom-window.c b/src/eom-window.c index bb8c6d9..d17c9d3 100644 --- a/src/eom-window.c +++ b/src/eom-window.c @@ -52,6 +52,7 @@ #include "eom-save-as-dialog-helper.h" #include "eom-close-confirmation-dialog.h" #include "eom-clipboard-handler.h" +#include "eom-window-activatable.h" #include "eom-metadata-sidebar.h" #include "eom-enum-types.h" @@ -5127,8 +5128,9 @@ eom_window_constructor (GType type, eom_window_construct_ui (EOM_WINDOW (object)); priv->extensions = peas_extension_set_new (PEAS_ENGINE (EOM_APP->plugin_engine), - PEAS_TYPE_ACTIVATABLE, - "object", object, NULL); + EOM_TYPE_WINDOW_ACTIVATABLE, + "window", + EOM_WINDOW (object), NULL); peas_extension_set_call (priv->extensions, "activate"); -- cgit v1.2.1