From c6e32c11c10e006e83cf7beb7afd6b585e3d5570 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Thu, 7 Jan 2010 19:15:02 +0100 Subject: Do not focus in a search entry when it is not having a focus --- shell/e-shell-searchbar.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shell/e-shell-searchbar.c b/shell/e-shell-searchbar.c index 7d09589f7f..d98ec8ebd1 100644 --- a/shell/e-shell-searchbar.c +++ b/shell/e-shell-searchbar.c @@ -166,7 +166,8 @@ shell_searchbar_execute_search_cb (EShellView *shell_view, * focus-in event is required before the text can be changed. * This will reset the entry to the appropriate visual state. */ widget = searchbar->priv->search_entry; - gtk_widget_child_focus (widget, GTK_DIR_TAB_FORWARD); + if (gtk_widget_is_focus (widget)) + gtk_widget_child_focus (widget, GTK_DIR_TAB_FORWARD); } static void -- cgit