summaryrefslogtreecommitdiff
path: root/src/eom-window.c
diff options
context:
space:
mode:
authorFelix Riemann <[email protected]>2011-01-02 23:54:13 +0100
committerraveit65 <[email protected]>2018-07-11 08:39:23 +0200
commit026b114ae5839cdb61524639a91e111e5f15e369 (patch)
tree890ac8281cc5bce7a7a6aaae68283f57e263a19d /src/eom-window.c
parent17e6cdbb2c64db060090e57c96e18da2fd6b7873 (diff)
downloadeom-026b114ae5839cdb61524639a91e111e5f15e369.tar.bz2
eom-026b114ae5839cdb61524639a91e111e5f15e369.tar.xz
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
Diffstat (limited to 'src/eom-window.c')
-rw-r--r--src/eom-window.c6
1 files changed, 4 insertions, 2 deletions
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");