[gtk+/native-layout] Clipped values for gtk_distribute_natural_allocation()
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/native-layout] Clipped values for gtk_distribute_natural_allocation()
- Date: Tue, 17 Aug 2010 05:37:15 +0000 (UTC)
commit c4119e58cfcc2cd605e90efe4d56c50fbffe1a2c
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Tue Aug 17 01:32:44 2010 -0400
Clipped values for gtk_distribute_natural_allocation()
gtk/gtktreeviewcolumn.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtktreeviewcolumn.c b/gtk/gtktreeviewcolumn.c
index 0021331..02b91c8 100644
--- a/gtk/gtktreeviewcolumn.c
+++ b/gtk/gtktreeviewcolumn.c
@@ -3801,7 +3801,7 @@ gtk_tree_view_column_get_height_for_width (GtkTreeViewColumn *column,
/* Distribute as much of remaining 'size' as possible before sharing expand space */
sizes = (GtkRequestedSize *)array->data;
- size = gtk_distribute_natural_allocation (size, array->len, sizes);
+ size = gtk_distribute_natural_allocation (MAX (0, size), array->len, sizes);
/* The rest gets split up evenly among expanding cells */
if (expand_cell_count)
@@ -3903,7 +3903,7 @@ gtk_tree_view_column_allocate_width (GtkTreeViewColumn *column,
/* Distribute as much of remaining 'size' as possible before sharing expand space */
sizes = (GtkRequestedSize *)array->data;
- size = gtk_distribute_natural_allocation (size, array->len, sizes);
+ size = gtk_distribute_natural_allocation (MAX (0, size), array->len, sizes);
/* The rest gets split up evenly among expanding cells */
if (expand_cell_count > 0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]