aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-content.c
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 /shell/e-shell-content.c
parent179db75ce041706a590e90a6ac7b801b36091ed6 (diff)
downloadgsoc2013-evolution-71e92f3f2c45cd8dd9f44d8226e23603164974a5.tar
gsoc2013-evolution-71e92f3f2c45cd8dd9f44d8226e23603164974a5.tar.gz
gsoc2013-evolution-71e92f3f2c45cd8dd9f44d8226e23603164974a5.tar.bz2
gsoc2013-evolution-71e92f3f2c45cd8dd9f44d8226e23603164974a5.tar.lz
gsoc2013-evolution-71e92f3f2c45cd8dd9f44d8226e23603164974a5.tar.xz
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 'shell/e-shell-content.c')
-rw-r--r--shell/e-shell-content.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/shell/e-shell-content.c b/shell/e-shell-content.c
index 515dfa83bf..d897e110ad 100644
--- a/shell/e-shell-content.c
+++ b/shell/e-shell-content.c
@@ -386,6 +386,29 @@ e_shell_content_check_state (EShellContent *shell_content)
}
/**
+ * e_shell_content_focus_search_results:
+ * @shell_content: an #EShellContent
+ *
+ * #EShellContent subclasses should implement the
+ * <structfield>focus_search_results</structfield> method in
+ * #EShellContentClass to direct input focus to the widget
+ * displaying search results. This is usually called during
+ * e_shell_view_execute_search().
+ **/
+void
+e_shell_content_focus_search_results (EShellContent *shell_content)
+{
+ EShellContentClass *shell_content_class;
+
+ g_return_if_fail (E_IS_SHELL_CONTENT (shell_content));
+
+ shell_content_class = E_SHELL_CONTENT_GET_CLASS (shell_content);
+
+ if (shell_content_class->focus_search_results != NULL)
+ shell_content_class->focus_search_results (shell_content);
+}
+
+/**
* e_shell_content_get_shell_view:
* @shell_content: an #EShellContent
*