1. 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
  2. 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
  3. 14 Mar, 2002 1 commit
  4. 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
  5. 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
  6. 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
  7. 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
  8. 09 Feb, 2002 2 commits
  9. 08 Feb, 2002 1 commit
  10. 06 Feb, 2002 1 commit
  11. 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
  12. 15 Jan, 2002 1 commit
  13. 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
  14. 10 Jan, 2002 1 commit
  15. 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
  16. 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
  17. 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
  18. 03 Nov, 2001 1 commit
  19. 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
  20. 31 Oct, 2001 1 commit
  21. 29 Oct, 2001 2 commits
  22. 26 Oct, 2001 1 commit
  23. 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
  24. 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
  25. 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
  26. 19 Oct, 2001 1 commit
  27. 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
  28. 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
  29. 12 Sep, 2001 1 commit
    • Jonathan Blandford's avatar
      Rename interface signals to make them more clear. Also, change · fc8304b1
      Jonathan Blandford authored
      Wed Sep 12 19:01:05 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreemodel.h (struct _GtkTreeModelIface): Rename interface
      	signals to make them more clear.  Also, change ::range_changed to
      	::row_changed.
      	* gtk/gtktreemodel.c: Adjust to interface change
      	* gtk/gtktreemodel.h: ditto
      	* gtk/gtktreemodelsort.c: ditto
      	* gtk/gtktreestore.c: ditto
      	* gtk/gtkliststore.c: ditto
      	* gtk/gtktreeview.c: ditto
      	* tests/testtreecolumns.c: ditto
      	* gtk/gtkmarshal.list: Actually remove a marshaller!
      fc8304b1
  30. 02 Sep, 2001 1 commit
    • Kristian Rietveld's avatar
      much changes in an attempt to make it working. It mostly works now, · 109cda6b
      Kristian Rietveld authored
      Sun Sep  2 23:27:16 2001  Kristian Rietveld  <kristian@planet.nl>
      
              * gtk/gtktreemodelsort.[ch]: much changes in an attempt to make
              it working. It mostly works now, although there're still a few issues
              to be worked out.
      
              * tests/testtreesort.c (main): changes to have a better test
              application for the GtkTreeModelSort.
      109cda6b
  31. 23 Aug, 2001 1 commit
    • Kristian Rietveld's avatar
      use GtkSortType instead of GtkTreeSortOrder. (#59173). · 7cfc56db
      Kristian Rietveld authored
      Thu Aug 23 20:01:41 2001  Kristian Rietveld  <kristian@planet.nl>
      
              * gtk/gtktreemodelsort.[ch], gtk/gtktreesortable.[ch],
              gtk/gtktreestore.[ch], gtk/gtktreeviewcolumn.[ch],
              gtk/gtkliststore.[ch]: use GtkSortType instead of GtkTreeSortOrder.
              (#59173).
      7cfc56db
  32. 18 Jul, 2001 2 commits
    • Owen Taylor's avatar
      Patch from Matthias Clasen to remove remove all instances of · 4e2b60ac
      Owen Taylor authored
      Wed Jul 18 19:28:46 2001  Owen Taylor  <otaylor@redhat.com>
      
      	* gtk/*.c: Patch from Matthias Clasen to remove remove
      	all instances of g_return_if_fail (foo != NULL); that are
      	immediately before a g_return_if_fail (GTK_IS_FOO (foo));
      	since the second check catches the NULL anyways.
      4e2b60ac
    • Darin Adler's avatar
      Ignore the sgml directory made by gtkdoc. Use gtk_window_set_resizable · 03496763
      Darin Adler authored
      	* .cvsignore: Ignore the sgml directory made by gtkdoc.
      	* demos/pixbuf-demo.c: (main): Use gtk_window_set_resizable
      	instead of the deprecated gtk_window_set_policy.
      	* demos/testpixbuf-scale.c: Add missing <stdlib.h> include.
      	* gdk/gdkkeys.c: (gdk_keymap_class_init): Remove empty finalize
      	function to get rid of warning and some code too.
      	* gdk/x11/gdkfont-x11.c: (gdk_font_charset_for_locale): Add
      	missing const.
      	* gdk/x11/gdkmain-x11.c: (_gdk_windowing_init_check): Remove
      	unused local.
      	* gdk/x11/gdkpango-x11.c: (gdk_pango_context_get): Add missing
      	const.
      	* gdk/x11/gdkselection-x11.c: (gdk_text_property_to_utf8_list),
      	(gdk_utf8_to_compound_text): Add missing const.
      	* gtk/gtkimage.c: (gtk_image_expose): Remove unused local.
      	* gtk/gtkmenubar.c: (gtk_menu_bar_hierarchy_changed): Add missing
      	cast and get rid of an unnecessary one.
      	* gtk/gtksettings.c: (gtk_settings_notify): Remove unused local.
      	* gtk/gtkstatusbar.c: (gtk_statusbar_size_allocate): Remove unused
      	local.
      	* gtk/gtktreemodelsort.c: (gtk_tree_model_sort_build_level):
      	Remove unused local.
      	* modules/input/gtkimcontextxim.c: (gtk_im_context_xim_new): Add
      	missing const.
      	* tests/testsocket.c: (add_child): Add cast so the printf format
      	doesn't make us implicitly depend on what integer type
      	gtk_socket_get_id returns.
      	* tests/testtextbuffer.c: Add missing const.
      	* tests/testtreefocus.c: (main): Remove unused local.
      	* tests/treestoretest.c: (iter_remove): Remove unused local.
      	(uppercase_value): Remove unused function.
      	(make_window): Add statement to quiet the compiler's uninitialized
      	variable warning.
      03496763
  33. 29 Jun, 2001 1 commit
    • Havoc Pennington's avatar
      fixes to compile with G_DISABLE_COMPAT · 49c1e6dc
      Havoc Pennington authored
      2001-06-29  Havoc Pennington  <hp@redhat.com>
      
             * Throughout: fixes to compile with G_DISABLE_COMPAT
      	(s/g_signal_connectc/g_signal_connect/,
      	s/g_signal_newc/g_signal_new/,
      	s/g_signal_disconnect_by_func/g_signal_handlers_disconnect_by_func/)
      49c1e6dc
  34. 26 Jun, 2001 1 commit
    • Jonathan Blandford's avatar
      fix stupid missing statement · 94f7d7e6
      Jonathan Blandford authored
      Tue Jun 26 12:59:28 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): fix
      	stupid missing statement
      
      	* gtk/gtktreeview.c (gtk_tree_view_set_destroy_count_func): New
      	private function for ATK.  It notifies you of how many _visible_
      	children are deleted when a node is deleted.  Should be used by
      	atk only.
      94f7d7e6
  35. 18 Jun, 2001 1 commit