1. 26 Nov, 2002 1 commit
    • Kristian Rietveld's avatar
      add a gtk_list_store_sort_iter_changed line for some special case ... · a09f497c
      Kristian Rietveld authored
      Tue Nov 26 22:26:04 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtk{tree,list}store.c (gtk_{tree,list}_store_real_set_value):
              add a gtk_list_store_sort_iter_changed line for some special
              case ... (#96647 (issue 1), testcases from Soeren Sandmann and
              Daniel Elstner).
      
      Tue Nov 26 22:18:06 2002  Kristian Rietveld  <kris@gtk.org>
      
              Inconsistent state for toggle renderers, requested by Paolo Bacchilega
              in #88130.
      
              * gtk/gtktreeprivate.h: move GtkCellRendererInfo here.
      
              * gtk/gtkcellrenderer.c: moved GtkCellRendererInfo away,
              fix some indentation issues.
      
              * gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_class_init),
              (gtk_cell_renderer_toggle_set_property),
              (gtk_cell_renderer_toggle_get_property),
              (gtk_cell_renderer_toggle_render): add an inconsistent property.
      
              * gtk/gtkstyle.c (gtk_default_draw_check),
              (gtk_default_draw_option): support drawing inconsistent
              options/checks for cells.
      
      Tue Nov 26 22:14:14 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_editing_done),
              (gtk_cell_renderer_text_start_editing): add a focus_out_id to avoid
              calling _editing_done twice (which has nasty side-effects). (#96647,
              (issue 2) testcase from Soeren Sandmann).
      
      Tue Nov 26 22:12:21 2002  Kristian Rietveld  <kris@gtk.org>
      
              #82739, patch from Padraig O'Briain.
      
              * gtk/gtktreeviewcolumn.[ch]: add
              gtk_tree_view_column_cell_get_position()
      
      Tue Nov 26 22:06:29 2002  Kristian Rietveld  <kris@gtk.org>
      
              Yes, this chunk breaks ABI compatibility. Owen knows about it and
              agreed with it. It doesn't break ABI that bad though, things will
              still work. Please keep it silent :P.
      
              This patch fixes some keynav issues reported by Narayana Pattipati
              in #81633. (Also mentioned in #92037 (Sun tracking bug)).
      
              * gtk/gtkmarshalers.list: add two silly marshalers
      
              * gtk/gtktreeview.[ch] (gtk_tree_view_real_select_all),
              (gtk_tree_view_real_unselect_all),
              (gtk_tree_view_real_select_cursor_row),
              (gtk_tree_view_real_toggle_cursor_row),
              (gtk_tree_view_real_expand_collapse_cursor_row),
              (gtk_tree_view_real_start_interactive_search): change the return
              type from void to gboolean, update prototypes, functions, signals and
              entries in GtkTreeViewClass,
              (gtk_tree_view_class_init): add select_cursor_row binding for
              enter key,
              (gtk_tree_view_key_press): only navigate the header button if the
              header is also visible ...
      
      Tue Nov 26 22:05:48 2002  Kristian Rietveld  <kris@gtk.org>
      
              API bit of #75745, reported by Richard Hult.
      
              * gtk/gtkcellrenderer.h (GtkCellRendererState): add
              GTK_CELL_RENDERER_FOCUSED, rest of this bug fix will follow later.
      a09f497c
  2. 26 Jul, 2002 1 commit
    • Kristian Rietveld's avatar
      API additions: _move, _reorder and _swap for stores, path constructor. · 6c3caf2a
      Kristian Rietveld authored
      Fri Jul 26 22:53:37 2002  Kristian Rietveld  <kris@gtk.org>
      
              API additions: _move, _reorder and _swap for stores, path
              constructor.
      
              * gtk/gtktreemodel.[ch] (gtk_tree_path_new_from_indices): new function.
      
              * gtk/gtkliststore.[ch]: added gtk_list_store_reorder_func (private),
              gtk_list_store_reorder, gtk_list_store_swap, gtk_list_store_move.
      
              * gtk/gtktreestore.[ch]: added gtk_tree_store_reorder_func (private),
              gtk_tree_store_reorder, gtk_tree_store_swap, gtk_tree_store_move.
      
      Fri Jul 26 22:32:57 2002  Kristian Rietveld  <kris@gtk.org>
      
              Merge from stable:
      
              * gtk/gtktreestore.c (node_free): return FALSE,
              (gtk_tree_store_finalize): use g_node_traverse instead of
              g_node_children_foreach, so the whole tree will be freed (#88854,
              patch from Emmanuel Briot).
      
      Fri Jul 26 22:32:24 2002  Kristian Rietveld  <kris@gtk.org>
      
              Merge from stable:
      
              * gtk/gtktreeview.c (gtk_tree_view_button_press): fix some memleaks,
              (#84426, patch from Matthias Clasen).
      
      Fri Jul 26 22:31:25 2002  Kristian Rietveld  <kris@gtk.org>
      
              Merge from stable:
      
              * gtk/gtktreeview.c (gtk_tree_view_unref_tree_helper): _iter_children
              check shouldn't be in g_return_return_val_if_fail (pointed out by
              Josh Green, #88997),
              (gtk_tree_view_set_model): call _gtk_tree_view_column_unset_model
              for each column when we unset the model (part of #82484),
              (gtk_tree_view_get_cell_area): return if we ran out of tree or
              if we got an invalid path (#82376).
      
              * gtk/gtktreeprivate.h: add _gtk_tree_view_column_unset_model.
      
              * gtk/gtktreeviewcolumn.c: implement _gtk_tree_view_column_unset_model
              which disconnects the sort_column_changed_signal (part of #82484).
      
              * gtk/gtkliststore.c (gtk_list_store_insert): append row if the
              given postion is off the end of the tree (#85813).
      
              * gtk/gtkentry.c (gtk_cell_editable_key_press_event): let's use
              2-space indent, commit changes if up/down keys has been pressed,
              this overrides the focus key foo so the user won't be surprised
              (#84665).
      6c3caf2a
  3. 05 May, 2002 1 commit
    • Kristian Rietveld's avatar
      The "big treeview focus patch". Fixes several issues and adds some · acce60b7
      Kristian Rietveld authored
      Sun May  5 16:42:32 2002  Kristian Rietveld  <kris@gtk.org>
      
              The "big treeview focus patch". Fixes several issues and adds some
              goodies. Related bugs: #73676, #73734, #78660.
      
              * gtk/gtktreeview.h: add gtk_tree_view_set_cursor_on_cell
      
              * gtk/gtktreeview.c (gtk_tree_view_button_press): focus on a cell
              if applicable,
              (gtk_tree_view_bin_expose): set_cell_data before iterating columns,
              add support for row-spanning focus rectangles,
              (gtk_tree_view_has_special_cell): new function,
              (gtk_tree_view_move_cursor_left_right): add support for multiple
              focusable cells in one column,
              (gtk_tree_view_set_cursor): call _set_cursor_on_cell now,
              (gtk_tree_view_set_cursor_on_cell): copy of _set_cursor, extended
              with focus_cell parameter,
              (gtk_tree_view_search_iter): removed unused column variable,
              (gtk_tree_view_start_editing): add neighbor size code to allow
              for multiple editable cells in one column.
      
              * gtk/gtktreeviewcolumn.c (_GtkTreeViewColumnCellInfo): add
              in_editing_mode field,
              (gtk_tree_view_column_get_edited_cell): new function, removed
              _get_editable_cell,
              (_gtk_tree_view_column_get_cell_at_pos): new function,
              (gtk_tree_view_column_pack_end): s/g_new/g_new0/ ...,
              (gtk_tree_view_column_cell_process_action): loads of changes to get
              it right and to allow for multiple special cells, etc,
              (gtk_tree_view_column_cell_first): new function,
              (gtk_tree_view_column_cell_last): ditto,
              (gtk_tree_view_column_cell_next): ditto,
              (gtk_tree_view_column_cell_prev): ditto,
              (gtk_tree_view_column_cell_focus): add left and right parameters,
              allow for multiple special cells,
              (gtk_tree_view_column_cell_is_visible): add assertion,
              (gtk_tree_view_column_focus_cell): new function,
              (gtk_tree_view_column_stop_editing): unset in_editing_mode flag,
              (_gtk_tree_view_column_get_neighbor_sizes): iterate through cells
              correctly
      
              * gtk/gtktreeviewcolumn.h: add gtk_tree_view_column_focus_cell
      
              * gtk/gtktreeprivate.h: s/_get_editable_cell/_get_edited_cell/, add
              _gtk_tree_view_column_get_cell_at_pos, add new parameters to
              _gtk_tree_view_column_cell_focus.
      
              * tests/testtreeedit.c: add some cells in order to test new code.
      acce60b7
  4. 25 Apr, 2002 1 commit
    • Kristian Rietveld's avatar
      Fixes #74206. · b4ddb130
      Kristian Rietveld authored
      Thu Apr 25 23:49:01 2002  Kristian Rietveld  <kris@gtk.org>
      
              Fixes #74206.
      
              * gtk/gtktreeprivate.h: add _gtk_tree_view_column_count_special_cells
      
              * gtk/gtktreeview.c (_gtk_tree_view_column_has_editable_cell),
              (_gtk_tree_view_column_get_editable_cell): remove a space which made
              the code look ugly
              (_gtk_tree_view_column_count_special_cells): new function,
              (gtk_tree_view_column_cell_process_action): if there's only one
              activatable cell, the whole column will activate that renderer.
      b4ddb130
  5. 19 Apr, 2002 2 commits
    • Kristian Rietveld's avatar
      add _gtk_tree_view_column_autosize · 3e0a1a51
      Kristian Rietveld authored
      Fri Apr 19 23:38:16 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtktreeprivate.h: add _gtk_tree_view_column_autosize
      
              * gtk/gtktreeview.c: privately export _gtk_tree_view_column_autosize,
              and add a small note about that function,
              (gtk_tree_view_button_press): check for double click and
              "not having an autosize" column before autosizing the column,
      
              * gtk/gtktreeviewcolumn.c (gtk_tree_view_column_set_min_width):
              call _gtk_tree_view_column_autosize to update autosized column width
              (gtk_tree_view_column_set_max_width): ditto
      3e0a1a51
    • Kristian Rietveld's avatar
      rename last_single_clicked{,_2} to last_button_press{,_2}, as the latter · d3a12949
      Kristian Rietveld authored
      Fri Apr 19 16:30:09 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtktreeprivate.h, gtk/gtktreeview.c: rename
              last_single_clicked{,_2} to last_button_press{,_2}, as the latter
              is a more sane name.
      
              * gtk/gtktreeview.c (gtk_tree_view_button_press): use ->priv->anchor
              instead of ->priv->cursor, check for the anchor at another place, as
              you can go in edit mode without having an anchor.
      d3a12949
  6. 14 Apr, 2002 1 commit
    • Kristian Rietveld's avatar
      add _gtk_tree_view_column_get_editable_cell and · 54db0fc9
      Kristian Rietveld authored
      Sun Apr 14 16:56:59 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtktreeprivate.h: add _gtk_tree_view_column_get_editable_cell and
              _gtk_tree_view_column_get_neighbor_sizes
      
              * gtk/gtktreeviewcolumn.c (struct _GtkTreeViewColumnCellInfo): add
              real_width field,
              (_gtk_tree_view_column_get_editable_cell): implement,
              (gtk_tree_view_column_cell_process_action): fill info->real_width
              (_gtk_tree_view_column_get_neighbor_sizes): implement
      
              * gtk/gtktreeview.c (gtk_tree_view_button_press): make the "editable
              widget" show up with the same size as the actual cell, so it doesnt
              cover the complete column if there are any other cells in that column.
      54db0fc9
  7. 09 Apr, 2002 1 commit
    • Kristian Rietveld's avatar
      Fixes #78110 · 64e33eb6
      Kristian Rietveld authored
      Tue Apr  9 21:41:24 2002  Kristian Rietveld  <kris@gtk.org>
      
              Fixes #78110
      
              * gtk/gtktreeselection.c (_gtk_tree_selection_internal_select_node):
              add override_browse_mode argument and implement,
              (gtk_tree_selection_unselect_path): always unselect the path,
              (toplevel): update uses of _gtk_tree_selection_internal_select_node
      
              * gtk/gtktreeview.c: update uses of
              _gtk_tree_selection_internal_select_node
      
              * gtk/gtktreeprivate.h (_gtk_tree_selection_internal_select_node):
              update prototype
      
      Tue Apr  9 21:39:44 2002  Kristian Rietveld  <kris@gtk.org>
      
              Fixes #77862
      
              * gtk/gtktreeprivate.h: add _gtk_tree_view_column_has_editable_cell
      
              * gtk/gtktreeviewcolumn.c (_gtk_tree_view_column_has_editable_cell):
              new function
      
              * gtk/gtktreeview.c (gtk_tree_view_button_press): send cell event
              on first click when cell isn't editable
      
      Tue Apr  9 21:37:31 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtktreedatalist.c (_gtk_tree_data_list_check_type): add some
              types which were missing and useful to use (fixes #77870)
      64e33eb6
  8. 20 Mar, 2002 1 commit
    • Kristian Rietveld's avatar
      add _gtk_rbtree_set_fixed_height() · 92febe27
      Kristian Rietveld authored
      Wed Mar 20 22:59:23 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gtk/gtkrbtree.[ch]: add _gtk_rbtree_set_fixed_height()
      
              * gtk/gtktreeprivate.h: add fixed_height_check field
      
              * gtk/gtktreeview.c (gtk_tree_view_init): initialize
              scroll_sync_timer and fixed_height_check
              (do_validate_rows): add fixed_height_check. If all validated rows
              in the first cycle have the same height, then we set that height for
              the entire tree. This is some sort of 'fake' optimization, but helps
              a lot for the common case. We keep validating the entire tree in
              the background though.
              (gtk_tree_view_set_model): reset fixed_height_check
      92febe27
  9. 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
  10. 23 Feb, 2002 1 commit
    • Jonathan Blandford's avatar
      delay scrolling until we try to draw the window. · b2539ba4
      Jonathan Blandford authored
      Wed Feb 20 16:44:05 2002  Jonathan Blandford  <jrb@redhat.com>
      
      	* gtk/gtktreeview.c (gtk_tree_view_scroll_to_cell): delay
      	scrolling until we try to draw the window.
      
      	* gtk/gtktreeview.c (validate_visible_area): Implement
      	scroll_to_cell.
      b2539ba4
  11. 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
  12. 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
  13. 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
  14. 21 Jan, 2002 1 commit
  15. 10 Jan, 2002 1 commit
  16. 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
  17. 05 Dec, 2001 1 commit
  18. 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
  19. 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
  20. 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
  21. 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
  22. 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
  23. 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
  24. 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
  25. 22 Aug, 2001 1 commit
  26. 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
  27. 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
  28. 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
  29. 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
  30. 12 Jun, 2001 1 commit
  31. 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
  32. 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
  33. 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
  34. 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
  35. 30 Apr, 2001 1 commit
  36. 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
  37. 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