aboutsummaryrefslogtreecommitdiffstats
path: root/modules/addressbook
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-06-25 08:23:07 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-06-25 08:42:09 +0800
commit71e92f3f2c45cd8dd9f44d8226e23603164974a5 (patch)
tree93f4758df11e2f7c92a4e8c60f85359547bf93fe /modules/addressbook
parent179db75ce041706a590e90a6ac7b801b36091ed6 (diff)
downloadgsoc2013-evolution-71e92f3f2c45cd8dd9f44d8226e23603164974a5.tar.gz
gsoc2013-evolution-71e92f3f2c45cd8dd9f44d8226e23603164974a5.tar.zst
gsoc2013-evolution-71e92f3f2c45cd8dd9f44d8226e23603164974a5.zip
EShellContent: Add a focus_search_results() method.
This gives EShellSearchbar something concrete to call to direct focus away from itself instead of tabbing forward and hoping for the best.
Diffstat (limited to 'modules/addressbook')
-rw-r--r--modules/addressbook/e-book-shell-content.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/addressbook/e-book-shell-content.c b/modules/addressbook/e-book-shell-content.c
index 66cd6a4660..bc374079a3 100644
--- a/modules/addressbook/e-book-shell-content.c
+++ b/modules/addressbook/e-book-shell-content.c
@@ -364,6 +364,18 @@ book_shell_content_check_state (EShellContent *shell_content)
}
static void
+book_shell_content_focus_search_results (EShellContent *shell_content)
+{
+ EBookShellContent *book_shell_content;
+ EAddressbookView *view;
+
+ book_shell_content = E_BOOK_SHELL_CONTENT (shell_content);
+ view = e_book_shell_content_get_current_view (book_shell_content);
+
+ gtk_widget_grab_focus (GTK_WIDGET (view));
+}
+
+static void
book_shell_content_class_init (EBookShellContentClass *class)
{
GObjectClass *object_class;
@@ -380,6 +392,7 @@ book_shell_content_class_init (EBookShellContentClass *class)
shell_content_class = E_SHELL_CONTENT_CLASS (class);
shell_content_class->check_state = book_shell_content_check_state;
+ shell_content_class->focus_search_results = book_shell_content_focus_search_results;
g_object_class_install_property (
object_class,