gtk/tests
Kristian Rietveld 2cc1247433 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
2008-07-11 14:17:49 +00:00
..
dummy-headers Extend the C++ keyword test to include internal GDK headers (#449016). 2007-06-26 14:24:27 +00:00
file-chooser-test-dir Fix bug #321560, based on a patch by Bogdan Nicula (bogdanni@hotmail.com): 2005-11-28 22:25:03 +00:00
test-images applied patch from maemo-gtk which avoids the allocation of an 2005-12-14 12:47:49 +00:00
3DRings.xpm Initial revision 1997-11-24 22:37:52 +00:00
apple-red.png Insert cast to fix warning. Assign something to old_value to quiet gcc 2003-07-03 01:02:04 +00:00
autotestfilesystem.c Revert name change 2008-07-01 22:57:50 +00:00
autotestkeywords.cc 2.11.5 2007-07-02 22:24:39 +00:00
check-n.xpm reworked the redrawing heuristics somewhat, this fixed a bunch of existing 1999-01-12 15:12:14 +00:00
check-y.xpm reworked the redrawing heuristics somewhat, this fixed a bunch of existing 1999-01-12 15:12:14 +00:00
circles.xbm gtk/gtktext.c 1998-02-27 06:13:22 +00:00
FilesQueue.xpm Initial revision 1997-11-24 22:37:52 +00:00
gnome-textfile.png Add testiconview. A test for GtkIconView ...which uses this image. 2004-08-04 14:32:45 +00:00
Makefile.am Fix #316087. 2008-07-11 14:17:49 +00:00
makefile.msc must return a value of the appropriate type with g_return_val_if_fail 2008-06-20 20:39:22 +00:00
marble.xpm Initial revision 1997-11-24 22:37:52 +00:00
merge-1.ui Test handling of empty menus. 2003-09-30 20:55:24 +00:00
merge-2.ui Test handling of empty menus. 2003-09-30 20:55:24 +00:00
merge-3.ui Change the XML format: <Root> element is replaced by <ui>, <menu> element 2003-08-27 22:22:28 +00:00
Modeller.xpm Initial revision 1997-11-24 22:37:52 +00:00
pixbuf-lowmem.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
pixbuf-random.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
pixbuf-randomly-modified.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
pixbuf-read.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
pixbuf-threads.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
print-editor.c perf/widgets.h tests/print-editor.c tests/prop-editor.h 2008-05-23 14:55:43 +00:00
prop-editor.c Fix a memory leak (#515039, Christian Persch) 2008-02-12 15:38:47 +00:00
prop-editor.h perf/widgets.h tests/print-editor.c tests/prop-editor.h 2008-05-23 14:55:43 +00:00
simple.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
stresstest-toolbar.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
test.xpm Initial revision 1997-11-24 22:37:52 +00:00
testaccel.c Renamed GtkCellRendererKeys to GtkCellRendererAccel to be consistent with 2005-09-22 16:33:50 +00:00
testactions.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
testassistant.c Revert name change 2008-07-01 22:57:50 +00:00
testbbox.c tests/testbbox.c use g_object_ref/unref instead of deprecated functions. 2007-11-14 10:00:37 +00:00
testcairo.c Fix the build 2005-07-12 18:08:20 +00:00
testcalendar.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
testcellrenderertext.c Revert name change 2008-07-01 22:57:50 +00:00
testcombo.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
testcombochange.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
testdnd.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
testellipsise.c Revert name change 2008-07-01 22:57:50 +00:00
testentrycompletion.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
testfilechooser.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
testfilechooserbutton.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
testframe.c tests/testbbox.c use g_object_ref/unref instead of deprecated functions. 2007-11-14 10:00:37 +00:00
testgrouping.c (broken pipe) 2006-04-26 12:39:25 +00:00
testgtk.1 Added gtk/testgtk.1 man page for testgtk 1998-03-24 04:01:21 +00:00
testgtk.c Revert name change 2008-07-01 22:57:50 +00:00
testgtkrc added GtkArrow::arrow-scaling style property to control the arrow/border 2006-09-19 15:51:19 +00:00
testgtkrc2 Remove all references to offscreen flag which was no longer used. 2000-06-02 03:14:07 +00:00
testicontheme.c Set the filename to NULL for builtin icons, sinc 2007-04-25 18:01:44 +00:00
testiconview.c make testiconview show brokenness 2007-06-11 15:38:53 +00:00
testimage.c Bug 522084 – GIcon support for GtkIconTheme & GtkImage 2008-05-29 14:33:49 +00:00
testinput.c Revert name change 2008-07-01 22:57:50 +00:00
testmenubars.c Add Copyright/License information. 2005-07-13 05:44:22 +00:00
testmenus.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
testmerge.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
testmountoperation.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
testmultidisplay.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
testmultiscreen.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
testnotebookdnd.c Revert name change 2008-07-01 22:57:50 +00:00
testnouiprint.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
testprint.c Revert name change 2008-07-01 22:57:50 +00:00
testprintfileoperation.c Further updates from the GtkPrintContext functions rename. 2006-05-31 14:06:02 +00:00
testprintfileoperation.h perf/widgets.h tests/print-editor.c tests/prop-editor.h 2008-05-23 14:55:43 +00:00
testrc.c Revert name change 2008-07-01 22:57:50 +00:00
testrecentchooser.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
testrecentchoosermenu.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
testrgb.c Revert name change 2008-07-01 22:57:50 +00:00
testrichtext.c Fix C89 compilation issue. (#467711, The Written Word) 2007-11-21 09:32:35 +00:00
testselection.c Revert name change 2008-07-01 22:57:50 +00:00
testsocket_child.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
testsocket_common.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
testsocket.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
testspinbutton.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
teststatusicon.c Add the possibility to test what happens if the process just calls exit() 2008-03-10 19:28:34 +00:00
testtext.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
testthreads.c Revert name change 2008-07-01 22:57:50 +00:00
testtoolbar.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
testtooltips.c Add code to test gtk_tooltip_set_custom() 2007-07-24 03:50:49 +00:00
testtreecolumns.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
testtreecolumnsizing.c Fix #316087. 2008-07-11 14:17:49 +00:00
testtreeedit.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
testtreeflow.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
testtreefocus.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
testtreemodel.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
testtreesort.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
testtreeview-plan.txt handle case where there are no rows in the model 2001-01-09 17:45:34 +00:00
testtreeview.c tests/pixbuf-lowmem.c tests/pixbuf-random.c 2008-05-25 08:41:15 +00:00
testvolumebutton.c Add a second volume button. 2007-10-04 12:52:46 +00:00
testxinerama.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00
treestoretest.c Include "config.h" instead of <config.h> Command used: find -name 2008-06-22 14:28:52 +00:00