diff options
author | Xan Lopez <xan@gnome.org> | 2011-02-11 06:15:18 +0800 |
---|---|---|
committer | Xan Lopez <xan@gnome.org> | 2011-02-11 06:15:18 +0800 |
commit | 7a6c09572386c98b7b57d5543a1e36f6642d425b (patch) | |
tree | b6da977e72fc4863ddcc16b34c66a5e1bf8997d4 /embed | |
parent | 87466892eb08ec1f5efd6ea33589355b9bab05d0 (diff) | |
download | gsoc2013-epiphany-7a6c09572386c98b7b57d5543a1e36f6642d425b.tar gsoc2013-epiphany-7a6c09572386c98b7b57d5543a1e36f6642d425b.tar.gz gsoc2013-epiphany-7a6c09572386c98b7b57d5543a1e36f6642d425b.tar.bz2 gsoc2013-epiphany-7a6c09572386c98b7b57d5543a1e36f6642d425b.tar.lz gsoc2013-epiphany-7a6c09572386c98b7b57d5543a1e36f6642d425b.tar.xz gsoc2013-epiphany-7a6c09572386c98b7b57d5543a1e36f6642d425b.tar.zst gsoc2013-epiphany-7a6c09572386c98b7b57d5543a1e36f6642d425b.zip |
Change packing order for gedit overlay
Seems GeditOverlay works better if we pack directly the scrollable
widget on it, then pack the overlay in a scrolled window. Do that.
Diffstat (limited to 'embed')
-rw-r--r-- | embed/ephy-embed.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c index 79515cb86..ee0eb72d3 100644 --- a/embed/ephy-embed.c +++ b/embed/ephy-embed.c @@ -872,7 +872,7 @@ ephy_embed_constructed (GObject *object) /* Skeleton */ web_view = WEBKIT_WEB_VIEW (ephy_web_view_new ()); scrolled_window = GTK_WIDGET (embed->priv->scrolled_window); - overlay = gedit_overlay_new (scrolled_window); + overlay = gedit_overlay_new (GTK_WIDGET (web_view)); /* statusbar is hidden by default */ priv->statusbar_label = gtk_label_new (NULL); @@ -885,9 +885,9 @@ ephy_embed_constructed (GObject *object) embed->priv->web_view = web_view; - gtk_container_add (GTK_CONTAINER (embed->priv->scrolled_window), - GTK_WIDGET (web_view)); - gtk_paned_pack1 (GTK_PANED (paned), GTK_WIDGET (overlay), + gtk_container_add (GTK_CONTAINER (scrolled_window), + GTK_WIDGET (overlay)); + gtk_paned_pack1 (GTK_PANED (paned), GTK_WIDGET (scrolled_window), TRUE, FALSE); gtk_box_pack_start (GTK_BOX (embed), |