treeview: Don't popup a search dialog for keypresses that close it

That doesn't make sense.
And it causes issues, because when holding down the tab key, we
show/hide a lot of windows and cause a lot of map/unmap events that
stall the event pipeline.
This commit is contained in:
Benjamin Otte 2014-03-13 01:57:29 +01:00
parent c82f2169e5
commit 63fe6de94d

View File

@ -5918,7 +5918,8 @@ gtk_tree_view_key_press (GtkWidget *widget,
* the typeahead find capabilities. */
if (gtk_widget_has_focus (GTK_WIDGET (tree_view))
&& tree_view->priv->enable_search
&& !tree_view->priv->search_custom_entry_set)
&& !tree_view->priv->search_custom_entry_set
&& !gtk_tree_view_search_key_cancels_search (event->keyval))
{
GdkEvent *new_event;
char *old_text;