[epiphany] e-embed: use an overlay for the overview
- From: Diego Escalante Urrelo <diegoe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] e-embed: use an overlay for the overview
- Date: Fri, 4 Jan 2013 21:17:03 +0000 (UTC)
commit 1777a519d705c6ddece3f30cd9235f27b4284c28
Author: Diego Escalante Urrelo <diegoe igalia com>
Date: Sun Dec 9 11:28:20 2012 -0500
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
embed/ephy-embed.c | 26 ++++++++++----------------
1 files changed, 10 insertions(+), 16 deletions(-)
---
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c
index dca8642..a8a24bb 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]