From 8f01817138c1852b319898a5de3f4b9f244cdea5 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sun, 30 Jan 2005 15:20:36 +0000 Subject: Move new-window signal to the embed single, and new window creation from 2005-01-30 Christian Persch * doc/reference/tmpl/ephy-embed.sgml: * embed/ephy-embed-single.c: (ephy_embed_single_iface_init): * embed/ephy-embed-single.h: * embed/ephy-embed.c: (ephy_embed_base_init): * embed/ephy-embed.h: * embed/mozilla/mozilla-embed-single.cpp: * embed/mozilla/mozilla-embed.cpp: * embed/mozilla/mozilla-embed.h: * lib/ephy-marshal.list: * lib/ephy-prefs.h: * src/ephy-shell.c: (ephy_shell_new_window_cb), (impl_get_embed_single): * src/ephy-tab.c: (ephy_tab_new_window_cb): Move new-window signal to the embed single, and new window creation from EphyTab to EphyShell. --- embed/ephy-embed-single.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'embed/ephy-embed-single.c') diff --git a/embed/ephy-embed-single.c b/embed/ephy-embed-single.c index 3f5af639f..0b05dc876 100644 --- a/embed/ephy-embed-single.c +++ b/embed/ephy-embed-single.c @@ -23,6 +23,7 @@ #include "ephy-embed-single.h" #include "ephy-embed-type-builtins.h" #include "ephy-marshal.h" +#include "ephy-signal-accumulator.h" static void ephy_embed_single_iface_init (gpointer g_class); @@ -56,6 +57,28 @@ ephy_embed_single_iface_init (gpointer g_class) if (initialised == FALSE) { +/** + * EphyEmbedSingle::new-window: + * @single: + * @parent_embed: the #EphyEmbed requesting the new window, or %NULL + * @mask: a #EphyEmbedChrome + * + * The ::new_window signal is emitted when a new window needs to be opened. + * For example, when a JavaScript popup window was opened. + * + * Return a new #EphyEmbed. + **/ + g_signal_new ("new-window", + EPHY_TYPE_EMBED_SINGLE, + G_SIGNAL_RUN_FIRST | G_SIGNAL_RUN_LAST, + G_STRUCT_OFFSET (EphyEmbedSingleIface, new_window), + ephy_signal_accumulator_object, ephy_embed_get_type, + ephy_marshal_OBJECT__OBJECT_FLAGS, + GTK_TYPE_WIDGET, + 2, + GTK_TYPE_WIDGET, + EPHY_TYPE_EMBED_CHROME); + /** * EphyEmbedSingle::handle_content: * @single: -- cgit v1.2.3