1. 07 Jul, 2004 1 commit
    • Matthias Clasen's avatar
      Support separators in combo boxes and more generally in tree views · 1aa00e52
      Matthias Clasen authored
      2004-07-07  Matthias Clasen  <mclasen@redhat.com>
      
      	Support separators in combo boxes and more generally in tree
      	views  (#135873):
      
      	* gtk/gtkcombobox.h:
      	* gtk/gtkcombobox.c (gtk_combo_box_get_row_separator_column):
      	* gtk/gtkcombobox.c (gtk_combo_box_set_row_separator_column):
      	Add a ::row-separator-column property with getter and setter,
      	which can indicate a boolean model column to determine which
      	rows are separators.
      
      	* gtk/gtkcombobox.c: Display separator rows as separator menu
      	items in menu mode, and by using the new treeview separator
      	functionality in list mode.
      
      	* gtk/gtktreeview.h:
      	* gtk/gtktreeview.c (gtk_tree_view_get_row_separator_func):
      	* gtk/gtktreeview.c (gtk_tree_view_set_row_separator_func):
      	Add a callback to determine whether a row is a separator.
      
      	* gtk/gtktreeview.c (gtk_tree_view_bin_expose):
      	* gtk/gtktreeview.c (gtk_tree_view_create_row_drag_icon):
      	* gtk/gtktreeview.c (validate_row): Use the new callback
      	to determine whether a row is a separator, and draw it
      	as a separator then. Since separators should take up less
      	vertical space than regular rows, this requires removing
      	the redundant MAX(...,expander_size) calls which appear in
      	many places. Instead, the MAX() is now only done in
      	validate_row(), and only if the row is not a separator.
      	To catch possible side effects of this intrusive change,
      	I have left EXPANDER_MAX() calls in place of the MAX() calls
      	which will emit a warning if something breaks. They should
      	be removed before 2.6.
      
      	* gtk/gtktreeselection.c (row_is_selectable): Don't let
      	separator rows be selected.
      
      	* tests/testcombo.c (create_blaat): Add a separator column.
      1aa00e52
  2. 06 Jul, 2004 1 commit
    • Jonathan Blandford's avatar
      Fix for #136496, Pawel Salek: · f80b81db
      Jonathan Blandford authored
      Tue Jul  6 10:00:22 2004  Jonathan Blandford  <jrb@redhat.com>
      
      	Fix for #136496, Pawel Salek:
      
      	* gtk/gtktreeview.c (gtk_tree_view_row_changed): Queue a redraw on
      	a node when it changes in fixed_height mode.
      
      	(gtk_tree_view_node_queue_redraw): new function to queue a redraw
      	on a node.
      f80b81db
  3. 02 Jul, 2004 1 commit
  4. 30 Jun, 2004 1 commit
  5. 08 Jun, 2004 1 commit
  6. 02 Jun, 2004 1 commit
  7. 14 May, 2004 1 commit
    • Matthias Clasen's avatar
      New function to go from tree window to tree coordinates, kept static for · 6ce035ae
      Matthias Clasen authored
      2004-05-14  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtktreeview.c (gtk_tree_view_tree_window_to_tree_coords):
      	New function to go from tree window to tree coordinates, kept
      	static for now until we figure out the multiple coordinate
      	system mess in GtkTreeView API-wise.
      	(gtk_tree_view_scroll_to_cell): Transform the coordinates
      	from tree window to tree coordinates, using the new function.
      	Previously, the x coordinate was wrongly transformed. (#142494)
      6ce035ae
  8. 11 May, 2004 1 commit
    • Matthias Clasen's avatar
      Use GTK_SELECTION_BROWSE. · 4c2dd05c
      Matthias Clasen authored
      2004-05-11  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkcombobox.c (gtk_combo_box_list_setup): Use
      	GTK_SELECTION_BROWSE.
      
      	* gtk/gtktreeview.c: Make hover selection work for
      	GTK_SELECTION_BROWSE as well.
      4c2dd05c
  9. 10 May, 2004 2 commits
    • Matthias Clasen's avatar
      Add a note about COLUMN_FIXED restriction. · 16a4dc24
      Matthias Clasen authored
      2004-05-10  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtktreeview.c (gtk_tree_view_set_fixed_height_mode): Add a
      	note about COLUMN_FIXED restriction.
      16a4dc24
    • Matthias Clasen's avatar
      Use hover selection mode. (#127648, Dave Bordoley) · b3013157
      Matthias Clasen authored
      2004-05-10  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkentrycompletion.c (gtk_entry_completion_init):
      	* gtk/gtkcombobox.c (gtk_combo_box_list_setup): Use hover selection
      	mode.  (#127648, Dave Bordoley)
      
      	* gtk/gtktreeview.h:
      	* gtk/gtktreeview.c: Add a new property "hover_selection", which
      	when TRUE makes the selection follow the mouse. Also add setter
      	and getter for the fixed_height property.
      b3013157
  10. 14 Apr, 2004 1 commit
  11. 13 Apr, 2004 1 commit
  12. 12 Apr, 2004 1 commit
    • Matthias Clasen's avatar
      Typo fix. · d7cb9461
      Matthias Clasen authored
      2004-04-12  Matthias Clasen  <mclasen@dhcp64-228.boston.redhat.com>
      
      	* gtk/gtktreeview.c (gtk_tree_view_get_cell_area): Typo fix.
      
      	* gtk/gtkentrycompletion.c (gtk_entry_completion_init): Don't add
      	a shadow inside the scrolled window, add it around the vbox.
      
      	* gtk/gtkentryprivate.h:
      	* gtk/gtkentrycompletion.c (_gtk_entry_completion_resize_popup):
      	Return a boolean indicating whether the popup is positioned above
      	or below. Scroll the completions to the beginning or the end,
      	depending on the positioning.
      
      	* gtk/gtkentry.c (gtk_entry_completion_key_press): Make keynav
      	wrap around in the entry completion popup, and allow GDK_UP to
      	enter the popup.  (#137440)
      
      2004-04-12  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkentry.c (gtk_entry_size_request): Make sure the style is
      	there before using it.
      d7cb9461
  13. 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
  14. 02 Apr, 2004 1 commit
  15. 15 Mar, 2004 1 commit
    • Owen Taylor's avatar
      Mention GtkTreeViewSearchEqualFunc return value oddity here as well. · 6bc9b7f5
      Owen Taylor authored
      Sun Mar 14 22:32:36 2004  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtktreeview.c (gtk_tree_view_set_search_equal_func): Mention
              GtkTreeViewSearchEqualFunc return value oddity here as well.
      
              * gtk/gtktreeview.c (gtk_tree_view_search_equal_func): On failure
              to get a string to compare to, return TRUE (no match), not
              FALSE (match). Handle %NULL string values gracefully.
              Remove unused variable. (#135962, Mark McLoughlin)
      6bc9b7f5
  16. 06 Mar, 2004 1 commit
  17. 05 Mar, 2004 2 commits
    • Jonathan Blandford's avatar
      scroll to the new path. · 48bfdd51
      Jonathan Blandford authored
      Fri Mar  5 18:00:36 2004  Jonathan Blandford  <jrb@redhat.com>
      
              * gtk/gtkfilechooserdefault.c (new_folder_button_clicked): scroll
              to the new path.
      
              * gtk/gtktreeview.c (gtk_tree_view_adjustment_changed): Update the
              allocation when scrolling instead of cancelling editing.
      48bfdd51
    • Matthias Clasen's avatar
      Clarify the doc comment. (#118602) · 61fd5219
      Matthias Clasen authored
      Fri Mar  5 23:37:16 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtktreeview.c (gtk_tree_view_set_reorderable): Clarify the
      	doc comment.  (#118602)
      61fd5219
  18. 24 Feb, 2004 1 commit
  19. 15 Feb, 2004 1 commit
    • Matthias Clasen's avatar
      Document the tree DND API. · 6993105c
      Matthias Clasen authored
      Sun Feb 15 02:49:45 2004  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtktreednd.c:
      	* gtk/gtktreeview.c: Document the tree DND API.
      
      	* gtk/gtktreeview.c (gtk_tree_view_unset_rows_drag_source):
      	Call gtk_drag_source_unset().
      6993105c
  20. 12 Feb, 2004 1 commit
  21. 02 Feb, 2004 2 commits
    • 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
    • Federico Mena Quintero's avatar
      Fix #130846, reported by R. McFarland <rwmcfa1@neces.com>. · f480c797
      Federico Mena Quintero authored
      2004-01-20  Federico Mena Quintero  <federico@ximian.com>
      
      	Fix #130846, reported by R. McFarland <rwmcfa1@neces.com>.
      
      	* gtk/gtktreeview.c (gtk_tree_view_button_press): Return TRUE when
      	we handle an event in the colums, and FALSE at the end if the
      	event is not handled at all.
      f480c797
  22. 30 Jan, 2004 1 commit
    • Not Zed's avatar
      Fixes #132929. · ca644c41
      Not Zed authored
      2004-01-30  Not Zed  <NotZed@Ximian.com>
      
      	Fixes #132929.
      
      	* gtk/gtktreeview.c (cancel_arrow_animation): remove the timeout
      	handler when we clear the timeout id.
      ca644c41
  23. 23 Jan, 2004 1 commit
  24. 16 Jan, 2004 1 commit
    • Matthias Clasen's avatar
      The first part of the fix for #114351 (see also gdk-pixbuf/ChangeLog and · 07d4d314
      Matthias Clasen authored
      Fri Jan 16 23:59:01 2004  Matthias Clasen  <maclas@gmx.de>
      
      	The first part of the fix for #114351 (see also
      	gdk-pixbuf/ChangeLog and po/ChangeLog):
      
      	* gtk/gtkintl.h:
      	* gdk-pixbuf/gdk-pixbuf-i18n.h:
      	* gdk/gdkintl.h: Define P_() for property blurbs and nicks.
      
      	* gdk/gdkdisplaymanager.c:
      	* gdk-pixbuf/gdk-pixbuf.c:
      	* modules/input/gtkimcontextxim.c:
      	* gtk/*.c:  Mark property blurbs and nicks with P_().
      
      	* po/Makefile.in.in: Add --keyword=P_ to the xgettext
      	invocation, since property blurbs and nicks are
      	now marked with P_().
      07d4d314
  25. 15 Jan, 2004 1 commit
  26. 21 Dec, 2003 1 commit
    • Matthias Clasen's avatar
      Fix memory leaks caused by the failure to free the result of · 6a6455d7
      Matthias Clasen authored
      Sun Dec 21 23:17:01 2003  Matthias Clasen  <maclas@gmx.de>
      
      	* gtk/gtkuimanager.c (update_node):
      	(update_smart_separators):
      	(_gtk_menu_is_empty):
      	(find_menu_position):
      	* gtk/gtktreeview.c (gtk_tree_view_search_dialog_destroy):
      	* gtk/gtkcombobox.c (gtk_combo_box_relayout_item):
      	(gtk_combo_box_relayout): Fix memory leaks caused by the
      	failure to free the result of gtk_container_get_children().
      	(#127576, Yao Zhang)
      6a6455d7
  27. 20 Dec, 2003 1 commit
  28. 19 Dec, 2003 1 commit
  29. 18 Dec, 2003 3 commits
  30. 17 Dec, 2003 3 commits
    • Kristian Rietveld's avatar
      only try to strcmp or strlen if we managed to normalize and casefold the · b1187d9e
      Kristian Rietveld authored
      Wed Dec 17 23:31:19 2003  Kristian Rietveld  <kris@gtk.org>
      
      	* gtk/gtktreeview.c (gtk_tree_view_search_equal_func): only
      	try to strcmp or strlen if we managed to normalize and casefold
      	the string correctly. Fixes crashes with non-UTF8 strings.
      	(#121617, Patch from Tim-Philipp Müller).
      b1187d9e
    • Kristian Rietveld's avatar
      fix compile warning. (#122727, patch from Kjartan Maraas). · d1f4899f
      Kristian Rietveld authored
      Wed Dec 17 23:16:45 2003  Kristian Rietveld  <kris@gtk.org>
      
      	* gtk/gtktreeview.c (gtk_tree_view_button_press): fix compile warning.
      	(#122727, patch from Kjartan Maraas).
      d1f4899f
    • 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
  31. 13 Dec, 2003 1 commit
    • Kristian Rietveld's avatar
      A trick for a faster treeview, step 1. Patch to short circuit · 5f3cde77
      Kristian Rietveld authored
      Sat Dec 13 16:13:27 2003  Kristian Rietveld  <kris@gtk.org>
      
      	A trick for a faster treeview, step 1. Patch to short circuit
      	_build_tree(), inspired by Jonathan (#80868).
      
      	* gtk/gtktreeview.c (gtk_tree_view_init): don't put _IS_LIST in
      	flags by default,
      	(gtk_tree_view_build_tree): don't even try to recurse when the
      	model says that it is a list, remove flag unsetter,
      	(gtk_tree_view_set_model): change flag setting logic.
      
      	* gtk/gtktreemodelsort.c (gtk_tree_model_sort_get_flags):
      	propagate whether or not the child model has _IS_LIST set.
      
      	* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_get_flags):
      	ditto.
      5f3cde77
  32. 29 Nov, 2003 1 commit
  33. 21 Oct, 2003 1 commit