[anjuta] anjuta-tabber: remove the total padding from total width
- From: Carl-Anton Ingmarsson <carlantoni src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] anjuta-tabber: remove the total padding from total width
- Date: Sun, 21 Apr 2013 17:38:55 +0000 (UTC)
commit e504624766a0d976751beee6bd5af8ae6d535a43
Author: Carl-Anton Ingmarsson <ca ingmarsson gmail com>
Date: Sun Apr 21 19:34:07 2013 +0200
anjuta-tabber: remove the total padding from total width
And not from the size of each tab child which was previously done.
libanjuta/anjuta-tabber.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/libanjuta/anjuta-tabber.c b/libanjuta/anjuta-tabber.c
index 92991cc..f44ab76 100644
--- a/libanjuta/anjuta-tabber.c
+++ b/libanjuta/anjuta-tabber.c
@@ -409,7 +409,7 @@ anjuta_tabber_size_allocate(GtkWidget* widget, GtkAllocation* allocation)
}
/* Check if we have enough space for all widgets natural size */
- child_equal = real_width / n_children - total_space;
+ child_equal = (real_width - total_space) / n_children;
if (child_equal < 0)
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]