aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Escalante Urrelo <diegoe@igalia.com>2012-12-10 00:28:20 +0800
committerDiego Escalante Urrelo <diegoe@gnome.org>2013-01-05 05:11:46 +0800
commit1777a519d705c6ddece3f30cd9235f27b4284c28 (patch)
tree76d64f381b5b498339f3fb212d747a85ec84d433
parent3ed38ea942fa2f2c4e5dddcd2b59a4f3687deb12 (diff)
downloadgsoc2013-epiphany-1777a519d705c6ddece3f30cd9235f27b4284c28.tar
gsoc2013-epiphany-1777a519d705c6ddece3f30cd9235f27b4284c28.tar.gz
gsoc2013-epiphany-1777a519d705c6ddece3f30cd9235f27b4284c28.tar.bz2
gsoc2013-epiphany-1777a519d705c6ddece3f30cd9235f27b4284c28.tar.lz
gsoc2013-epiphany-1777a519d705c6ddece3f30cd9235f27b4284c28.tar.xz
gsoc2013-epiphany-1777a519d705c6ddece3f30cd9235f27b4284c28.tar.zst
gsoc2013-epiphany-1777a519d705c6ddece3f30cd9235f27b4284c28.zip
e-embed: use an overlay for the overview
This permits reusing elements of EphyEmbed more easily. https://bugzilla.gnome.org/show_bug.cgi?id=685747
-rw-r--r--embed/ephy-embed.c26
1 files changed, 10 insertions, 16 deletions
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c
index dca864299..a8a24bb20 100644
--- a/embed/ephy-embed.c
+++ b/embed/ephy-embed.c
@@ -892,6 +892,16 @@ ephy_embed_constructed (GObject *object)
gtk_container_add (GTK_CONTAINER (overlay), scrolled_window);
#endif
+ /* The overview */
+ priv->overview = ephy_overview_new ();
+ gtk_widget_set_halign (priv->overview, GTK_ALIGN_FILL);
+ gtk_widget_set_valign (priv->overview, GTK_ALIGN_FILL);
+ gtk_overlay_add_overlay (GTK_OVERLAY (overlay), priv->overview);
+
+ g_object_bind_property (embed, "overview-mode",
+ priv->overview, "visible",
+ G_BINDING_SYNC_CREATE);
+
/* Floating message popup for fullscreen mode. */
priv->fullscreen_message_label = gtk_label_new (NULL);
gtk_widget_set_name (priv->fullscreen_message_label, "fullscreen-popup");
@@ -1023,22 +1033,6 @@ ephy_embed_constructed (GObject *object)
NULL);
#endif
- /* The overview */
- priv->overview = ephy_overview_new ();
- gtk_box_pack_start (GTK_BOX (embed),
- GTK_WIDGET (priv->overview),
- TRUE, TRUE, 0);
- g_object_bind_property (embed, "overview-mode",
- priv->overview, "visible",
- G_BINDING_SYNC_CREATE
- | G_BINDING_BIDIRECTIONAL);
-
- g_object_bind_property (embed, "overview-mode",
- paned, "visible",
- G_BINDING_SYNC_CREATE
- | G_BINDING_INVERT_BOOLEAN
- | G_BINDING_BIDIRECTIONAL);
-
ephy_embed_prefs_add_embed (embed);
}