diff options
author | Milan Crha <mcrha@redhat.com> | 2012-01-11 22:59:25 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2012-01-11 22:59:25 +0800 |
commit | d0f2c46a1cf7bbbfc56b1f9e835756cdf542ac75 (patch) | |
tree | 285a58f0ecc2ba6523072c1256470b1e04f3fb4c /modules | |
parent | dd49067b2acfb72419f97a0348dc2524c3bbf56e (diff) | |
download | gsoc2013-evolution-d0f2c46a1cf7bbbfc56b1f9e835756cdf542ac75.tar gsoc2013-evolution-d0f2c46a1cf7bbbfc56b1f9e835756cdf542ac75.tar.gz gsoc2013-evolution-d0f2c46a1cf7bbbfc56b1f9e835756cdf542ac75.tar.bz2 gsoc2013-evolution-d0f2c46a1cf7bbbfc56b1f9e835756cdf542ac75.tar.lz gsoc2013-evolution-d0f2c46a1cf7bbbfc56b1f9e835756cdf542ac75.tar.xz gsoc2013-evolution-d0f2c46a1cf7bbbfc56b1f9e835756cdf542ac75.tar.zst gsoc2013-evolution-d0f2c46a1cf7bbbfc56b1f9e835756cdf542ac75.zip |
Do not auto-mark-as-seen when changing filter type
Diffstat (limited to 'modules')
-rw-r--r-- | modules/mail/e-mail-shell-view-private.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/modules/mail/e-mail-shell-view-private.c b/modules/mail/e-mail-shell-view-private.c index 269a122efe..b7e7f9575b 100644 --- a/modules/mail/e-mail-shell-view-private.c +++ b/modules/mail/e-mail-shell-view-private.c @@ -590,6 +590,24 @@ mail_shell_view_notify_view_id_cb (EMailShellView *mail_shell_view) gal_view_instance_set_current_view_id (view_instance, view_id); } +static void +mail_shell_view_search_filter_changed_cb (EMailShellView *mail_shell_view) +{ + EMailShellContent *mail_shell_content; + EMailView *mail_view; + + g_return_if_fail (mail_shell_view != NULL); + g_return_if_fail (mail_shell_view->priv != NULL); + + if (e_shell_view_is_execute_search_blocked (E_SHELL_VIEW (mail_shell_view))) + return; + + mail_shell_content = mail_shell_view->priv->mail_shell_content; + mail_view = e_mail_shell_content_get_mail_view (mail_shell_content); + + e_mail_reader_avoid_next_mark_as_seen (E_MAIL_READER (mail_view)); +} + void e_mail_shell_view_private_init (EMailShellView *mail_shell_view, EShellViewClass *shell_view_class) @@ -685,6 +703,12 @@ e_mail_shell_view_private_constructed (EMailShellView *mail_shell_view) G_BINDING_BIDIRECTIONAL | G_BINDING_SYNC_CREATE); + combo_box = e_shell_searchbar_get_filter_combo_box (searchbar); + g_signal_connect_object ( + combo_box, "changed", + G_CALLBACK (mail_shell_view_search_filter_changed_cb), + mail_shell_view, G_CONNECT_SWAPPED); + web_view = em_format_html_get_web_view (formatter); g_signal_connect_object ( |