summaryrefslogtreecommitdiff
path: root/gtk/gtktreeview.c
diff options
context:
space:
mode:
authorKristian Rietveld <kris@imendio.com>2007-09-10 09:24:38 +0000
committerKristian Rietveld <kristian@src.gnome.org>2007-09-10 09:24:38 +0000
commita6755f707bdf87fa4e025e47a7515aded25e76c5 (patch)
tree60d9a9fdc22f7a9c642b4a14c56426e719e3feaa /gtk/gtktreeview.c
parent24e35a1daf6fbbf8d9568190065e1f8969d19485 (diff)
downloadgtk+-a6755f707bdf87fa4e025e47a7515aded25e76c5.tar.gz
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
Diffstat (limited to 'gtk/gtktreeview.c')
-rw-r--r--gtk/gtktreeview.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index 7795cea30f..e36af7d641 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -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;