gtk/tests
Matthias Clasen 1aa00e5215 Support separators in combo boxes and more generally in tree views
2004-07-07  Matthias Clasen  <mclasen@redhat.com>

	Support separators in combo boxes and more generally in tree
	views  (#135873):

	* gtk/gtkcombobox.h:
	* gtk/gtkcombobox.c (gtk_combo_box_get_row_separator_column):
	* gtk/gtkcombobox.c (gtk_combo_box_set_row_separator_column):
	Add a ::row-separator-column property with getter and setter,
	which can indicate a boolean model column to determine which
	rows are separators.

	* gtk/gtkcombobox.c: Display separator rows as separator menu
	items in menu mode, and by using the new treeview separator
	functionality in list mode.

	* gtk/gtktreeview.h:
	* gtk/gtktreeview.c (gtk_tree_view_get_row_separator_func):
	* gtk/gtktreeview.c (gtk_tree_view_set_row_separator_func):
	Add a callback to determine whether a row is a separator.

	* gtk/gtktreeview.c (gtk_tree_view_bin_expose):
	* gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon):
	* gtk/gtktreeview.c (validate_row): Use the new callback
	to determine whether a row is a separator, and draw it
	as a separator then. Since separators should take up less
	vertical space than regular rows, this requires removing
	the redundant MAX(...,expander_size) calls which appear in
	many places. Instead, the MAX() is now only done in
	validate_row(), and only if the row is not a separator.
	To catch possible side effects of this intrusive change,
	I have left EXPANDER_MAX() calls in place of the MAX() calls
	which will emit a warning if something breaks. They should
	be removed before 2.6.

	* gtk/gtktreeselection.c (row_is_selectable): Don't let
	separator rows be selected.

	* tests/testcombo.c (create_blaat): Add a separator column.
2004-07-07 15:15:35 +00:00
..
test-images image files for testing pixbuf loaders the old test-loaders.c split into 2002-05-05 00:59:42 +00:00
.cvsignore Ssssh! 2004-03-12 15:51:25 +00:00
3DRings.xpm
apple-red.png Insert cast to fix warning. Assign something to old_value to quiet gcc 2003-07-03 01:02:04 +00:00
check-n.xpm
check-y.xpm
circles.xbm
FilesQueue.xpm
Makefile.am tests/makefile.msc is in CVS for a long time, finally added to EXTRA_DIST 2004-05-01 13:54:33 +00:00
makefile.msc gtk/gtkcombobox.c : prototype cell_view_sync_cells() before first usage 2004-03-14 16:02:33 +00:00
marble.xpm
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
pixbuf-lowmem.c image files for testing pixbuf loaders the old test-loaders.c split into 2002-05-05 00:59:42 +00:00
pixbuf-random.c image files for testing pixbuf loaders the old test-loaders.c split into 2002-05-05 00:59:42 +00:00
pixbuf-randomly-modified.c Deprecation cleanup 2002-10-13 23:22:33 +00:00
pixbuf-read.c image files for testing pixbuf loaders the old test-loaders.c split into 2002-05-05 00:59:42 +00:00
prop-editor.c Plug leak. 2004-03-17 21:38:58 +00:00
prop-editor.h Make it work, even if the window is already realized or mapped. 2002-04-30 23:44:14 +00:00
simple.c Fixes #136082 and #135265, patch by Morten Welinder. 2004-03-06 03:38:59 +00:00
stresstest-toolbar.c Fixes #136082 and #135265, patch by Morten Welinder. 2004-03-06 03:38:59 +00:00
test.xpm
testactions.c #136672, reported by Christian Persch; fixes based on a patch by Soeren 2004-03-15 02:03:59 +00:00
testcalendar.c Fixes #136082 and #135265, patch by Morten Welinder. 2004-03-06 03:38:59 +00:00
testcombo.c Support separators in combo boxes and more generally in tree views 2004-07-07 15:15:35 +00:00
testcombochange.c Fixes #136082 and #135265, patch by Morten Welinder. 2004-03-06 03:38:59 +00:00
testdnd.c Fixes #136082 and #135265, patch by Morten Welinder. 2004-03-06 03:38:59 +00:00
testentrycompletion.c Make the second example use the ::match-selected signal to make it 2004-05-10 17:55:49 +00:00
testfilechooser.c Moved search entries into priv data. 2004-04-11 19:15:24 +00:00
testgtk.1
testgtk.c #136672, reported by Christian Persch; fixes based on a patch by Soeren 2004-03-15 02:03:59 +00:00
testgtkrc Add a --screen option for setting the default screen. (Based on a patch 2002-10-31 21:12:23 +00:00
testgtkrc2
testicontheme.c Fixes #136082 and #135265, patch by Morten Welinder. 2004-03-06 03:38:59 +00:00
testinput.c Fixes #136082 and #135265, patch by Morten Welinder. 2004-03-06 03:38:59 +00:00
testmenus.c Fixes #136082 and #135265, patch by Morten Welinder. 2004-03-06 03:38:59 +00:00
testmerge.c Add a checkbox to queue an merge/unmerge. Patch from Matthias Clasen. 2004-06-05 18:24:53 +00:00
testmultidisplay.c Fixes #136082 and #135265, patch by Morten Welinder. 2004-03-06 03:38:59 +00:00
testmultiscreen.c Fixes #136082 and #135265, patch by Morten Welinder. 2004-03-06 03:38:59 +00:00
testrgb.c Fixes #136082 and #135265, patch by Morten Welinder. 2004-03-06 03:38:59 +00:00
testselection.c Fixes #136082 and #135265, patch by Morten Welinder. 2004-03-06 03:38:59 +00:00
testsocket_child.c Fixes #136082 and #135265, patch by Morten Welinder. 2004-03-06 03:38:59 +00:00
testsocket_common.c Fixes #136082 and #135265, patch by Morten Welinder. 2004-03-06 03:38:59 +00:00
testsocket.c Fixes #136082 and #135265, patch by Morten Welinder. 2004-03-06 03:38:59 +00:00
testspinbutton.c Add new testspinbutton.c 2004-03-12 15:49:22 +00:00
testtext.c Fixes #136082 and #135265, patch by Morten Welinder. 2004-03-06 03:38:59 +00:00
testtextbuffer.c Fixes #136082 and #135265, patch by Morten Welinder. 2004-03-06 03:38:59 +00:00
testthreads.c Fixes #136082 and #135265, patch by Morten Welinder. 2004-03-06 03:38:59 +00:00
testtoolbar.c Fixes #136082 and #135265, patch by Morten Welinder. 2004-03-06 03:38:59 +00:00
testtreecolumns.c Fixes #136082 and #135265, patch by Morten Welinder. 2004-03-06 03:38:59 +00:00
testtreeedit.c Add a progress cell renderer, based on the one found in Epiphany. 2004-05-12 16:07:44 +00:00
testtreeflow.c Fixes #136082 and #135265, patch by Morten Welinder. 2004-03-06 03:38:59 +00:00
testtreefocus.c Fixes #136082 and #135265, patch by Morten Welinder. 2004-03-06 03:38:59 +00:00
testtreesort.c Fixes #136082 and #135265, patch by Morten Welinder. 2004-03-06 03:38:59 +00:00
testtreeview-plan.txt
testtreeview.c Fixes #136082 and #135265, patch by Morten Welinder. 2004-03-06 03:38:59 +00:00
testxinerama.c Fixes #136082 and #135265, patch by Morten Welinder. 2004-03-06 03:38:59 +00:00
treestoretest.c Fixes #136082 and #135265, patch by Morten Welinder. 2004-03-06 03:38:59 +00:00