1. 22 May, 2001 1 commit
  2. 23 Mar, 2001 2 commits
    • Jonathan Blandford's avatar
      Forgot to namespace this. · b572436d
      Jonathan Blandford authored
      Fri Mar 23 16:13:43 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreeviewcolumn.h (GtkCellDataFunc): Forgot to namespace
      	this.
      
      	* gtk/gtktreestore.c (gtk_tree_store_set_value): change from
      	set_cell to set_value
      
      	* gtk/gtkliststore.c (gtk_list_store_set_value): change from
      	set_cell to set_value
      b572436d
    • Jonathan Blandford's avatar
      fix braino. New interface to add cleanup sortable support. · 21fd434c
      Jonathan Blandford authored
      Thu Mar 22 19:27:34 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_render):
      	fix braino.
      	* gtk/gtktreesortable.[ch]: New interface to add cleanup sortable
      	support.
      
      	* gtk/gtktreeview.c: Addition of initial sortable support.
      
      	* gtk/gtktreestore.c: Addition of initial sortable support.
      
      	* gtk/gtkliststore.c: Addition of initial sortable support.
      
      	* gtk/gtkmarshal.list: yet another marshaller.
      
      	* gtk/gtktreedatallist.[ch]: shared code between the store models
      	for handling sorting headers.
      21fd434c
  3. 05 Mar, 2001 1 commit
    • Jonathan Blandford's avatar
      renamed "child_toggled" to "has_child_toggled". · 3b2ffda1
      Jonathan Blandford authored
      Mon Mar  5 14:38:54 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreemodel.c: renamed "child_toggled" to
      	"has_child_toggled".
      
      	* gtk/gtktreeview.c: Handle removing columns better.  Updated to
      	handle new signal name.
      
      	* gtk/gtktreestore.c: Updated to handle new signal name.
      	* gtk/gtklisttore.c: Updated to handle new signal name.
      	* gtk/gtktreemodelsort.c: Updated to handle new signal name.
      3b2ffda1
  4. 21 Feb, 2001 1 commit
    • Jonathan Blandford's avatar
      removed signals. Moved to inherit from GObject instead of GtkObject. · ef084e87
      Jonathan Blandford authored
      Wed Feb 21 15:41:34 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreestore.c: removed signals.  Moved to inherit from
      	GObject instead of GtkObject.
      
      	* gtk/gtkliststore.c: ditto.
      
      	* gtk/gtktreemodelsort.c: ditto.
      
      	* gtk/gtktreemodel.c (gtk_tree_model_base_init): moved signals to
      	GtkTreeModelIface, instead of in each model.
      ef084e87
  5. 17 Feb, 2001 1 commit
    • Jonathan Blandford's avatar
      removed gtk_*_store_get, and moved to GtkTreeModel. · b10825d5
      Jonathan Blandford authored
      Fri Feb 16 17:49:59 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreestore.[hc], gtk/gtkliststore.[ch]: removed
      	gtk_*_store_get, and moved to GtkTreeModel.
      
      	* gtk/gtktreemodel.h (gtk_tree_model_set{v,}): Added
      
      	* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_finalize): added.
      
      	* gtk/Makefile.am: remove gtktreemodelmapping.[ch]
      
      	* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_func): let you
      	set the func.
      
      	* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data):
      	freeze/thaw notify between setting all the properties for a cell.
      
      	* gtk/gtk.h: remove gtktreemodelsimple.h, and gtktreemodelmapping.h
      b10825d5
  6. 31 Jan, 2001 1 commit
    • Havoc Pennington's avatar
      fix bug in here where prev pointer was set to the wrong thing · 5cd29932
      Havoc Pennington authored
      2001-01-30  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtkliststore.c (gtk_list_store_insert_before): fix bug in
      	here where prev pointer was set to the wrong thing
      
      	* gtk/gtktreemodel.c (gtk_tree_path_is_ancestor): new function
      	(gtk_tree_path_is_descendant): new function
      
      	* gtk/gtkliststore.c (gtk_list_store_iter_n_children): return
      	cached length
      	(gtk_list_store_get_iter): don't modify iter if we can't get the
      	path.
      
      	* gtk/gtkliststore.h (struct _GtkListStore): cache the length
      
      	* gtk/gtktreednd.h: add virtual function row_drop_possible() to
      	GtkTreeDragDest
      
      	* gtk/gtktreestore.c (copy_node_data): fix varargs type error that
      	was causing segfault
      
      	* gtk/gtktreedatalist.c (_gtk_tree_data_list_node_copy): set next
      	pointer to NULL
      
      	* gtk/gtktreestore.c (gtk_tree_store_append): fix memleak
      
      	* gtk/gtkliststore.c (gtk_list_store_iter_next): don't modify iter
      	on returning FALSE
      	(gtk_list_store_iter_children): ditto
      	(gtk_list_store_iter_nth_child): ditto
      	(gtk_list_store_iter_nth_child): ditto
      	(gtk_list_store_iter_parent): ditto
      
      	* gtk/gtktreestore.c (gtk_tree_store_get_path): g_return_if_fail
      	on iter->user_data != NULL instead of silently accepting it.
      	(gtk_tree_store_iter_next): ditto. Also, don't modify iter unless
      	we are returning TRUE.
      	(gtk_tree_store_iter_children): ditto
      	(gtk_tree_store_iter_nth_child): ditto
      	(gtk_tree_store_iter_parent): ditto
      	(gtk_tree_store_insert): remove handling of parent->user_data ==
      	NULL, replace with parent == NULL
      
      	* gtk/gtktreemodel.c (inserted_callback): put some fixes in here,
      	and a comment explaining things
      
      	* gtk/gtktreestore.c: add GtkTreeDragSource/GtkTreeDragDest
      	interface support to GtkTreeStore.
      
      	* gtk/gtktreemodel.c (gtk_tree_path_prev): didn't properly return
      	FALSE if no prev, fix
      
      	* gtk/gtktreeview.c (set_source_row): use a row reference
      	(set_dest_row): use a row reference
      5cd29932
  7. 10 Jan, 2001 1 commit
    • 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
  8. 08 Jan, 2001 1 commit
    • Havoc Pennington's avatar
      hack on this some · 157cfa27
      Havoc Pennington authored
      2001-01-08  Havoc Pennington  <hp@redhat.com>
      
      	* tests/testtreeview.c: hack on this some
      
      	* gtk/gtktreestore.c (gtk_tree_store_setv): rename
      	gtk_tree_store_set_valist, v is for arrays, valist for varargs
      	list
      	(gtk_tree_store_getv): rename gtk_tree_store_get_valist
      
      	* gtk/gtkliststore.h: Add varargs set() and get() convenience
      	functions
      157cfa27
  9. 27 Oct, 2000 1 commit
  10. 26 Oct, 2000 1 commit
    • Jonathan Blandford's avatar
      Got rid of GtkTreeNode, and changed it to GtkTreeIter. Added iterators · ef7b510f
      Jonathan Blandford authored
      Wed Oct 25 20:40:25 2000  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreemodel.h: Got rid of GtkTreeNode, and changed it to
      	GtkTreeIter.  Added iterators everywhere.
      
      	* gtk/gtktreeviewcolumn.c: Changed to use the iterators.
      
      	* gtk/gtktreeviewselection.c: Changed to use the iterators.
      
      	* gtk/gtktreestore.c: Changed to use the iterators.
      
      	* gtk/gtkliststore.c: Commented out the code.  Will convert to
      	iterators tomorrow.
      
      	* gtk/gtkmodelsimple.c: Commented out the code.  Will convert to
      	iterators tomorrow.
      
      	* gtk/treestoretest.c: Changed to use iterators.
      
      	* demos/testgtk/main.c: Moved to use the new iterator system.
      ef7b510f
  11. 16 Oct, 2000 1 commit
  12. 15 Oct, 2000 1 commit
    • 5's avatar
      Fix GtkTreeNode *node ->GtkTreeNode node issue. · e6b9f291
      5 authored
      2000-10-15    <jrb@redhat.com>
      
      	* gtk/gtktreeview.c, gtk/gtktreeview.h, gtk/gtktreestore.h,
      	gtk/gtktreestore.c, gtk/gtkliststore.h, gtk/gtkliststore.c,
      	gtk/gtkmodelsimple.c, gtk/gtkmodelsimple.h, gtk/gtktreedatalist.c,
      	gtk/gtktreemodel.h, gtk/gtktreeselection.c,
      	gtk/gtktreeselection.h: Fix GtkTreeNode *node ->GtkTreeNode node
      	issue.
      e6b9f291
  13. 05 Oct, 2000 1 commit