aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-searchbar.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-06-24 20:13:46 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-06-24 20:17:13 +0800
commitf1bad7677ab2928638f8705873d7ab599b6c99cd (patch)
tree3c1b194d88fcbc94a75a9352145155aafbc77d3f /shell/e-shell-searchbar.c
parentbcdea3f01e0b614a0e366ee19c0ff6810e43b32d (diff)
downloadgsoc2013-evolution-f1bad7677ab2928638f8705873d7ab599b6c99cd.tar
gsoc2013-evolution-f1bad7677ab2928638f8705873d7ab599b6c99cd.tar.gz
gsoc2013-evolution-f1bad7677ab2928638f8705873d7ab599b6c99cd.tar.bz2
gsoc2013-evolution-f1bad7677ab2928638f8705873d7ab599b6c99cd.tar.lz
gsoc2013-evolution-f1bad7677ab2928638f8705873d7ab599b6c99cd.tar.xz
gsoc2013-evolution-f1bad7677ab2928638f8705873d7ab599b6c99cd.tar.zst
gsoc2013-evolution-f1bad7677ab2928638f8705873d7ab599b6c99cd.zip
Bug 622559 - Changing search option should focus search entry
Diffstat (limited to 'shell/e-shell-searchbar.c')
-rw-r--r--shell/e-shell-searchbar.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/shell/e-shell-searchbar.c b/shell/e-shell-searchbar.c
index 940bd9fd6b..ceab21aba5 100644
--- a/shell/e-shell-searchbar.c
+++ b/shell/e-shell-searchbar.c
@@ -447,8 +447,10 @@ shell_searchbar_option_changed_cb (GtkRadioAction *action,
e_shell_searchbar_set_search_text (searchbar, search_text);
if (search_text != NULL && *search_text != '\0')
e_shell_view_execute_search (shell_view);
- else
+ else {
shell_searchbar_save_search_option (searchbar);
+ gtk_widget_grab_focus (searchbar->priv->search_entry);
+ }
} else if (search_text != NULL)
e_shell_searchbar_set_search_text (searchbar, NULL);