diff options
author | Michael Meeks <michael.meeks@novell.com> | 2010-08-09 23:10:22 +0800 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2010-08-10 22:23:39 +0800 |
commit | 78ebd5d8e7db8c5d816a4a17bc00eb34a0f764cc (patch) | |
tree | 41e2cce7a8f8291edcf5c42ad2338331c4754207 /shell | |
parent | c1381b02bc61009814dbbbb842c34d094ed74add (diff) | |
download | gsoc2013-evolution-78ebd5d8e7db8c5d816a4a17bc00eb34a0f764cc.tar gsoc2013-evolution-78ebd5d8e7db8c5d816a4a17bc00eb34a0f764cc.tar.gz gsoc2013-evolution-78ebd5d8e7db8c5d816a4a17bc00eb34a0f764cc.tar.bz2 gsoc2013-evolution-78ebd5d8e7db8c5d816a4a17bc00eb34a0f764cc.tar.lz gsoc2013-evolution-78ebd5d8e7db8c5d816a4a17bc00eb34a0f764cc.tar.xz gsoc2013-evolution-78ebd5d8e7db8c5d816a4a17bc00eb34a0f764cc.tar.zst gsoc2013-evolution-78ebd5d8e7db8c5d816a4a17bc00eb34a0f764cc.zip |
Execute calendar search post startup, not
Diffstat (limited to 'shell')
-rw-r--r-- | shell/e-shell-searchbar.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/shell/e-shell-searchbar.c b/shell/e-shell-searchbar.c index d1f8f65d62..a42fa18adc 100644 --- a/shell/e-shell-searchbar.c +++ b/shell/e-shell-searchbar.c @@ -1319,6 +1319,14 @@ e_shell_searchbar_set_state_group (EShellSearchbar *searchbar, g_object_notify (G_OBJECT (searchbar), "state-group"); } +static gboolean +idle_execute_search (gpointer shell_view) +{ + e_shell_view_execute_search (shell_view); + g_object_unref (shell_view); + return FALSE; +} + void e_shell_searchbar_load_state (EShellSearchbar *searchbar) { @@ -1420,9 +1428,10 @@ e_shell_searchbar_load_state (EShellSearchbar *searchbar) action = E_SHELL_WINDOW_ACTION_SEARCH_QUICK (shell_window); gtk_action_unblock_activate (action); - /* Now execute the search. */ + /* Execute the search when we have time. */ + g_object_ref (shell_view); searchbar->priv->state_dirty = FALSE; - e_shell_view_execute_search (shell_view); + g_idle_add (idle_execute_search, shell_view); } void |