diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-06-25 08:23:07 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-06-25 08:42:09 +0800 |
commit | 71e92f3f2c45cd8dd9f44d8226e23603164974a5 (patch) | |
tree | 93f4758df11e2f7c92a4e8c60f85359547bf93fe /modules/calendar/e-task-shell-content.c | |
parent | 179db75ce041706a590e90a6ac7b801b36091ed6 (diff) | |
download | gsoc2013-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/calendar/e-task-shell-content.c')
-rw-r--r-- | modules/calendar/e-task-shell-content.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/calendar/e-task-shell-content.c b/modules/calendar/e-task-shell-content.c index b2744a883e..bb2017fa8a 100644 --- a/modules/calendar/e-task-shell-content.c +++ b/modules/calendar/e-task-shell-content.c @@ -621,6 +621,16 @@ task_shell_content_check_state (EShellContent *shell_content) } static void +task_shell_content_focus_search_results (EShellContent *shell_content) +{ + ETaskShellContentPrivate *priv; + + priv = E_TASK_SHELL_CONTENT_GET_PRIVATE (shell_content); + + gtk_widget_grab_focus (priv->task_table); +} + +static void task_shell_content_class_init (ETaskShellContentClass *class) { GObjectClass *object_class; @@ -638,6 +648,7 @@ task_shell_content_class_init (ETaskShellContentClass *class) shell_content_class = E_SHELL_CONTENT_CLASS (class); shell_content_class->check_state = task_shell_content_check_state; + shell_content_class->focus_search_results = task_shell_content_focus_search_results; g_object_class_install_property ( object_class, |