aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2007-11-18 01:11:40 +0800
committerXan Lopez <xan@src.gnome.org>2007-11-18 01:11:40 +0800
commitadfea7bd0eb8a34d64d98cc215a0c97bf9465633 (patch)
treea4916c4fb420e63eff300c23091de42bf4cf1535 /embed/mozilla
parent44b538bb4dfcdd9d8989b8777c699f08dd034061 (diff)
downloadgsoc2013-epiphany-adfea7bd0eb8a34d64d98cc215a0c97bf9465633.tar
gsoc2013-epiphany-adfea7bd0eb8a34d64d98cc215a0c97bf9465633.tar.gz
gsoc2013-epiphany-adfea7bd0eb8a34d64d98cc215a0c97bf9465633.tar.bz2
gsoc2013-epiphany-adfea7bd0eb8a34d64d98cc215a0c97bf9465633.tar.lz
gsoc2013-epiphany-adfea7bd0eb8a34d64d98cc215a0c97bf9465633.tar.xz
gsoc2013-epiphany-adfea7bd0eb8a34d64d98cc215a0c97bf9465633.tar.zst
gsoc2013-epiphany-adfea7bd0eb8a34d64d98cc215a0c97bf9465633.zip
Put visibility property into EphyBaseEmbed, we need it for popups.
svn path=/trunk/; revision=7712
Diffstat (limited to 'embed/mozilla')
-rw-r--r--embed/mozilla/mozilla-embed.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/embed/mozilla/mozilla-embed.cpp b/embed/mozilla/mozilla-embed.cpp
index cca08a749..a554cb16a 100644
--- a/embed/mozilla/mozilla-embed.cpp
+++ b/embed/mozilla/mozilla-embed.cpp
@@ -1,3 +1,4 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
* Copyright © 2000-2004 Marco Pesenti Gritti
* Copyright © 2003, 2004 Christian Persch
@@ -16,7 +17,6 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
- * $Id$
*/
#include "mozilla-config.h"
@@ -82,6 +82,9 @@ static void mozilla_embed_title_change_cb (GtkMozEmbed *embed,
MozillaEmbed *membed);
static void mozilla_embed_link_message_cb (GtkMozEmbed *embed,
MozillaEmbed *membed);
+static void mozilla_embed_visibility_cb (GtkMozEmbed *embed,
+ gboolean visibility,
+ MozillaEmbed *membed);
static gboolean mozilla_embed_open_uri_cb (GtkMozEmbed *embed,
const char *uri,
MozillaEmbed *membed);
@@ -280,6 +283,9 @@ mozilla_embed_init (MozillaEmbed *membed)
g_signal_connect_object (embed, "open_uri",
G_CALLBACK (mozilla_embed_open_uri_cb),
membed,(GConnectFlags) 0);
+ g_signal_connect_object (embed, "visibility",
+ G_CALLBACK (mozilla_embed_visibility_cb),
+ membed, (GConnectFlags) 0);
}
gpointer
@@ -1169,6 +1175,14 @@ mozilla_embed_open_uri_cb (GtkMozEmbed *embed,
return FALSE;
}
+static void
+mozilla_embed_visibility_cb (GtkMozEmbed *embed,
+ gboolean visibility,
+ MozillaEmbed *membed)
+{
+ ephy_base_embed_set_visibility (EPHY_BASE_EMBED (membed), visibility);
+}
+
static EphyEmbedSecurityLevel
mozilla_embed_security_level (PRUint32 state)
{