diff options
author | Milan Crha <mcrha@redhat.com> | 2010-01-08 02:15:02 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2010-01-08 02:15:02 +0800 |
commit | c6e32c11c10e006e83cf7beb7afd6b585e3d5570 (patch) | |
tree | 7567fcb200c4f972d9cb5ec8da2f71c4a17adcc3 /shell/e-shell-searchbar.c | |
parent | d52040f42b0964b6f56f639bc6bc99c6f1a9906f (diff) | |
download | gsoc2013-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
Diffstat (limited to 'shell/e-shell-searchbar.c')
-rw-r--r-- | shell/e-shell-searchbar.c | 3 |
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 |