only start typeahead search if tree_view has focus (and not one of the

2007-09-10  Kristian Rietveld  <kris@imendio.com>

	* gtk/gtktreeview.c (gtk_tree_view_key_press): only start
	typeahead search if tree_view has focus (and not one of the column
	buttons).


svn path=/trunk/; revision=18779
This commit is contained in:
Kristian Rietveld 2007-09-10 09:24:38 +00:00 committed by Kristian Rietveld
parent 24e35a1daf
commit a6755f707b
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2007-09-10 Kristian Rietveld <kris@imendio.com>
* gtk/gtktreeview.c (gtk_tree_view_key_press): only start
typeahead search if tree_view has focus (and not one of the column
buttons).
2007-09-09 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkdnd.c (gtk_drag_source_info_destroy): Remove

View File

@ -5340,7 +5340,8 @@ gtk_tree_view_key_press (GtkWidget *widget,
/* We pass the event to the search_entry. If its text changes, then we start
* the typeahead find capabilities. */
if (tree_view->priv->enable_search
if (GTK_WIDGET_HAS_FOCUS (tree_view)
&& tree_view->priv->enable_search
&& !tree_view->priv->search_custom_entry_set)
{
GdkEvent *new_event;