1. 18 Jun, 2008 1 commit
    • Michael Natterer's avatar
      deprecate GtkDestroyNotify. · fe8a946e
      Michael Natterer authored
      2008-06-18  Michael Natterer  <mitch@imendio.com>
      
      	* gtk/gtktypeutils.h: deprecate GtkDestroyNotify.
      
      	* gtk/gtkactiongroup.[ch]
      	* gtk/gtkcombobox.[ch]
      	* gtk/gtkcontainer.[ch]
      	* gtk/gtkliststore.[ch]
      	* gtk/gtkmain.[ch]
      	* gtk/gtkmenu.c
      	* gtk/gtkstock.[ch]
      	* gtk/gtktreedatalist.[ch]
      	* gtk/gtktreemodelfilter.[ch]
      	* gtk/gtktreemodelsort.[ch]
      	* gtk/gtktreeprivate.h
      	* gtk/gtktreeselection.[ch]
      	* gtk/gtktreesortable.[ch]
      	* gtk/gtktreestore.[ch]
      	* gtk/gtktreeview.[ch]
      	* gtk/gtktreeviewcolumn.[ch]: s/GtkDestroyNotify/GDestroyNotify/g.
      
      
      svn path=/trunk/; revision=20448
      fe8a946e
  2. 25 Jan, 2008 1 commit
    • Michael Natterer's avatar
      gtk/gtkbutton.h gtk/gtkcellrenderer.h gtk/gtkimcontext.h gtk/gtkstyle.h · a362eecc
      Michael Natterer authored
      2008-01-25  Michael Natterer  <mitch@imendio.com>
      
      	* gtk/gtkbutton.h
      	* gtk/gtkcellrenderer.h
      	* gtk/gtkimcontext.h
      	* gtk/gtkstyle.h
      	* gtk/gtktoolbar.h
      	* gtk/gtktooltip.h
      	* gtk/gtktreeprivate.h
      	* gtk/gtktreeviewcolumn.h
      	* gtk/gtkwidget.h: add const to constant structs which are passed
      	into GTK+. Also add some forgotten const for const strings.
      
      	* gtk/gtkbutton.c
      	* gtk/gtkcellrenderer.c
      	* gtk/gtkimcontext.c
      	* gtk/gtkstyle.c
      	* gtk/gtktoolbar.c
      	* gtk/gtktooltip.c
      	* gtk/gtktreeview.c
      	* gtk/gtktreeviewcolumn.c
      	* gtk/gtkwidget.c: changed accordingly.
      
      
      svn path=/trunk/; revision=19399
      a362eecc
  3. 10 Jan, 2008 1 commit
    • Kristian Rietveld's avatar
      Fix #477175, reported by Juri Pakaste. · 24438052
      Kristian Rietveld authored
      2008-01-10  Kristian Rietveld  <kris@imendio.com>
      
      	Fix #477175, reported by Juri Pakaste.
      
      	* gtk/gtktreeprivate.h:
      	* gtk/gtktreeview.c (gtk_tree_view_top_row_to_dy): do not set
      	tree_view->priv->dy here directly, just calculate the new value
      	and set it on the adjustment,
      	(gtk_tree_view_adjustment_changed): add guards to not call
      	gtk_tree_view_dy_to_top_row() if we are currently in
      	gtk_tree_view_top_row_to_dy(),
      	(gtk_tree_view_put): fix coordinate annotation: these are bin_window
      	coordinates, not tree coordinates,
      	(gtk_tree_view_real_start_editing): add cast.
      
      	* gtk/tests/treeview-scrolling.c: add an assertion for checking the
      	position of the editable in the "create new row and start editing"
      	tests.
      
      
      svn path=/trunk/; revision=19331
      24438052
  4. 19 Jul, 2007 1 commit
    • Kristian Rietveld's avatar
      add more convenience API. · b1ec5f75
      Kristian Rietveld authored
      2007-07-19  Kristian Rietveld  <kris@imendio.com>
      
      	* gtk/gtk.symbols:
      	* gtk/gtktreeprivate.h:
      	* gtk/gtktreeview.[ch] (gtk_tree_view_get_tooltip_context),
      	(gtk_tree_view_[sg]et_tooltip_column): add more convenience API.
      
      	* tests/testtooltip.c (query_tooltip_tree_view_cb): use
      	gtk_tree_view_get_tooltip_context().
      
      	* demos/gtk-demo/demo.ui: add a tooltip column to the list store,
      	set tooltip-column on the tree view.
      
      
      svn path=/trunk/; revision=18496
      b1ec5f75
  5. 20 Mar, 2007 1 commit
    • Kristian Rietveld's avatar
      add _gtk_tree_view_column_get_focus_area(). · 3bd51183
      Kristian Rietveld authored
      2007-03-20  Kristian Rietveld  <kris@gtk.org>
      
      	* gtk/gtktreeviewcolumn.c:
      	* gtk/gtktreeprivate.h: add _gtk_tree_view_column_get_focus_area().
      
      	* gtk/gtktreeview.c (gtk_tree_view_clamp_column_visible): add
      	focus_to_cell parameter, rework to handle clamping columns which
      	are bigger than the available page size better,
      	(gtk_tree_view_key_press): remove code handling moving the focus
      	to other column headers,
      	(gtk_tree_view_header_focus): add clamp_column_visible parameter,
      	fix RTL support, don't wrap around when moving focus to other
      	column headers, call gtk_tree_view_clamp_column_visible() instead
      	of duplicating code,
      	(gtk_tree_view_focus): only clamp the column visible when we are
      	explicitly moving to another column header (fixes #399555, Charles
      	Kerr),
      	(gtk_tree_view_move_cursor_left_right): update call to
      	gtk_tree_view_clamp_column_visible().
      
      
      svn path=/trunk/; revision=17546
      3bd51183
  6. 16 Feb, 2007 1 commit
    • Kristian Rietveld's avatar
      add cursor_offset field. · c24c88fe
      Kristian Rietveld authored
      2007-02-16  Kristian Rietveld  <kris@gtk.org>
      
      	* gtk/gtktreeprivate.h: add cursor_offset field.
      
      	* gtk/gtktreeview.c (gtk_tree_view_init),
      	(gtk_tree_view_move_cursor_page_up_down): fix off by one error
      	in page up/down handling by memorizing the offset into the cursor
      	row.  (Fixes #399809, reported by Bruce Bowler).
      
      
      svn path=/trunk/; revision=17316
      c24c88fe
  7. 18 Jul, 2006 1 commit
    • Kristian Rietveld's avatar
      Another fix for #164884. · 61f4d77d
      Kristian Rietveld authored
      2006-07-18  Kristian Rietveld  <kris@imendio.com>
      
      	Another fix for #164884.
      
      	* gtk/gtktreeprivate.h: add in_grab field.
      
      	* gtk/gtktreeview.c (gtk_tree_view_button_press): only save press
      	to possibly begin a drag when there's no grab pending,
      	(gtk_tree_view_grab_notify): toggle in_grab field.
      61f4d77d
  8. 12 Jun, 2006 1 commit
    • Kristian Rietveld's avatar
      Introduce grid and tree lines in GtkTreeView. (#106406, Martyn Russell). · 7a6a6ebc
      Kristian Rietveld authored
      2006-06-12  Kristian Rietveld  <kris@imendio.com>
      
      	Introduce grid and tree lines in GtkTreeView. (#106406,
      	Martyn Russell).
      
      	* gtk/gtktreeprivate.h: add new fields to GtkTreePrivate.
      
      	* gtk/gtkenums.h: add GtkTreeViewGridLines.
      
      	* gtk/gtktreeview.[ch] (gtk_tree_view_set_grid_lines),
      	(gtk_tree_view_get_grid_lines),
      	(gtk_tree_view_set_enable_tree_lines),
      	(gtk_tree_view_get_enable_tree_lines): new API,
      	(gtk_tree_view_class_init): new properties,
      	(gtk_tree_view_init), (gtk_tree_view_{get,set}_property),
      	(gtk_tree_view_realize), (gtk_tree_view_draw_grid_lines),
      	(gtk_tree_view_bin_expose): implement.
      
      	* gtk/gtk.symbols: update.
      7a6a6ebc
  9. 02 Jun, 2006 1 commit
    • Kristian Rietveld's avatar
      Rubber banding for GtkTreeView, #80127. Uses same method as GtkIconView. · f6c583f7
      Kristian Rietveld authored
      2006-06-02  Kristian Rietveld  <kris@imendio.com>
      
      	Rubber banding for GtkTreeView, #80127.  Uses same method as
      	GtkIconView.
      
      	* gtk/gtktreeview.c (gtk_tree_view_class_init),
      	(gtk_tree_view_init), (gtk_tree_view_get_property),
      	(gtk_tree_view_set_property), (gtk_tree_view_set_rubber_banding),
      	(gtk_tree_view_get_rubber_banding): add property,
      	(gtk_tree_view_button_press): start rubber banding if enabled and
      	press is on a non-selected node,
      	(gtk_tree_view_button_release): stop rubber banding,
      	(gtk_tree_view_motion_bin_window), (scrool_row_timeout): enable/update
      	the rubber band,
      	(gtk_tree_view_bin_expose): draw rubber band if active,
      	(gtk_tree_view_stop_rubberband),
      	(gtk_tree_view_update_rubber_band_selection_range),
      	(gtk_tree_view_update_rubber_band_selection),
      	(gtk_tree_view_update_rubber_band),
      	(gtk_tree_view_paint_rubber_band): new functions.
      
      	* gtk/gtktreeview.h: add new set/get function for rubber banding
      	property.
      
      	* gtk/gtktreeprivate.h: add a bunch of new private fields.
      f6c583f7
  10. 26 Apr, 2006 1 commit
  11. 01 Mar, 2006 1 commit
    • Kristian Rietveld's avatar
      rename to _gtk_tree_selection_row_is_selectable and export internally, · 2e6ba401
      Kristian Rietveld authored
      2006-03-01  Kristian Rietveld  <kris@imendio.com>
      
      	* gtk/gtktreeselection.c (row_is_selectable): rename to
      	_gtk_tree_selection_row_is_selectable and export internally,
      	(gtk_tree_selection_real_select_node): changed so it is always
      	possible to unselect insensitive nodes, changed the logic a bit to
      	be more clear.
      
      	* gtk/gtktreeprivate.h: add _gtk_tree_selection_row_is_selectable.
      
      	* gtk/gtktreeview.c (gtk_tree_view_row_changed): Unselect a row if
      	it became insensitive.
      2e6ba401
  12. 24 Jan, 2006 1 commit
    • Kristian Rietveld's avatar
      #322591, Jonathan Blandford. · 58e77fe2
      Kristian Rietveld authored
      2006-01-24  Kristian Rietveld  <kris@gtk.org>
      
      	#322591, Jonathan Blandford.
      
      	* gtk/gtktreeview.[ch] (gtk_tree_view_get_search_entry),
      	(gtk_tree_view_set_search_entry),
      	(gtk_tree_view_get_search_position_func),
      	(gtk_tree_view_set_search_position_func): New functions,
      	and small adaptions to the tree view code to allow for setting
      	the entry and search position function.
      
      	* gtk/gtktreeprivate.h: Removed GtkTreeViewSearchDialogPositionFunc
      	typedef, which is now in gtktreeview.h as
      	GtkTreeViewSearchPositionFunc.  Add/update fields.
      
      	* gtk/gtk.symbols: Add new functions.
      
      	* tests/testtreesort.c: Add a little test for _set_search_entry().
      58e77fe2
  13. 29 Nov, 2005 1 commit
    • Matthias Clasen's avatar
      Properly handle model changes in GtkTreeSelection: (#322569, Milosz · 924765a2
      Matthias Clasen authored
      2005-11-29  Matthias Clasen  <mclasen@redhat.com>
      
      	Properly handle model changes in GtkTreeSelection: (#322569,
      	Milosz Derezynski)
      
      	* gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach):
      	Get a reference to the model, and stop the iteration if the model
      	of the treeview is changed on the way.
      
      	* gtk/gtktreeprivate.h:
      	* gtk/gtktreeselection.c (_gtk_tree_selection_emit_changed): New
      	private function to emit the GtkTreeSelection::changed signal.
      
      	* gtk/gtktreeview.c (gtk_tree_view_set_model): Call
      	_gtk_tree_selection_emit_changed() when the model changes.
      924765a2
  14. 21 Jun, 2005 1 commit
  15. 02 Aug, 2004 1 commit
  16. 01 Aug, 2004 1 commit
    • Jonathan Blandford's avatar
      New arguments · 1541442d
      Jonathan Blandford authored
      Thu Jul 29 16:36:42 2004  Jonathan Blandford  <jrb@redhat.com>
      
              * gtk/gtktreeprivate.h: New arguments
      
              * gtk/gtktreeview.c:
              (gtk_tree_view_class_init): Add key_release callback
              (gtk_tree_view_init): Initialize timeout handler
              (gtk_tree_view_unrealize): clear timeout if needed
              (gtk_tree_view_key_press): Typeahead support
              (gtk_tree_view_key_release): Not used yet -- will be needed for
              typeahead.
              (gtk_tree_view_search_entry_flush_timeout): Remove typeahead entry
              in a timeout.
              (gtk_tree_view_ensure_interactive_directory):
              (gtk_tree_view_real_start_interactive_search):
              (gtk_tree_view_search_init):
              (gtk_tree_view_start_interactive_search): Typeahead support added.
              (gtk_tree_view_search_dialog_hide): Clear timeout and text when we
              hide.
      1541442d
  17. 07 Jul, 2004 1 commit
  18. 10 May, 2004 1 commit
  19. 11 Apr, 2004 1 commit
    • Jonathan Blandford's avatar
      Moved search entries into priv data. · 0aebe343
      Jonathan Blandford authored
      Sun Apr 11 15:08:45 2004  Jonathan Blandford  <jrb@gnome.org>
      
              * gtk/gtktreeprivate.h: Moved search entries into priv data.
      
              * gtk/gtktreeview.c: Prep for type-ahead support.
      
              (gtk_tree_view_destroy): Destroy the search window explicitly.
              (gtk_tree_view_key_press): Minor change; prep for type-ahead
              (gtk_tree_view_ensure_interactive_directory): New function
              (gtk_tree_view_focus_out): Rework to handle new entry life-cycle.
              (gtk_tree_view_real_start_interactive_search): rework
              (gtk_tree_view_search_dialog_hide): ditto
              (gtk_tree_view_search_delete_event): ditto
              (gtk_tree_view_search_button_press_event): ditto
              (gtk_tree_view_search_key_press_event): ditto
              (gtk_tree_view_search_move): ditto
              (gtk_tree_view_search_init): ditto
      
              * gtk/gtktreeviewcolumn.c:
              (gtk_tree_view_column_cell_layout_clear): remove unused variable.
      
              * tests/testfilechooser.c: (main): change
      0aebe343
  20. 02 Feb, 2004 1 commit
    • Matthias Clasen's avatar
      Add init_hadjust_value and prev_width. Initialize them here. ...and here. · 4ec8e2b2
      Matthias Clasen authored
      Tue Feb  3 00:15:17 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtktreeprivate.h (struct _GtkTreeViewPrivate): Add
      	init_hadjust_value and prev_width.
      	* gtk/gtktreeview.c (gtk_tree_view_init): Initialize
      	them here.
      	* gtk/gtktreeview.c (gtk_tree_view_update_size): ...and here.
      	* gtk/gtktreeview.c (gtk_tree_view_size_allocate): Use them
      	here to properly handle the initial position of rtl-oriented
      	tree views.  (#127581, chinen@jp.ibm.com)
      4ec8e2b2
  21. 18 Dec, 2003 1 commit
    • Kristian Rietveld's avatar
      Migrating all cell renderers to use the new instance private data · c43efa51
      Kristian Rietveld authored
      Thu Dec 18 00:57:18 2003  Kristian Rietveld  <kris@gtk.org>
      
      	Migrating all cell renderers to use the new instance private data
      	construction.
      
      	* gtk/gtktreeprivate.h: remove GtkCellRendererInfo, as it is no
      	longer being used.
      
      	* gtk/gtkcellrenderer.c (gtk_cell_renderer_init),
      	(gtk_cell_renderer_class_init), (gtk_cell_renderer_get_property),
      	(set_cell_bg_color), (gtk_cell_renderer_render): remove old
      	GtkCellRendererInfo handling, migrate to instance private data.
      
      	* gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_editing_done),
      	(gtk_cell_renderer_text_start_editing): moved focus_out_id
      	from GtkCellRendererInfo to text renderer private data.
      
      	* gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_init),
      	(gtk_cell_renderer_pixbuf_class_init),
      	(gtk_cell_renderer_pixbuf_finalize),
      	(gtk_cell_renderer_pixbuf_get_property),
      	(gtk_cell_renderer_pixbuf_set_property),
      	(gtk_cell_renderer_pixbuf_create_stock_pixbuf),
      	(gtk_cell_renderer_pixbuf_get_size), (gtk_cell_renderer_pixbuf_render):
      	migrate to instance private data.
      
      	* gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_class_init),
      	(gtk_cell_renderer_toggle_get_property),
      	(gtk_cell_renderer_toggle_set_property),
      	(gtk_cell_renderer_toggle_render): migrate to instance private data.
      c43efa51
  22. 17 Dec, 2003 1 commit
    • Kristian Rietveld's avatar
      Yay! Fixed height mode! Hooray! (Part 2 of #80868). · f219093f
      Kristian Rietveld authored
      Wed Dec 17 21:23:01 2003  Kristian Rietveld  <kris@gtk.org>
      
      	Yay! Fixed height mode! Hooray! (Part 2 of #80868).
      
      	* 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_set_model): add a
      	fixed_height_mode property,
      	(intialize_fixed_height_mode), (do_validate_rows),
      	(column_sizing_notify), (gtk_tree_view_set_fixed_height_mode),
      	(gtk_tree_view_style_set), (gtk_tree_view_row_changed),
      	(gtk_tree_view_row_inserted), (gtk_tree_view_remove_column),
      	(gtk_tree_view_insert_column): implement fixed height mode,
      	(gtk_tree_view_append_column), (gtk_tree_view_insert_column),
      	(gtk_tree_view_insert_column_with_attributes),
      	(gtk_tree_view_insert_column_with_data_func): update docs.
      
      	* gtk/gtktreeprivate.h: add two fields to GtkTreePrivate.
      f219093f
  23. 09 Sep, 2003 1 commit
    • Kristian Rietveld's avatar
      Big TreeView DnD fixage, makes drops on empty models work, makes TreeStore · b78691f0
      Kristian Rietveld authored
      Wed Sep 10 01:06:44 2003  Kristian Rietveld  <kris@gtk.org>
      
      	Big TreeView DnD fixage, makes drops on empty models work, makes
      	TreeStore DnD work and gets rid of gtk-tree-model-drop-append.
      	Related bugs #95362 and #113314. I don't want to touch this code
      	ever again.
      
      	* gtk/gtktreeprivate.h (GtkTreePrivate): add empty_view_drop field.
      
      	* gtk/gtktreednd.c (gtk_tree_get_row_drag_data): add check
      	for selection_data->length.
      
      	* gtk/gtktreeview.c (struct DestRow), (dest_row_free),
      	(set_dest_row), (get_dest_row): we don't store just the row ref
      	anymore, but a struct with the row ref and additional info,
      	(set_destination_row): handle drops on empty space and some
      	style fixes,
      	(get_logical_dest_row): also return path_down_mode/drop_append_mode
      	flags, handle dropping childs on their new parents, rewrite
      	drop append handling into something saner,
      	(gtk_tree_view_drag_motion): show a "drop possible arrow" on empty
      	spaces,
      	(gtk_tree_view_drag_drop): updates for updated backend,
      	(gtk_tree_view_drag_data_received): updates for updated backend,
      	path down mode (treestore DnD) handling,
      	(gtk_tree_view_set_drag_dest_row): set empty_view_drop flag,
      	when we are trying to drop a row on an empty model,
      	(gtk_tree_view_get_drag_dest_row): handle empty_view_drop flag.
      
      	* gtk/gtkliststore.c (gtk_list_store_drag_data_received),
      	(gtk_list_store_row_drop_possible): style and drop-append fixes.
      
      	* gtk/gtktreestore.c (gtk_tree_store_drag_data_received): ditto.
      b78691f0
  24. 25 Aug, 2003 1 commit
    • Kristian Rietveld's avatar
      Merge from stable. · 43d99929
      Kristian Rietveld authored
      Mon Aug 25 23:21:43 2003  Kristian Rietveld  <kris@gtk.org>
      
      	Merge from stable.
      
      	Fixes #115871, reported by Michael Natterer.
      
      	* gtk/gtktreeprivate.h: added GtkTreeSelectMode enum,
      	added ctrl_pressed and shift_pressed bitfields,
      	(_gtk_tree_selection_internal_select_node): replace GdkModifierType
      	arg with GtkTreeSelectMode.
      
      	* gtk/gtktreeselection.c (gtk_tree_selection_set_mode),
      	(gtk_tree_selection_select_path), (gtk_tree_selection_unselect_path),
      	(_gtk_tree_selection_internal_select_node): all updated for
      	GdkModifierType -> GtkTreeSelectMode move.
      
      	* gtk/gtktreeview.c (gtk_tree_view_button_press): set ctrl_pressed
      	and shift_pressed around selection handling block,
      	(gtk_tree_view_real_select_cursor_row),
      	(gtk_tree_view_real_toggle_cursor_row),
      	(gtk_tree_view_real_selection_cursor_parent),
      	(gtk_tree_view_real_set_cursor): use ctrl_pressed and shift_pressed,
      	instead of checking the event state. And also updates for the
      	GdkModifierType -> GtkTreeSelectMode move.
      43d99929
  25. 27 May, 2003 1 commit
    • Matthias Clasen's avatar
      Remove dubious bitfields of unspecified signedness. (#112919, Morten · 83c626bb
      Matthias Clasen authored
      2003-05-27  Matthias Clasen  <maclas@gmx.de>
      
      	* io-wbmp.c: Remove dubious bitfields of
      	unspecified signedness.  (#112919, Morten Welinder)gdk-p
      
      	* gdk-pixdata.c (gdk_pixdata_to_csource): Replace all occurances
      	of g_string_new ("") by g_string_new (NULL). (#106975, Morten Welinder)
      
      	* gtk/gtkwindow-decorate.c:
      	* gtk/gtktreeprivate.h:
      	* gtk/gtkdnd.c:
      	* gdk/win32/gdkwindow-win32.h:
      	* gdk/linux-fb/gdkprivate-fb.h:
      	* gdk/linux-fb/gdkkeyboard-fb.c: Remove dubious bitfields of
      	unspecified signedness.  (#112919, Morten Welinder)
      
      	* gtk/queryimmodules.c (escape_string):
      	* gtk/gtktextbtree.c (_gtk_text_btree_get_text):
      	* gtk/gtksettings.c (_gtk_settings_parse_convert):
      	* gtk/gtkrc.c (gtk_rc_parse_assignment):
      	* gtk/gtkinputdialog.c (gtk_input_dialog_set_key):
      	* gdk/x11/gdkdisplay-x11.c (escape_for_xmessage): Replace all
      	occurances of g_string_new ("") by g_string_new (NULL). (#106975,
      	Morten Welinder)
      83c626bb
  26. 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
  27. 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
  28. 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
  29. 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
  30. 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
  31. 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
  32. 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
  33. 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
  34. 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
  35. 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
  36. 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
  37. 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
  38. 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
  39. 21 Jan, 2002 1 commit