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 331795 - need API to add key_press_events handler to tree_view->priv->search_window
need API to add key_press_events handler to tree_view->priv->search_window
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Widget: GtkTreeView
unspecified
Other All
: Normal enhancement
: Small API
Assigned To: gtktreeview-bugs
gtktreeview-bugs
Depends on:
Blocks: 330181
 
 
Reported: 2006-02-19 17:26 UTC by Allison Karlitskaya (desrt)
Modified: 2016-03-06 16:25 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Allison Karlitskaya (desrt) 2006-02-19 17:26:01 UTC
Nautilus wants to be able to listen for shift+enter events on the treeview search window (tree_view->priv->search_window) so that shift+enter while doing typeahead does the normal nautilus shift+enter behaviour.  See bug #330181.

This can't be done because it's impossible to register an event handler on this private instance without dirty tricks.

Of course, even if such a handler could be added it would still have some trouble since it wouldn't be able to properly dismiss the search dialog without reimplementing gtk_tree_view_search_dialog_hide (or without also making this function public).  This gets increasingly messy.

Perhaps it might be cleaner to just special case shift+enter (maybe ctrl+enter, others....) to send some sort of a signal from the treeview itself.
Comment 1 Nelson Benitez 2006-02-23 23:34:40 UTC
Would'nt this work just with the search_window to passed along the ENTER and SHIFT+ENTER events to the treeview ? 

If that's possible I think makes sense as ENTER events in the search_entry are expected to trigger some behaviour in the selected item of the treeview (currently ENTER in the text_entry just hides the entry, so it would also have to pass the event to the treeview because for hiding the entry we already have ESC) ... this way we would'nt need new api...

We could do it also for CTRL+ENTER.
Comment 2 Matthias Clasen 2016-03-06 16:25:48 UTC
this is not relevant anymore - we're doing search differently in nautilus nowadays