summaryrefslogtreecommitdiff
path: root/gtk/gtktreeviewcolumn.c
diff options
context:
space:
mode:
authorKristian Rietveld <kris@gtk.org>2006-08-16 15:58:28 +0000
committerKristian Rietveld <kristian@src.gnome.org>2006-08-16 15:58:28 +0000
commitb82aa4bbee0a31cd04966e049e38666578711eb7 (patch)
tree2b778990362b1d306cd5aa69b462b359efcbf36b /gtk/gtktreeviewcolumn.c
parent6031107de28df029143c51e58ee3c3c6c50c3c62 (diff)
downloadgdk-pixbuf-b82aa4bbee0a31cd04966e049e38666578711eb7.tar.gz
take the cell spacing into account when calculating the available extra
2006-08-16 Kristian Rietveld <kris@gtk.org> * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_cell_process_action): take the cell spacing into account when calculating the available extra space. (#350938, patch from Peter Johanson).
Diffstat (limited to 'gtk/gtktreeviewcolumn.c')
-rw-r--r--gtk/gtktreeviewcolumn.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk/gtktreeviewcolumn.c b/gtk/gtktreeviewcolumn.c
index b5e657e0a..3ee3fcc47 100644
--- a/gtk/gtktreeviewcolumn.c
+++ b/gtk/gtktreeviewcolumn.c
@@ -2631,6 +2631,7 @@ gtk_tree_view_column_cell_process_action (GtkTreeViewColumn *tree_column,
gint special_cells;
gint horizontal_separator;
gboolean cursor_row = FALSE;
+ gboolean first_cell = TRUE;
gboolean rtl;
/* If we have rtl text, we need to transform our areas */
GdkRectangle rtl_cell_area;
@@ -2699,7 +2700,11 @@ gtk_tree_view_column_cell_process_action (GtkTreeViewColumn *tree_column,
if (info->expand == TRUE)
expand_cell_count ++;
full_requested_width += info->requested_width;
- /* FIXME: We prolly need to include tree_column->spacing here */
+
+ if (!first_cell)
+ full_requested_width += tree_column->spacing;
+
+ first_cell = FALSE;
}
extra_space = cell_area->width - full_requested_width;