aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--shell/e-shell-searchbar.c3
1 files changed, 2 insertions, 1 deletions
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