[epiphany] use gtk_box_pack_start() with EphyEmbed



commit 0f61b9bd7ab89b70f1323f08b4f26a27b005d62a
Author: Claudio Saavedra <csaavedra igalia com>
Date:   Thu Jun 9 17:25:08 2011 +0300

    use gtk_box_pack_start() with EphyEmbed
    
    Using gtk_container_add() is a bad idea because default fill/expand
    values can change, and they happened to do in GTK+ 3.1.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=652201

 embed/ephy-embed.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c
index 4a3739f..fa5076a 100644
--- a/embed/ephy-embed.c
+++ b/embed/ephy-embed.c
@@ -544,7 +544,7 @@ ephy_embed_constructed (GObject *object)
   gtk_box_pack_start (GTK_BOX (embed),
                       GTK_WIDGET (embed->priv->top_widgets_vbox),
                       FALSE, FALSE, 0);
-  gtk_container_add (GTK_CONTAINER (embed), paned);
+  gtk_box_pack_start (GTK_BOX (embed), paned, TRUE, TRUE, 0);
 
   gtk_widget_show (GTK_WIDGET (embed->priv->top_widgets_vbox));
   gtk_widget_show (GTK_WIDGET (web_view));



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