[anjuta] libanjuta: allocate the same height to all tabs in AnjutaTabber
- From: Johannes Schmid <jhs src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] libanjuta: allocate the same height to all tabs in AnjutaTabber
- Date: Sun, 20 Mar 2011 00:25:55 +0000 (UTC)
commit 33d37b33d574f0428358a1b704a774bfc1c4d6f3
Author: Abderrahim Kitouni <akitouni src gnome org>
Date: Sat Mar 19 18:44:25 2011 +0100
libanjuta: allocate the same height to all tabs in AnjutaTabber
libanjuta/anjuta-tabber.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/libanjuta/anjuta-tabber.c b/libanjuta/anjuta-tabber.c
index bf1a191..526727a 100644
--- a/libanjuta/anjuta-tabber.c
+++ b/libanjuta/anjuta-tabber.c
@@ -320,9 +320,7 @@ anjuta_tabber_size_allocate(GtkWidget* widget, GtkAllocation* allocation)
for (child = tabber->priv->children; child != NULL; child = g_list_next (child))
{
GtkWidget* child_widget = GTK_WIDGET (child->data);
- GtkRequisition child_req;
GtkAllocation child_alloc;
- gtk_widget_get_child_requisition (child_widget, &child_req);
gint natural;
gint minimal;
gint begin_tab = tab;
@@ -347,7 +345,8 @@ anjuta_tabber_size_allocate(GtkWidget* widget, GtkAllocation* allocation)
else
child_alloc.width = child_equal;
}
- child_alloc.height = child_req.height - tabber->priv->tab_vborder;
+ child_alloc.height = allocation->height
+ - 2 * (ythickness + focus_width + tabber->priv->tab_vborder);
switch (gtk_widget_get_direction (widget))
{
case GTK_TEXT_DIR_RTL:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]