diff options
author | Milan Crha <mcrha@redhat.com> | 2014-03-07 21:48:30 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2014-03-07 21:49:13 +0800 |
commit | d325d27f96d7b3db849924b0282799968fb06010 (patch) | |
tree | c3f07c1afd4124eace1d96978e9762a58ad38220 /shell/e-shell-searchbar.c | |
parent | e4bb3a9d18b39dd188be69b54fd625d8b2d5a9d5 (diff) | |
download | gsoc2013-evolution-d325d27f96d7b3db849924b0282799968fb06010.tar gsoc2013-evolution-d325d27f96d7b3db849924b0282799968fb06010.tar.gz gsoc2013-evolution-d325d27f96d7b3db849924b0282799968fb06010.tar.bz2 gsoc2013-evolution-d325d27f96d7b3db849924b0282799968fb06010.tar.lz gsoc2013-evolution-d325d27f96d7b3db849924b0282799968fb06010.tar.xz gsoc2013-evolution-d325d27f96d7b3db849924b0282799968fb06010.tar.zst gsoc2013-evolution-d325d27f96d7b3db849924b0282799968fb06010.zip |
Bug #711351 - Folder change in folder tree steals focus
Diffstat (limited to 'shell/e-shell-searchbar.c')
-rw-r--r-- | shell/e-shell-searchbar.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/shell/e-shell-searchbar.c b/shell/e-shell-searchbar.c index d00ed7c9be..2c070cfd5d 100644 --- a/shell/e-shell-searchbar.c +++ b/shell/e-shell-searchbar.c @@ -477,7 +477,6 @@ shell_searchbar_option_changed_cb (GtkRadioAction *action, e_shell_view_execute_search (shell_view); } else { shell_searchbar_save_search_option (searchbar); - gtk_widget_grab_focus (searchbar->priv->search_entry); } } else if (search_text != NULL) @@ -1443,3 +1442,12 @@ e_shell_searchbar_save_state (EShellSearchbar *searchbar) searchbar->priv->state_dirty = FALSE; } + +void +e_shell_searchbar_search_entry_grab_focus (EShellSearchbar *searchbar) +{ + g_return_if_fail (E_IS_SHELL_SEARCHBAR (searchbar)); + g_return_if_fail (searchbar->priv->search_entry); + + gtk_widget_grab_focus (searchbar->priv->search_entry); +} |