aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2007-09-30 19:51:32 +0800
committerXan Lopez <xan@src.gnome.org>2007-09-30 19:51:32 +0800
commitd09bb750b80c245545bb8e97ce9070d9f3d31310 (patch)
treec25010fb96e61ddcbeb68fe6f46a5523a0922a70 /src
parent6d689d6e0030c76ce74518af374cfbb0d0960a4c (diff)
downloadgsoc2013-epiphany-d09bb750b80c245545bb8e97ce9070d9f3d31310.tar
gsoc2013-epiphany-d09bb750b80c245545bb8e97ce9070d9f3d31310.tar.gz
gsoc2013-epiphany-d09bb750b80c245545bb8e97ce9070d9f3d31310.tar.bz2
gsoc2013-epiphany-d09bb750b80c245545bb8e97ce9070d9f3d31310.tar.lz
gsoc2013-epiphany-d09bb750b80c245545bb8e97ce9070d9f3d31310.tar.xz
gsoc2013-epiphany-d09bb750b80c245545bb8e97ce9070d9f3d31310.tar.zst
gsoc2013-epiphany-d09bb750b80c245545bb8e97ce9070d9f3d31310.zip
Implement size_request for EphyTab. Fixes bug #476120
svn path=/trunk/; revision=7507
Diffstat (limited to 'src')
-rw-r--r--src/ephy-tab.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/ephy-tab.c b/src/ephy-tab.c
index 8b3a32be1..702e18505 100644
--- a/src/ephy-tab.c
+++ b/src/ephy-tab.c
@@ -320,6 +320,24 @@ ephy_tab_get_property (GObject *object,
}
}
+
+static void
+ephy_tab_size_request (GtkWidget *widget,
+ GtkRequisition *requisition)
+{
+ GtkWidget *child;
+
+ GTK_WIDGET_CLASS (parent_class)->size_request (widget, requisition);
+
+ child = GTK_BIN (widget)->child;
+
+ if (child && GTK_WIDGET_VISIBLE (child))
+ {
+ GtkRequisition child_requisition;
+ gtk_widget_size_request (GTK_WIDGET (child), &child_requisition);
+ }
+}
+
static void
ephy_tab_size_allocate (GtkWidget *widget,
GtkAllocation *allocation)
@@ -387,6 +405,7 @@ ephy_tab_class_init (EphyTabClass *class)
object_class->set_property = ephy_tab_set_property;
widget_class->size_allocate = ephy_tab_size_allocate;
+ widget_class->size_request = ephy_tab_size_request;
widget_class->map = ephy_tab_map;
widget_class->grab_focus = ephy_tab_grab_focus;