summaryrefslogtreecommitdiff
path: root/tests/testtreeview.c
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.van.berkom@gmail.com>2010-12-01 22:42:54 +0900
committerTristan Van Berkom <tristan.van.berkom@gmail.com>2010-12-01 22:56:06 +0900
commit30561228ed3dfc88866852ceecf81063a640e0d5 (patch)
treec53502d219282e6f4a031074078b9a34d26fdcdc /tests/testtreeview.c
parenta852deeb03a55f97ec3791408eb9506d9b9e783b (diff)
downloadgtk+-30561228ed3dfc88866852ceecf81063a640e0d5.tar.gz
Added some rules to GtkCellAreaBox for rendering the last cell.
- When we reach a cell that is out of the render area, break out of the loop (for columns user resized too small) - CLAMP the size of the last renderer to fit into the area (so that renderers get a chance to ellipsize when rendered with a space less than allocation, same reason as above). - Hand out remaining space in the render area to the last cell, this is for shallow rows in the expand column which may recieve more than the allocated width.
Diffstat (limited to 'tests/testtreeview.c')
-rw-r--r--tests/testtreeview.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testtreeview.c b/tests/testtreeview.c
index d28cb3520a..c252ebfc8c 100644
--- a/tests/testtreeview.c
+++ b/tests/testtreeview.c
@@ -351,7 +351,7 @@ set_columns_type (GtkTreeView *tree_view, ColumnsType type)
gtk_tree_view_set_rules_hint (tree_view, TRUE);
rend = gtk_cell_renderer_text_new ();
-
+
col = gtk_tree_view_column_new_with_attributes ("Column 1",
rend,
"text", 1,