diff options
author | Kristian Rietveld <kris@gtk.org> | 2008-07-11 14:17:49 +0000 |
---|---|---|
committer | Kristian Rietveld <kristian@src.gnome.org> | 2008-07-11 14:17:49 +0000 |
commit | 2cc1247433a1e4e480a09b31f7875ba253601ae8 (patch) | |
tree | 19bb8598cbad70c7d55e8b3144e1b799a344e8f0 /tests/Makefile.am | |
parent | 1d510a9e84e829f838d4c900626c3c575d637c11 (diff) | |
download | gtk+-2cc1247433a1e4e480a09b31f7875ba253601ae8.tar.gz |
Fix #316087.
2008-07-11 Kristian Rietveld <kris@gtk.org>
Bug 316087 - Resizing columns is chaotic
* gtk/gtktreeprivate.h: add new member fields.
* gtk/gtktreeview.c (gtk_tree_view_init), (validate_row): set post
validation flag,
(gtk_tree_view_size_allocate_columns): rework the size allocation
mechanism to only recalculate the expand values if the width of the
widget, content or the column configuration has changed,
(gtk_tree_view_size_allocate): move call to size_allocate_columns()
to before the adjustment updates so the proper width is used after
we updated it,
(gtk_tree_view_button_press), (gtk_tree_view_motion_resize_column):
use the column width minus the expand value for the resized width,
(gtk_tree_view_move_column_after): update call to
gtk_tree_view_size_allocate_columns().
* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_expand): set use
resized width to FALSE.
* tests/Makefile.am:
* tests/testtreecolumnsizing.c: new interactive test program
for testing column resizing with different column configurations.
svn path=/trunk/; revision=20818
Diffstat (limited to 'tests/Makefile.am')
-rw-r--r-- | tests/Makefile.am | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index edd18b01da..fa5ce14117 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -72,6 +72,7 @@ noinst_PROGRAMS = $(TEST_PROGS) \ testtreefocus \ testtreeflow \ testtreecolumns \ + testtreecolumnsizing \ testtreesort \ treestoretest \ testxinerama \ @@ -145,6 +146,7 @@ testtreeview_DEPENDENCIES = $(DEPS) testtreefocus_DEPENDENCIES = $(DEPS) testtreeflow_DEPENDENCIES = $(DEPS) testtreecolumns_DEPENDENCIES = $(DEPS) +testtreecolumnsizing_DEPENDENCIES = $(DEPS) testtreesort_DEPENDENCIES = $(DEPS) treestoretest_DEPENDENCIES = $(TEST_DEPS) testxinerama_DEPENDENCIES = $(TEST_DEPS) @@ -200,6 +202,7 @@ testtreeview_LDADD = $(LDADDS) testtreefocus_LDADD = $(LDADDS) testtreeflow_LDADD = $(LDADDS) testtreecolumns_LDADD = $(LDADDS) +testtreecolumnsizing_LDADD = $(LDADDS) testtreesort_LDADD = $(LDADDS) testtext_LDADD = $(LDADDS) treestoretest_LDADD = $(LDADDS) |