aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-embed-shell.c
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2013-03-10 04:18:28 +0800
committerXan Lopez <xan@igalia.com>2013-03-11 20:38:46 +0800
commit6da63a35ffe4254084c80d5abb568f9e9906be5a (patch)
tree6311c96033b634b06ff3e7f04f131efd5e659994 /embed/ephy-embed-shell.c
parentbc16d2a4d7c0dc06f5c36ca3c75c7eb40f5c3676 (diff)
downloadgsoc2013-epiphany-6da63a35ffe4254084c80d5abb568f9e9906be5a.tar
gsoc2013-epiphany-6da63a35ffe4254084c80d5abb568f9e9906be5a.tar.gz
gsoc2013-epiphany-6da63a35ffe4254084c80d5abb568f9e9906be5a.tar.bz2
gsoc2013-epiphany-6da63a35ffe4254084c80d5abb568f9e9906be5a.tar.lz
gsoc2013-epiphany-6da63a35ffe4254084c80d5abb568f9e9906be5a.tar.xz
gsoc2013-epiphany-6da63a35ffe4254084c80d5abb568f9e9906be5a.tar.zst
gsoc2013-epiphany-6da63a35ffe4254084c80d5abb568f9e9906be5a.zip
ephy-embed-shell: add a ::web-view-created signal
Emitted every time we create an EphyWebView anywhere. This will be useful in our tests. https://bugzilla.gnome.org/show_bug.cgi?id=695300
Diffstat (limited to 'embed/ephy-embed-shell.c')
-rw-r--r--embed/ephy-embed-shell.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/embed/ephy-embed-shell.c b/embed/ephy-embed-shell.c
index fe2969e9b..19e543216 100644
--- a/embed/ephy-embed-shell.c
+++ b/embed/ephy-embed-shell.c
@@ -74,6 +74,7 @@ enum
DOWNLOAD_REMOVED,
PREPARE_CLOSE,
RESTORED_WINDOW,
+ WEB_VIEW_CREATED,
LAST_SIGNAL
};
@@ -489,6 +490,24 @@ ephy_embed_shell_class_init (EphyEmbedShellClass *klass)
G_TYPE_NONE,
0);
+ /**
+ * EphyEmbedShell::web-view-created:
+ * @shell: the #EphyEmbedShell
+ * @view: the newly created #EphyWebView
+ *
+ * The ::web-view-created signal will be emitted every time a new
+ * #EphyWebView is created.
+ *
+ **/
+ signals[WEB_VIEW_CREATED] =
+ g_signal_new ("web-view-created",
+ EPHY_TYPE_EMBED_SHELL,
+ G_SIGNAL_RUN_LAST,
+ 0, NULL, NULL,
+ g_cclosure_marshal_VOID__OBJECT,
+ G_TYPE_NONE, 1,
+ EPHY_TYPE_WEB_VIEW);
+
g_type_class_add_private (object_class, sizeof (EphyEmbedShellPrivate));
}