From 234742d9a6c75c8163a47bd1f3b1eeeba15e58cc Mon Sep 17 00:00:00 2001 From: Adam Hooper Date: Mon, 21 Jun 2004 11:09:56 +0000 Subject: Implement popup-blocking signals. Part of bug #111930. --- embed/ephy-embed.c | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'embed/ephy-embed.c') diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c index 341c66d49..9893c1ac0 100644 --- a/embed/ephy-embed.c +++ b/embed/ephy-embed.c @@ -101,6 +101,25 @@ ephy_embed_base_init (gpointer g_class) 2, G_TYPE_POINTER, G_TYPE_INT); +/** + * EphyEmbed::ge-popup-blocked: + * @embed: + * @address: The requested URL + * @features: The requested features: for example, "height=400,width=200" + * + * The ::ge_popup_blocked signal is emitted when the viewed web page requests + * a popup window (with javascript:open()) but popup windows are not allowed. + **/ + g_signal_new ("ge_popup_blocked", + EPHY_TYPE_EMBED, + G_SIGNAL_RUN_FIRST, + G_STRUCT_OFFSET (EphyEmbedIface, popup_blocked), + NULL, NULL, + ephy_marshal_VOID__STRING_STRING, + G_TYPE_NONE, + 2, + G_TYPE_POINTER, + G_TYPE_POINTER); /** * EphyEmbed::ge-context-menu: * @embed: @@ -142,7 +161,7 @@ ephy_embed_base_init (gpointer g_class) * @address: the new URL @embed is visiting * * The ::ge_location signal is emitted when @embed begins to load a new web - * page. For example, if the user clicks on a link or enters an address of if + * page. For example, if the user clicks on a link or enters an address or if * the previous web page had JavaScript or a META REFRESH tag. * * The ::ge_location signal will be emitted even when @embed is simply -- cgit v1.2.3