1. 22 Feb, 2002 1 commit
    • Kristian Rietveld's avatar
      add last_single_clicked and last_single_clicked_2 rowrefs and add · 45d646eb
      Kristian Rietveld authored
      Fri Feb 22 22:39:59 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtktreeprivate.h: add last_single_clicked and
              last_single_clicked_2 rowrefs and add disable_popdown to the
              bitfield
      
              * gtk/gtktreeview.c (gtk_tree_view_destroy): add destroy stuff
              for two new rowrefs
              (gtk_tree_view_button_press): add some 'advanced' button handling,
              so double click is being handled right (double click madness was
              discovered by Anders Carlsson)
      
              * gtk/gtktreeview.c (gtk_tree_view_set_property): add missing
              break
              (gtk_tree_view_class_init): default value of headers_visible
              should be TRUE (both pointed out by Damon Chaplin, #71986)
      
              * gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search):
              connect to populate_popup,
              (gtk_tree_view_search_disable_popdown): new function,
              (gtk_tree_view_real_search_enable_popdown): ditto,
              (gtk_tree_view_search_enable_popdown): ditto,
              (gtk_tree_view_search_dialog_destroy): check for
              gtk-tree-view-popdown-disabled (#71868)
      
              * gtk/gtktreeview.c (gtk_tree_view_set_reorderable): move
              ->priv->reorderable assignment to bottom. (#72122)
      45d646eb
  2. 19 Feb, 2002 1 commit
    • Kristian Rietveld's avatar
      change gtk_tree_view_column_cell_render, gtk_tree_view_column_cell_focus, · 601302c7
      Kristian Rietveld authored
      Tue Feb 19 17:36:31 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gtktreeprivate.h, gtktreeviewcolumn.[ch], gtktreeview.c: change
              gtk_tree_view_column_cell_render,
              gtk_tree_view_column_cell_focus,
              gtk_tree_view_column_cell_draw_focus and
              gtk_tree_view_column_cell_set_dirty to be private functions.
      
              * gtktreeviewcolumn.[ch]: add install_handler argument to
              _cell_set_dirty to control if _mark_rows_col_dirty (which calls
              install_presize_handler) gets called, set widths correctly so
              autosizing works (#71870)
      
              * gtktreeview.c (gtk_tree_view_column_autosize): new function,
              (gtk_tree_view_button_press): make double click on column
              separator resize the row (#71870)
              (gtk_tree_view_get_dest_row_at_pos): change DnD threshold to 33%
              (#71869, suggestion by Anders Carlsson)
      601302c7
  3. 27 Jan, 2002 1 commit
    • Kristian Rietveld's avatar
      Fix for bug #69586 · ad219f2e
      Kristian Rietveld authored
      Sun Jan 27 22:13:02  Kristian Rietveld  <kris@gtk.org>
      
              Fix for bug #69586
      
              * gtk/gtktreeprivate.h: get rid of tab_offset, introduce
              expander_size
      
              * gtk/gtktreeview.c: get rid of ->priv->tab_offset, introduce
              expander_size caching (from style), fix CELL_HEIGHT macro,
              use MAX ("RBNODE_HEIGHT", expander_size) (differs per case) for
              row height calculation, added style_set callback
      ad219f2e
  4. 21 Jan, 2002 1 commit
  5. 10 Jan, 2002 1 commit
  6. 02 Jan, 2002 1 commit
    • Anders Carlsson's avatar
      Rename gtk_tree_view_queue_draw_node to _gtk_tree_view_queue_draw_node. · 88edb0e5
      Anders Carlsson authored
      2002-01-03  Anders Carlsson  <andersca@gnu.org>
      
      	* gtk/gtktreeview.c: Rename gtk_tree_view_queue_draw_node to
      	_gtk_tree_view_queue_draw_node.
      	(gtk_tree_view_row_has_child_toggled): Only redraw one node.
      
      	* gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func):
      	sort_column_id can be 0.
      
      	* gtk/gtktreeselection.c (gtk_tree_selection_real_select_node):
      	Only redraw one the node being selected.
      
      	* gtk/gtktreeprivate.h: Add _gtk_tree_view_queue_draw_node.
      88edb0e5
  7. 05 Dec, 2001 1 commit
  8. 04 Dec, 2001 1 commit
    • Jonathan Blandford's avatar
      Minor fix. · d1a858c8
      Jonathan Blandford authored
      Tue Dec  4 18:38:35 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* demos/gtk-demo/main.c: (create_tree): Minor fix.
      
      	* docs/tree-column-sizing.txt: Update
      
      	* gtk/gtkrbtree.[ch]: Massive work to support validation.
      
      	* gtk/gtktreemodel.c: Doc fixes.
      
      	* gtk/gtktreeview.c: Incremental reflow added.
      	* gtk/gtktreeviewcolumn.c: ditto
      	* gtk/gtktreeviewcolumn.h: ditto
      d1a858c8
  9. 03 Dec, 2001 1 commit
    • Kristian Rietveld's avatar
      if we use pointers, we should free the previous pointer first (if it · 5a2ebedc
      Kristian Rietveld authored
      Mon Dec  3 21:15:59 2001  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtktreedatalist.c (_gtk_tree_data_list_value_to_node): if
              we use pointers, we should free the previous pointer first (if
              it exists), before we set a new pointer. (#64726)
      
              * gtk/gtktreeprivate.h: get rid of cursor_drag
      
              * gtk/gtktreeview.c (gtk_tree_view_unrealize): remove check
              for cursor_drag
              (gtk_tree_view_bin_expose): don't directly return in the while
              loop
              (gtk_tree_view_class_init): indentend expanders by default
              (gtk_tree_view_header_focus): only give the button focus
              if it's clickable, visible and the column is reorderable
              (#65539)
      
              * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
              create and free cursor
      5a2ebedc
  10. 21 Nov, 2001 1 commit
    • Owen Taylor's avatar
      Remove trailing commas in enum declarations. · 9b6c7327
      Owen Taylor authored
      Wed Nov 21 17:01:25 2001  Owen Taylor  <otaylor@redhat.com>
      	* gtk/gtkcellrenderer.h gtk/gtktreemodel.h
      	gtk/gtktreeprivate.h gtk/gtktreesortable.h: Remove
      	trailing commas in enum declarations.
      9b6c7327
  11. 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
  12. 25 Sep, 2001 1 commit
    • Jonathan Blandford's avatar
      Make a GtkCellEditable (get_widget_window_size): Change to let it honor · 92841cb9
      Jonathan Blandford authored
      Tue Sep 25 12:34:42 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtkentry.c: Make a GtkCellEditable
      	(get_widget_window_size): Change to let it honor size_allocate
      	when a CellEditable.
      
      	* gtk/gtktreeview.c: M-x clean-line-ends.  Lots of focus and
      	editable changes.
      	(gtk_tree_view_set_cursor): Now you can set the cursor
      	horizontally, as well as start editing.
      
      	* gtk/gtkstyle.c (gtk_default_draw_check): changing toggle drawing
      	code to look more like the other check buttons.
      
      	* gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_get_size):
      	Change the way we calculate cell size.
      
      	* gtk/gtkmarshal.list (VOID:STRING,STRING): new marshaller.
      
      	* demos/gtk-demo/sizegroup.c: Add mnemonics.
      
      	* gtk/gtkcellrenderer.c (gtk_cell_renderer_get_size): Fix docs.
      	Fix logic.
      
      	* gtk/gtkcellrenderertext.c: Change to be editable.
      
      	* gtk/gtkcellrenderertoggle.c: Change to be activatable.
      
      	* test/testtreesort.c: Fix misspelling
      
      	* test/testreecolumns.c: Add mnemonics.
      
      	* test/testreeedit.c: New test program.
      92841cb9
  13. 18 Sep, 2001 2 commits
    • Jonathan Blandford's avatar
      centralize all the editing code · fa6e6928
      Jonathan Blandford authored
      Tue Sep 18 18:46:54 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreeview.c (gtk_tree_view_start_editing): centralize all
      	the editing code
      
      	* gtk/gtkcelleditable.c: Got rid of stop_editing, as there was no
      	reason to call it beyond emiting the two signals.
      
      	* gtk/gtkentry.c (gtk_entry_class_init): add "has_frame" property
      	to GtkEntry.
      fa6e6928
    • Jonathan Blandford's avatar
      Add put for use with editable widgets. This function is private, and · f724f836
      Jonathan Blandford authored
      Tue Sep 18 12:12:43 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreeview.c (gtk_tree_view_put): Add put for use with
      	editable widgets.  This function is private, and should only be
      	used by GtkTreeView.
      f724f836
  14. 24 Aug, 2001 1 commit
    • Jonathan Blandford's avatar
      Add "use_align" to give people the option to just make a cell visible. · 747b7253
      Jonathan Blandford authored
      Fri Aug 24 16:03:45 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): Add
      	"use_align" to give people the option to just make a cell visible.
      
      	* gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): fix bug where
      	we were scrolling past the end of the tree.
      
      	* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_pack_start):
      	rename gtk_tree_view_column_pack_start_cell_renderer to
      	gtk_tree_view_column_pack_start.  Same for pack_end, and clear.
      747b7253
  15. 22 Aug, 2001 1 commit
  16. 17 Aug, 2001 1 commit
    • Jonathan Blandford's avatar
      Add heavily modified patch from Kristian Rietveld to handle interactive · ac1e4ef3
      Jonathan Blandford authored
      
      Fri Aug 17 19:30:14 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreeprivate.h:
      	* gtk/gtktreeview.c: (gtk_tree_view_class_init),
      	(gtk_tree_view_init), (gtk_tree_view_set_property),
      	(gtk_tree_view_get_property), (gtk_tree_view_destroy),
      	(gtk_tree_view_key_press), (gtk_tree_view_leave_notify),
      	(gtk_tree_view_focus_out), (gtk_tree_view_set_model),
      	(gtk_tree_view_set_destroy_count_func),
      	(gtk_tree_view_set_enable_search),
      	(gtk_tree_view_get_enable_search),
      	(gtk_tree_view_get_search_column),
      	(gtk_tree_view_set_search_column),
      	(gtk_tree_view_get_search_equal_func),
      	(gtk_tree_view_set_search_equal_func),
      	(gtk_tree_view_search_dialog_destroy),
      	(gtk_tree_view_search_position_func),
      	(gtk_tree_view_interactive_search),
      	(gtk_tree_view_search_delete_event),
      	(gtk_tree_view_search_button_press_event),
      	(gtk_tree_view_search_key_press_event),
      	(gtk_tree_view_search_move), (gtk_tree_view_search_equal_func),
      	(gtk_tree_view_search_iter), (gtk_tree_view_search_init):
      	* gtk/gtktreeview.h:
      	Add heavily modified patch from Kristian Rietveld to handle
      	interactive searching.
      ac1e4ef3
  17. 22 Jul, 2001 1 commit
    • Anders Carlsson's avatar
      Add support for animating expanders. · f4ca3290
      Anders Carlsson authored
      2001-07-22  Anders Carlsson  <andersca@gnome.org>
      
      	* gtk/gtktreeview.c (gtk_tree_view_class_init): Replace the
      	expander_height and expander_width properties with a single
      	property, expander_size.
      	(gtk_tree_view_init): Set the tab_offset to expander_size
      	plus some padding.
      	(gtk_tree_view_unrealize): Remove the expand/collapse
      	timeout if it exists.
      	(coords_are_over_arrow): Fix a small bug.
      	(gtk_tree_view_motion_draw_column_motion_arrow): Use
      	expander_size.
      	(gtk_tree_view_draw_focus): Use "treeview" instead of
      	"add-mode" as detail when drawing the focus.
      	(gtk_tree_view_bin_expose): Use "treeview-drop-indicator"
      	instead of "add-mode" as detail when drawing the focus.
      	(gtk_tree_view_deleted): If we have a node currently being
      	expanded or collapsed, remove the timeout and set the node
      	to NULL.
      	(gtk_tree_view_queue_draw_arrow): New function that just
      	redraws the arrow of a node.
      	(gtk_tree_view_draw_arrow): Use expander_size instead of
      	expander_width/expander_height, also pass a different
      	expander_style to gtk_paint_expander depending on the
      	state of the node being drawn.
      	(expand_collapse_timeout): New function for expanding
      	or collapsing a node depending on the previous state.
      	(gtk_tree_view_real_expand_row): Add timeout and set
      	correct state for node being expanded.
      	(gtk_tree_view_real_collapse_row): Add timeout and set
      	correct state for node being collapsed.
      
      	* gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): Add
      	information about the node currently being expanded or
      	collapsed, and also a timeout id.
      
      	* gtk/gtkstyle.h (struct _GtkStyleClass): Replace is_open
      	with expander_style for draw_expander.
      
      	* gtk/gtkstyle.c (gtk_draw_expander): Replace is_open with
      	expander_style.
      	(create_expander_affine): New function for creating an
      	expander affine.
      	(apply_affine_on_point): New function for applying an
      	affine to a point.
      	(gtk_default_draw_expander): Modified to take expander_style
      	instead of is_open, and to draw the rectangle rotated differently
      	depending on the expander style.
      	(gtk_paint_expander): Replace is_open with expander_style.
      
      	* gtk/gtkrbtree.h: Add expander states to GtkRBNodeColor.
      
      	* gtk/gtkenums.h: Add expander style enum.
      f4ca3290
  18. 29 Jun, 2001 1 commit
    • Jonathan Blandford's avatar
      Patch Thomas Broyer from <tbroyer@ltgt.net>. Expander arrows are now · b6f80973
      Jonathan Blandford authored
      Fri Jun  8 18:52:10 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreeview.[hc]: Patch Thomas Broyer from
      	<tbroyer@ltgt.net>. Expander arrows are now attached to a specific
      	column and follow it when draged, rather than a location in the
      	view. "expander_column" property and drawing functions changed
      	accordingly.  Fixes bug #55942.
      
      	(gtk_tree_view_{set,get}_expander_column): Now works with a
      	GtkTreeViewColumn* instead of int.
      b6f80973
  19. 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
  20. 12 Jun, 2001 1 commit
  21. 08 Jun, 2001 1 commit
    • Jonathan Blandford's avatar
      new function to clean up cursor handling. · f92ccfc0
      Jonathan Blandford authored
      Fri Jun  8 18:41:30 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreeview.c (gtk_tree_view_set_cursor): new function to
      	clean up cursor handling.
      
      	Pretty much nailed single selection motion, and multi-selection
      	focus minus the fact that the anchor isn't quite right.
      f92ccfc0
  22. 25 May, 2001 1 commit
    • Hans Breuer's avatar
      made fil mode GDK_STIPPLED actually work -> check boxes and radio buttons · b5db5d51
      Hans Breuer authored
      2001-05-25  Hans Breuer  <hans@breuer.org>
      
      	* gdk/win32/gdkgc-win32.c : made fil mode GDK_STIPPLED actually
      	work -> check boxes and radio buttons are drawn now, even on win9x.
      	Improved line settings a bit, still no clue how to get really dotted
      	lines on win9x, on NT it's PS_ALTERNATE.
      
      	* gdk/win32/gdkwindow-win32.c : use SafeAdjustWindowRect for
      	GDK_HINT_MIN_SIZE as well
      
      	* gdk/win32/makefile.am : added gdkkeys-win32.c to EXTRA_DIST
      
      	* gtk/gtk.def : updated
      
      	* gtk/gtktreeprivate.h : change column_drop_func to be a function
      	pointer not a function pointer pointer
      
      	* tests/testdnd.c : include <stdlib.h> for putenv prototype
      
      	* tests/testsocket.c : made it compile on win32 again
      
      	* tests/makefile.msc : one more test-app uses prop-editor.obj
      b5db5d51
  23. 16 May, 2001 1 commit
    • Jonathan Blandford's avatar
      You can now set all sorts of properties in any order you wan, whether or · 2970a2fe
      Jonathan Blandford authored
      Tue May 15 20:13:24 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreeviewcolumn.c: You can now set all sorts of properties
      	in any order you wan, whether or not the column is added to the
      	tree, or the tree is realized.  Yay!
      
      	* gtk/gtktreeviewcolumn.c
      	(gtk_tree_view_column_setup_sort_column_id_callback): handle
      	sorting columns a lot saner
      
      	* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_reorderable):
      	new function to actually set wether or not a column is
      	reorderable.
      
      	* gtk/gtktreeview.c (gtk_tree_view_unrealize): Only destroy things
      	if we have 'em.
      
      	* gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_set_tree_view):
      	Fix nasty bug where we were showing the button just before
      	realizing it.  As a result, the parent window was
      	tree_view->window instead of tree_view->priv->header_window.
      
      	* gtk/gtktreeview.c (gtk_tree_view_set_reorderable): new property
      	to let you easily reorder a list or tree.
      2970a2fe
  24. 09 May, 2001 2 commits
    • Jonathan Blandford's avatar
      New function to let user control where columns are dragged. · 6e705640
      Jonathan Blandford authored
      Wed May  9 15:27:22 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreeview.c (gtk_tree_view_set_column_drag_function): New
      	function to let user control where columns are dragged.
      
      	* gtk/gtktreeview.c (gtk_tree_view_key_press): Cancel drags if
      	Escape is pressed.
      6e705640
    • Jonathan Blandford's avatar
      New "columns_changed" signal. · 3340826a
      Jonathan Blandford authored
      Wed May  9 09:08:44 2001  Jonathan Blandford  <jrb@webwynk.net>
      
      	* gtk/gtktreeview.c (gtk_tree_view_class_init): New
      	"columns_changed" signal.
      	(gtk_tree_view_motion_draw_column_motion_arrow): Change column
      	motion code to draw arrows to the side if indicator is outside the
      	widget.
      	(gtk_tree_view_map_expanded_rows): Implement.
      3340826a
  25. 30 Apr, 2001 1 commit
  26. 26 Apr, 2001 1 commit
    • Jonathan Blandford's avatar
      clean up column dragging code. Revealed some (potential) GdkWindow bugs. · 06817999
      Jonathan Blandford authored
      Thu Apr 26 19:11:46 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreeview.c (gtk_tree_view_motion): clean up column
      	dragging code.  Revealed some (potential) GdkWindow bugs.
      
      	* gdk/x11/gdkwindow-x11.c (gdk_window_reparent): add
      	_gdk_window_init_position to the end of reparent to fix the case
      	of reparenting when new_x != old_x and new_y != old_y.
      06817999
  27. 23 Apr, 2001 1 commit
    • Jonathan Blandford's avatar
      add missing '}' that got munched by #endif. · 60051ff6
      Jonathan Blandford authored
      Mon Apr 23 18:57:03 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtksocket.c (gtk_socket_filter_func): add missing '}' that
      	got munched by #endif.
      
      	* gtk/Makefile.am (gtk_plug_c_sources): add missing '\'
      
      	* gtk/gtktreeview.c: Refactored code to clean up a number of
      	events.
      
      	* gtk/gtktreemodel.c (gtk_tree_path_compare): Switched return
      	values to make consistent with other functions.  Spotted by Jeff
      	Franks <jcf@tpg.com.au>.
      
      	* gtk/gtktreeview.h (struct _GtkTreeViewClass): Fixes to signal
      	declaration spotted by Jeff Franks <jcf@tpg.com.au>.
      60051ff6
  28. 12 Apr, 2001 1 commit
    • Jonathan Blandford's avatar
      fix a fixme. · 31210813
      Jonathan Blandford authored
      Sun Apr  8 05:36:06 2001  Jonathan Blandford  <jrb@webwynk.net>
      
              * gtk/gtktextview.c (gtk_text_view_class_init): fix a fixme.
      
              * gtk/gtkcellrendertoggle.c: change GTK_TYPE_POINTER to
              GTK_TYPE_STRING.
      
              * gtk/gtktreeview.c: New functions to allow initial column
              dragging work.
      
              * gtk/gtktreeviewcolumn.c: Initial column dragging support.
      
              * tests/testtreefocus.c: give dave some love.
      
              * tests/testtreesort.c: Modify test to check really long samples.
      31210813
  29. 23 Mar, 2001 1 commit
    • 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
  30. 08 Mar, 2001 1 commit
  31. 02 Mar, 2001 1 commit
    • Jonathan Blandford's avatar
      Move handling of buttons fully in gtktreeviewcolumn. This code is less · 193bed18
      Jonathan Blandford authored
      Thu Mar  1 19:50:56 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_realize_button):
      	Move handling of buttons fully in gtktreeviewcolumn.  This code is
      	less interrelated then it was, but it still requires the
      	GtkTreeView to map it.
      
      	* test/testtreecolumn.c: Now I can add a column to one view,
      	remove it, add it to the another view, remove it, then re-add it
      	to the first.  Nifty.
      193bed18
  32. 28 Feb, 2001 2 commits
    • Jonathan Blandford's avatar
      Sanitize GtkRowReference. · f7382221
      Jonathan Blandford authored
      Wed Feb 28 16:36:46 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreemodel.c (gtk_tree_row_reference_*): Sanitize
      	GtkRowReference.
      f7382221
    • Jonathan Blandford's avatar
      Proxy out to _gtk_tree_row_reference_deleted. (inserted_callback): Proxy · c82dc58f
      Jonathan Blandford authored
      Tue Feb 27 19:32:53 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreemodel.c (deleted_callback): Proxy out to
      	_gtk_tree_row_reference_deleted.
      	(inserted_callback): Proxy out to
      	_gtk_tree_row_reference_inserted.
      	(_gtk_tree_row_reference_new_from_view): Somewhat yukky hack to
      	get around signal emission ordering problem.
      
      	* gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
      	fix to work with SINGLE
      	(_gtk_tree_selection_internal_select_node): Major sanitization on
      	selections.  SINGLE now seems to work.
      
      	* tests/Makefile.am: add testtreecolumn.c:
      
      	* tests/testtreecolumn.c: New test.  Mostly points out selection
      	bugs currently, but will test columns later.
      
      	* gtk/gtkrbtree.c (_gtk_rbtree_remove_node): Fix really nasty
      	selection bug.  I hate touching this code -- it's scary.
      c82dc58f
  33. 23 Feb, 2001 1 commit
    • Jonathan Blandford's avatar
      Only draw the column that is exposed. · 1efdc103
      Jonathan Blandford authored
      Fri Feb 23 17:50:13 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreeview.c (gtk_tree_view_bin_expose): Only draw the
      	column that is exposed.
      
      	(_gtk_tree_view_update_size): Changed name from set_size, and
      	changed function to do more work, and not force people calling it
      	to figure out the size.  Simplifies a lot of code elsewhere.
      1efdc103
  34. 08 Feb, 2001 1 commit
    • Havoc Pennington's avatar
      remove validation idle · 4a3c8a36
      Havoc Pennington authored
      2001-02-08  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktextview.c (gtk_text_view_destroy_layout): remove
      	validation idle
      
      	* demos/gtk-demo/main.c (create_tree): adjust to changes in text
      	cell renderer
      
      	* demos/pixbuf-demo.c (timeout): remove deprecated
      	gtk_widget_draw
      
      	* demos/testpixbuf-save.c (main): remove deprecated
      	gtk_drawing_area_size
      
      	* gtk/gtktreeview.c (gtk_tree_view_size_allocate): allocate
      	buttons even if the model isn't setup. gtk_tree_view_check_dirty()
      	at the start of the allocation.
      	(gtk_tree_view_check_dirty): handle column->button == NULL, handle
      	unsetup or NULL model.
      
      	* gtk/gtkstyle.c (gtk_default_draw_flat_box): drawing for the
      	even/odd/sorted cells in the tree view.
      
      	* gtk/gtktreeselection.c (gtk_tree_selection_real_unselect_all):
      	bugfixes
      
      	* gtk/gtktreeview.c: assorted bugfixy stuff. Draw the row
      	backgrounds with draw_flat_box using different detail for even/odd
      	rows.
      
      	* gtk/gtkrbtree.c, gtkrbtree.h: Keep track of the parity of each
      	row, so we can draw the alternating colors thing
      
      	* gtk/gtktexttag.c (gtk_text_tag_set_property): if we change a
      	property from a synonym property, notify for the synonym.
      	Also, nuke the background_gdk_set and foreground_gdk_set synonyms
      	(gtk_text_tag_get_property): Always return the font, even if
      	all its fields aren't set
      
      	* gtk/gtkcellrenderertext.h (struct _GtkCellRendererText): don't
      	store the attr list; it leaves us with no way to change attributes
      	in _render according to the render flags, and no way to implement
      	get_property. Instead store all the specific text attributes.
      	Separate whether an attribute is enabled from its value. Sync all
      	properties with GtkTextTag, make them all consistent, etc.
      
      	* gtk/gtkcellrenderer.h: Add a flag GTK_CELL_RENDERER_SORTED so
      	renderers can highlight the sort row/column
      
      	* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_get_property): use
      	accessor functions to get values; this has the side effect of
      	showing up which accessor functions were missing. Added those.
      
      	* gtk/gtktreeviewcolumn.h: Replace set_justification with
      	set_alignment, to be consistent with GtkLabel, GtkMisc
      
      	* gtk/gtktreeviewcolumn.c: Added code to display sort indicator
      	arrow.
      
      	* gtk/Makefile.am (gtk_public_h_sources): add gtktreesortable.h
      
      	* gtk/gtktreesortable.h: updates in here
      4a3c8a36
  35. 27 Jan, 2001 1 commit
    • Havoc Pennington's avatar
      add GtkTreeRowReference which holds a handle to a specific row (particular · d8d019a1
      Havoc Pennington authored
      2001-01-26  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtktreemodel.c, gtk/gtktreemodel.h: add GtkTreeRowReference
      	which holds a handle to a specific row (particular set of values
      	in the model, i.e. pointer-identity row).
      
      	* gtk/gtktreeview.c, gtk/gtktreeprivate.h, gtk/gtktreeselection.c:
      	use GtkTreeRowReference for anchor, cursor, and drag_dest_row.
      	Still need to use it for the src/dest row saved on the drag context.
      d8d019a1
  36. 21 Jan, 2001 1 commit
    • Jonathan Blandford's avatar
      Make fail when not realized. (gtk_tree_view_scroll_to_cell): Make work · 5f25ae38
      Jonathan Blandford authored
      Sun Jan 21 09:58:00 2001  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): Make fail
      	when not realized.
      	(gtk_tree_view_scroll_to_cell): Make work when not realized.
      	(gtk_tree_view_realize): add scroll_to support
      	(gtk_tree_view_finalize): add a finalize method.  Populate.
      	(gtk_tree_view_insert_column): ref and sink the column.
      	(gtk_tree_view_append_column): ref and sink the column.
      	(gtk_tree_view_queue_draw_node): New function to handle redrawing
      	individual nodes.  Should make the code much more efficient, if
      	actually used.
      
      gtk_tree_view_queue_draw_node isn't actually used yet, but it should start
      making Owen less grumpy.
      5f25ae38
  37. 19 Jan, 2001 1 commit
    • Havoc Pennington's avatar
      sync to tree changes · e248e4e7
      Havoc Pennington authored
      2001-01-19  Havoc Pennington  <hp@redhat.com>
      
      	* demos/gtk-demo/main.c (button_press_event_cb): sync to tree changes
      
      	* gtk/gtkrbtree.c (_gtk_rbtree_node_find_offset): fix this
      	function
      
      	* gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_widget):
      	implement
      
      	* gtk/gtktreeview.c (gtk_tree_view_move_to): rename
      	scroll_to_cell, matches TextView scroll functions better
      	(gtk_tree_view_tree_to_widget_coords): new function
      	(gtk_tree_view_widget_to_tree_coords): new function
      	(gtk_tree_view_get_visible_rect): new function
      	(gtk_tree_view_get_path_at_pos): accept negative coordinates
      	(gtk_tree_view_draw_node_focus_rect): new function moved from
      	draw_focus, also, use width of bin_window as width of the focus
      	rect
      	(gtk_tree_view_expand_row): fix bug where it didn't recognize
      	already-expanded rows
      	(gtk_tree_view_get_cell_rect): new function
      	(gtk_tree_view_get_path_at_pos): return the click position
      	relative to the passed-in cell
      	(gtk_tree_view_set_expander_column): new function
      
      	* configure.in: remove gtk-config-2.0 chmod
      
      	* gtk/gtktextview.c (gtk_text_view_drag_motion): small cleanups,
      	and properly handle drags with targets we don't understand
      	(gtk_text_view_drag_end): don't stop scrolling, the source isn't
      	scrolling anyway
      	(gtk_text_view_drag_drop): stop scrolling here though, and set the
      	mark invisible
      
      	* gtk/gtkdnd.c (gtk_drag_dest_find_target): export as a public
      	function
      	(gtk_drag_dest_get_target_list): new function
      	(gtk_drag_dest_set_target_list): new function
      
      	* gtk/gtktreeview.c: Add a bunch of drag-and-drop implementation
      
      	* gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): add fields
      	related to drag-and-drop
      e248e4e7