• Havoc Pennington's avatar
    handle case where sibling == iter (gtk_tree_store_insert_after): handle · 740ee8ef
    Havoc Pennington authored
    2001-01-10  Havoc Pennington  <hp@redhat.com>
    
    	* gtk/gtktreestore.c (gtk_tree_store_insert_before): handle case
    	where sibling == iter
    	(gtk_tree_store_insert_after): handle sibling == iter
    	(gtk_tree_store_prepend): remove stamp checks
    	(gtk_tree_store_insert_before): ditto
    	(gtk_tree_store_append): ditto
    	(gtk_tree_store_get_path): ditto
    	(gtk_tree_store_get_value): ditto
    	(gtk_tree_store_iter_has_child): ditto
    	(gtk_tree_store_iter_n_children): ditto
    	(gtk_tree_store_iter_nth_child): ditto
    	(gtk_tree_store_insert_after): ditto
    	(gtk_tree_store_is_ancestor): ditto
    	(gtk_tree_store_iter_depth): ditto
    	(gtk_tree_store_insert_before): assert that sibling's parent is
    	the same as the passed-in parent
    	(gtk_tree_store_insert_after): assert that sibling's parent is
    	the same as the passed-in parent
    
    
    	* gtk/gtktreemodel.c (gtk_tree_model_get_first): new convenience
    	function to get the first iterator in a model
    
    	* gtk/gtktreestore.c (gtk_tree_store_get_root_iter): remove,
    	conventionally the "root" in this sense is just NULL afaict.
    
    	* gtk/gtkliststore.c (gtk_list_store_insert_before): handle case
    	where sibling == iter
    	(gtk_list_store_insert_after): handle case where sibling == iter
    
    	* tests/testtreeview.c (run_automated_tests): fairly lame basic
    	automated tests for ListStore, TreeStore
    
            * gtk/gtkliststore.c (gtk_list_store_remove): update tail pointer
    	(gtk_list_store_insert): update tail pointer, and fix it to work
    	(gtk_list_store_insert_before): update tail pointer, and fix it to work
    	(gtk_list_store_append): use tail to be faster
    	(gtk_list_store_prepend): fix it, update tail pointer
    	(gtk_list_store_insert_after): fix it, update tail pointer
    
    	* gtk/gtkliststore.h (struct _GtkListStore): add tail pointer for
    	the list
    740ee8ef
Name
Last commit
Last update
contrib Loading commit data...
debian Loading commit data...
demos Loading commit data...
docs Loading commit data...
examples Loading commit data...
gdk Loading commit data...
gdk-pixbuf Loading commit data...
gtk Loading commit data...
m4macros Loading commit data...
modules Loading commit data...
po Loading commit data...
tests Loading commit data...
.cvsignore Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
ChangeLog Loading commit data...
ChangeLog.pre-1-0 Loading commit data...
ChangeLog.pre-1-2 Loading commit data...
ChangeLog.pre-2-0 Loading commit data...
ChangeLog.pre-2-10 Loading commit data...
ChangeLog.pre-2-2 Loading commit data...
ChangeLog.pre-2-4 Loading commit data...
ChangeLog.pre-2-6 Loading commit data...
ChangeLog.pre-2-8 Loading commit data...
HACKING Loading commit data...
INSTALL Loading commit data...
INSTALL.in Loading commit data...
Makefile.am Loading commit data...
NEWS Loading commit data...
NEWS.pre-1-0 Loading commit data...
README Loading commit data...
README.cvs-commits Loading commit data...
README.in Loading commit data...
README.nanox Loading commit data...
README.win32 Loading commit data...
TODO Loading commit data...
TODO.xml Loading commit data...
acconfig.h Loading commit data...
acinclude.m4 Loading commit data...
autogen.sh Loading commit data...
config.guess Loading commit data...
config.h.win32 Loading commit data...
config.sub Loading commit data...
configure.in Loading commit data...
gdk-2.0.pc.in Loading commit data...
gdk-pixbuf-2.0.pc.in Loading commit data...
gtk+-2.0.pc.in Loading commit data...
gtk+.spec.in Loading commit data...
gtk-2.0.m4 Loading commit data...
gtk-config-2.0.in Loading commit data...
ltconfig Loading commit data...
ltmain.sh Loading commit data...
makecopyright Loading commit data...
sanity_check Loading commit data...