[epiphany] Change packing order for gedit overlay



commit 7a6c09572386c98b7b57d5543a1e36f6642d425b
Author: Xan Lopez <xan gnome org>
Date:   Thu Feb 10 23:15:18 2011 +0100

    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.

 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 79515cb..ee0eb72 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),



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]