1. 29 Apr, 2002 1 commit
  2. 24 Apr, 2002 1 commit
  3. 20 Apr, 2002 1 commit
  4. 17 Apr, 2002 1 commit
  5. 01 Apr, 2002 1 commit
    • Kristian Rietveld's avatar
      add check for y > tree_view->priv->height (fixes #76974) · 30896669
      Kristian Rietveld authored
      Mon Apr  1 22:20:24 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtktreeview.c (gtk_tree_view_move_cursor_page_up_down): add
              check for y > tree_view->priv->height (fixes #76974)
      
      Mon Apr  1 22:19:39 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtktreemodelsort.c (gtk_tree_model_sort_sort_level): get
              the stamp changes right this time
      
      Mon Apr  1 22:13:24 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtktreemodel.c (gtk_tree_row_reference_free): only
              disconnect the ref callbacks when model == proxy (Thanks go to
              Manuel Clos Crespo for the remote debugging)
      30896669
  6. 30 Mar, 2002 3 commits
  7. 29 Mar, 2002 1 commit
    • Kristian Rietveld's avatar
      remove call to gtk_tree_model_sort_increment_stamp · 835094b1
      Kristian Rietveld authored
      Fri Mar 29 20:17:35 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
              remove call to gtk_tree_model_sort_increment_stamp
              (gtk_tree_model_sort_sort_level): always increment the stamp
      835094b1
  8. 16 Mar, 2002 1 commit
    • Kristian Rietveld's avatar
      just return when we have an input_only window (fix by Owen Taylor) · bd7678c7
      Kristian Rietveld authored
      Sat Mar 16 23:54:56 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gdk/x11/gdkwindow-x11.c (gdk_window_set_static_bit_gravity): just
              return when we have an input_only window (fix by Owen Taylor)
      
              * gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): add
              scroll_sync_timer
      
              * gtk/gtktreeview.c (install_scroll_sync_handler): new function,
              (scroll_sync_handler): ditto,
              (gtk_tree_view_unrealize): take scroll_sync_timer into account
              (gtk_tree_view_row_deleted): install scroll_sync_timer instead of
              calling top_row_to_dy/dy_to_top_row directly
              -- this greatly speeds up clearing the model (#73199)
      
              * gtk/gtktreemodelsort.c
              (gtk_tree_model_sort_convert_path_to_child_path): fix up this function,
              for some reason I really screwed it up (fixes #74663)
      bd7678c7
  9. 14 Mar, 2002 1 commit
  10. 07 Mar, 2002 1 commit
    • Darin Adler's avatar
      Update offsets before finding where to insert the new value. · 1845cc43
      Darin Adler authored
      	* gtk/gtktreemodelsort.c: (gtk_tree_model_sort_insert_value):
      	Update offsets before finding where to insert the new value.
      
      	* gtk/gtktreeview.c: (validate_visible_area): Make sure we redraw when
      	we scroll, instead of just updating the scroll position variables.
      1845cc43
  11. 03 Mar, 2002 1 commit
    • Tim Janik's avatar
      added compile time switch to put the tree views into a hpaned for owen to · f0b58ab8
      Tim Janik authored
      Sun Mar  3 06:39:19 2002  Tim Janik  <timj@gtk.org>
      
              * gtk/gtkfilesel.c: added compile time switch to put the tree views
              into a hpaned for owen to play with.
      
              * gtk/gtktreedatalist.c (_gtk_tree_data_list_header_free):
              * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_cell_data_func),
              (gtk_tree_view_column_finalize):
              * gtk/gtktreestore.c (gtk_tree_store_set_default_sort_func),
              (gtk_tree_store_set_sort_func), (gtk_tree_store_finalize):
              * gtk/gtktreeselection.c (gtk_tree_selection_finalize):
              * gtk/gtktreemodelsort.c (gtk_tree_model_sort_reset_default_sort_func),
              (gtk_tree_model_sort_set_default_sort_func),
              (gtk_tree_model_sort_set_sort_func):
              * gtk/gtkliststore.c (gtk_list_store_set_default_sort_func),
              (gtk_list_store_set_default_sort_func),
              (gtk_list_store_set_sort_func), (gtk_list_store_finalize):
              add reentrancy protection around destroy() function invocation.
      
              * gtk/gtktreeselection.c (gtk_tree_selection_set_select_function): fix
              destroy function invocation (which was missing).
      f0b58ab8
  12. 24 Feb, 2002 1 commit
    • Jonathan Blandford's avatar
      at Feb 23 23:00:48 2002 Jonathan Blandford <jrb@redhat.com> · a265926e
      Jonathan Blandford authored
      	* gtk/gtktreemodel.h: add () to function macros as per owen's
      	request.
      
      	* gtk/gtkfontsel.c: (gtk_font_selection_select_best_style),
      	(gtk_font_selection_show_available_sizes),
      	(gtk_font_selection_set_font_name):
      	* gtk/gtktreemodel.c: (gtk_tree_model_get_iter_first),
      	(gtk_tree_model_foreach):
      	* gtk/gtktreemodelsort.c: (gtk_tree_model_sort_sort_level),
      	(gtk_tree_model_sort_build_level):
      	* gtk/gtktreeselection.c: (gtk_tree_selection_selected_foreach):
      	* gtk/gtktreeview.c: (validate_visible_area),
      	(gtk_tree_view_focus_to_cursor), (gtk_tree_view_set_model),
      	(gtk_tree_view_map_expanded_rows), (gtk_tree_view_search_move),
      	(gtk_tree_view_search_init):
      	* tests/testtreeview.c: (run_automated_tests): change iter_root
      	to iter_first
      a265926e
  13. 12 Feb, 2002 2 commits
    • Kristian Rietveld's avatar
      emit row_deleted before we start unreffing the nodes ourselves · 67051d64
      Kristian Rietveld authored
      Tue Feb 12 14:27:41 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted): emit
              row_deleted before we start unreffing the nodes ourselves
              (gtk_tree_model_sort_increment_stamp): always increment the stamp,
              and not only if the stamp equals 0 (pointed out by Darin Adler)
      
              * gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): we want
              to continue the while loop and not the nested for loop.
      67051d64
    • Darin Adler's avatar
      Consider reordering the row even when there's no sort column, if there's a · c823b8f6
      Darin Adler authored
              * gtk/gtktreemodelsort.c: (gtk_tree_model_sort_row_changed):
              Consider reordering the row even when there's no sort column, if
              there's a default sort function.
              (gtk_tree_model_sort_rows_reordered): Use symbolic constants.
              (gtk_tree_model_sort_level_find_insert): Add code to handle the
              case where there is no sort column, but a default sort function.
              (gtk_tree_model_sort_insert_value): Add code to handle the case
              where there is no sort column an no default sort function.
              (gtk_tree_model_sort_set_model): Use symbolic constant.
              (gtk_tree_model_sort_reset_default_sort_func): Use symbolic constant.
      c823b8f6
  14. 09 Feb, 2002 2 commits
  15. 08 Feb, 2002 1 commit
  16. 06 Feb, 2002 1 commit
  17. 22 Jan, 2002 1 commit
    • Kristian Rietveld's avatar
      add some more stamp checks (pointed out by Anders Carlsson) · f0c42465
      Kristian Rietveld authored
      Mon Jan 21 01:21:54 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtktreestore.c: add some more stamp checks (pointed out
              by Anders Carlsson)
      
              * gtk/gtktreemodelsort.c (gtk_tree_model_sort_insert_value): don't
              assume _row_changed will insert sort (because _row_changed doesn't
              need to follow this signal), so apply insert sort here
              (gtk_tree_model_sort_level_find_insert): header doesn't need to be
              set here, so use a return instead of g_return_val_if_fail.
      f0c42465
  18. 15 Jan, 2002 1 commit
  19. 13 Jan, 2002 1 commit
    • Kristian Rietveld's avatar
      various cleanups, (get_child_iter_from_elt): removed, · 86f07fb5
      Kristian Rietveld authored
      Sun Jan 13 01:15:45 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtktreemodelsort.c: various cleanups,
              (get_child_iter_from_elt): removed,
              (gtk_tree_model_sort_elt_get_path): rewritten to be a lot cleaner
              and especially faster,
              (gtk_tree_model_convert_iter_to_child_iter): use
              gtk_tree_model_sort_elt_get_path
      86f07fb5
  20. 10 Jan, 2002 1 commit
  21. 27 Dec, 2001 1 commit
    • Kristian Rietveld's avatar
      fix a few places where I was confused between modelsort iters and other · 2282ef41
      Kristian Rietveld authored
      Thu Dec 27 16:37:04 2001  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_deleted),
              (gtk_tree_model_sort_sort_level),
              (gtk_tree_model_sort_insert_value): fix a few places where
              I was confused between modelsort iters and other iters. This was
              really going to happen someday ;)
      2282ef41
  22. 26 Dec, 2001 1 commit
    • Kristian Rietveld's avatar
      ensure we are unprelighted before reordering · 51ba1729
      Kristian Rietveld authored
      Wed Dec 26 23:41:41 2001  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtktreeview.c (gtk_tree_view_rows_reordered): ensure
              we are unprelighted before reordering
      
              * gtk/gtktreemodel.c (gtk_tree_row_ref_reordered_callback): we
              need to break out of the for loop, not return
      
              * gtk/gtktreemodelsort.c: more fixage and cleanups. It seems to
              be pretty stable now, though it still needs some more code
              cleanups.
      51ba1729
  23. 14 Nov, 2001 1 commit
    • Jonathan Blandford's avatar
      new "model" construct property for language bindings. · 43d46397
      Jonathan Blandford authored
      Tue Nov 13 21:00:59 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): new
      	"model" construct property for language bindings.
      
      	* gtk/gtktreestore.c (gtk_tree_store_set_column_types): New
      	function to let you set the column types of a GtkTreeStore for
      	language bindings.
      
      	* gtk/gtkliststore.c (gtk_list_store_set_column_types): ditto.
      43d46397
  24. 03 Nov, 2001 1 commit
  25. 01 Nov, 2001 1 commit
    • Jonathan Blandford's avatar
      it's amazing how well things work sometimes, even when they're completely · 2704ea2b
      Jonathan Blandford authored
      Thu Nov  1 15:45:04 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
      	it's amazing how well things work sometimes, even when they're
      	completely wrong.
      
      	* gtk/gtktreeview.c (gtk_tree_view_real_collapse_row): Fix bug
      	where you could try to collapse a node w/o it having children.
      
      	(gtk_tree_view_class_init): remove Shift L<->R as they already
      	existed for expand/collapse.
      2704ea2b
  26. 31 Oct, 2001 1 commit
  27. 29 Oct, 2001 2 commits
  28. 26 Oct, 2001 1 commit
  29. 25 Oct, 2001 1 commit
    • Jonathan Blandford's avatar
      Add support for invalid nodes. (_gtk_rbnode_rotate_right): Ditto. · 889d64b4
      Jonathan Blandford authored
      Thu Oct 25 16:27:29 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtkrbtree.c (_gtk_rbnode_rotate_left): Add support for
      	invalid nodes.
      	 (_gtk_rbnode_rotate_right): Ditto.
      	 (_gtk_rbtree_node_mark_invalid): New function.
      	 (_gtk_rbtree_node_mark_valid): New function.
      
      	* gtk/gtktreemodelsort.c (gtk_tree_model_sort_class_init): We're a
      	GObject, not a GtkObject.
      	(gtk_tree_model_sort_row_has_child_toggled): Rewrote to be more
      	correct.
      	(gtk_tree_model_sort_row_deleted): ditto.
      	(gtk_tree_model_sort_{un,}ref_node): Fix.
      
      	* gtk/gtktreeview.c: Protean incremental reflow support (commented
      	out)
      
      	* gtk/gtktreeview.h (GtkTreeViewSearchEqualFunc): change char *key
      	to const char *key.
      
      	* gtk/gtktreemodel.c (gtk_tree_row_reference_unref_path_helper):
      	Important 1 line fix to fix a lot of refcounting woes.
      889d64b4
  30. 24 Oct, 2001 2 commits
    • Kristian Rietveld's avatar
      treat s_path as a child path · c9e39b2a
      Kristian Rietveld authored
      Wed Oct 24 22:54:07 2001  Kristian Rietveld  <kristian@planet.nl>
      
              * gtk/gtktreemodelsort.c (gtk_tree_model_sort_row_inserted): treat
              s_path as a child path
      c9e39b2a
    • Kristian Rietveld's avatar
      more changes in an attempt to get it right. It's not yet ready for general · beaba6a4
      Kristian Rietveld authored
      Wed Oct 24 20:29:47 2001  Kristian Rietveld  <kristian@planet.nl>
      
              * gtk/gtktreemodelsort.c: more changes in an attempt to get
              it right. It's not yet ready for general consumption.
      
              * tests/treestoretest.c: add a button and entry for the new
              iter_change function
              (iter_change): new function, to test
              the row_changed signal implementation of the GtkTreeModelSort
      
              * tests/testtreesort.c: cleanups, changes to test more features
              of the GtkTreeModelSort at once
      beaba6a4
  31. 22 Oct, 2001 1 commit
    • Jonathan Blandford's avatar
      Remove handle_box from App demo. · dc754528
      Jonathan Blandford authored
      
      Mon Oct 22 14:08:26 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* demos/gtk-demo/appwindow.c: Remove handle_box from App demo.
      
      	* gtk/gtktreeview.c (size_allocate): Move to a different drawing
      	system.  Instead of having a window the size of the tree, we have
      	a window the size of widget->allocation, and simply draw with the
      	offset.
      	(coords_are_over_arrow): ditto.  Move to window coordinates.
      	(do_prelight): ditto
      	(do_unprelight): ditto
      
      	* gtk/gtktreemodelsort.c (gtk_tree_model_sort_rows_reordered):
      	Minor fix from Kristian Rietveld to fix unsorted case.
      dc754528
  32. 19 Oct, 2001 1 commit
  33. 03 Oct, 2001 1 commit
    • Kristian Rietveld's avatar
      preparation for surgery ditto · b5ad1977
      Kristian Rietveld authored
      Wed Oct  3 20:29:29 2001  Kristian Rietveld  <kristian@planet.nl>
      
              * gtk/gtktreemodelsort.[ch]: preparation for surgery
              * tests/testtreesort.c: ditto
      b5ad1977
  34. 20 Sep, 2001 1 commit
    • Owen Taylor's avatar
      Small warning cleanups. · 483fca5e
      Owen Taylor authored
      Thu Sep 20 11:03:51 2001  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkobject.c gtk/gtklist.c gtk/gtkplug.c gtk/gtksocket.c
              gtk/gtktreemodelsort.c gtk/gtktreeview.c: Small warning cleanups.
      
              * gtk/gtkradiomenuitem.c (gtk_radio_menu_item_get_group): Change
              the function definition so we don't accidentally rely on
              the compat #define from gtk_radio_menu_item_group.
              (#60782, Jeff Franks)
      483fca5e