After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 170435 - GtkTreeView enable-search property should only affect typeahead
GtkTreeView enable-search property should only affect typeahead
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkTreeView
2.6.x
Other All
: Normal normal
: ---
Assigned To: gtktreeview-bugs
gtktreeview-bugs
Depends on:
Blocks: 169339
 
 
Reported: 2005-03-15 11:05 UTC by Sven Neumann
Modified: 2011-02-04 16:17 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch to change the treeview behaviour as requested (616 bytes, patch)
2005-03-15 11:08 UTC, Sven Neumann
none Details | Review

Description Sven Neumann 2005-03-15 11:05:31 UTC
The default behaviour in GTK+-2.6 is to enable typeahead search in treeviews if
the search column is set. While this is often the desired behaviour, there exist
circumstances where typeahead interferes with other keybindings. See for example
bug #169339.

It should be possible to set a search column so that the Search keybinding can
be used to activate the search popup dialog, but to disable typeahead search.
The treeview has a property "enable-search" which should IMO do just that. It
should only affect the typeahead search. If set to FALSE, the user should still
be able to activate inetractive search using the Search keybinding.
Comment 1 Sven Neumann 2005-03-15 11:08:38 UTC
Created attachment 38742 [details] [review]
patch to change the treeview behaviour as requested
Comment 2 Sven Neumann 2005-03-19 20:39:17 UTC
I am setting the milestone to 2.6.5 since we would need this change to be
accepted and released in order to fix GIMP bug #169339. It would thus be good to
know whether this change has a chance to be accepted.
Comment 3 Matthias Clasen 2005-03-29 19:55:13 UTC
jrb said he is ok with the change. 
But looking at the code, I wonder if gtk_tree_view_real_start_interactive_search
is ever called with keybinding == TRUE.
Comment 4 Sven Neumann 2005-03-29 21:04:56 UTC
Hmm, you are right. I think gtk_tree_view_start_interactive_search() is supposed
to call gtk_tree_view_real_start_interactive_search() passing TRUE for keybinding.
Comment 5 Matthias Clasen 2005-03-30 18:27:05 UTC
2005-03-30  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtktreeview.c (gtk_tree_view_real_start_interactive_search): 
	Make enable_search control only typeahead, not C-f.  (#170435,
	Sven Neumann)
	(gtk_tree_view_start_interactive_search): Pass keybinding == TRUE.