aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-01-08 02:15:02 +0800
committerMilan Crha <mcrha@redhat.com>2010-01-08 02:15:02 +0800
commitc6e32c11c10e006e83cf7beb7afd6b585e3d5570 (patch)
tree7567fcb200c4f972d9cb5ec8da2f71c4a17adcc3
parentd52040f42b0964b6f56f639bc6bc99c6f1a9906f (diff)
downloadgsoc2013-evolution-c6e32c11c10e006e83cf7beb7afd6b585e3d5570.tar
gsoc2013-evolution-c6e32c11c10e006e83cf7beb7afd6b585e3d5570.tar.gz
gsoc2013-evolution-c6e32c11c10e006e83cf7beb7afd6b585e3d5570.tar.bz2
gsoc2013-evolution-c6e32c11c10e006e83cf7beb7afd6b585e3d5570.tar.lz
gsoc2013-evolution-c6e32c11c10e006e83cf7beb7afd6b585e3d5570.tar.xz
gsoc2013-evolution-c6e32c11c10e006e83cf7beb7afd6b585e3d5570.tar.zst
gsoc2013-evolution-c6e32c11c10e006e83cf7beb7afd6b585e3d5570.zip
Do not focus in a search entry when it is not having a focus
-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