From ce48cec6937f7cab180cabd101586ab0f795c4e2 Mon Sep 17 00:00:00 2001 From: hiro Date: Tue, 21 Nov 2006 09:31:47 +0000 Subject: disable new mail notification when any message is displayed, marked as read, or trashes are emptied. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1333 ee746299-78ed-0310-b773-934348b2243d --- src/folderview.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/folderview.c') diff --git a/src/folderview.c b/src/folderview.c index 6c2937f7..cf04ffff 100644 --- a/src/folderview.c +++ b/src/folderview.c @@ -57,6 +57,7 @@ #include "procmsg.h" #include "utils.h" #include "gtkutils.h" +#include "trayicon.h" #include "prefs_common.h" #include "prefs_account.h" #include "prefs_folder_item.h" @@ -2146,6 +2147,8 @@ static void folderview_mark_all_read_cb(FolderView *folderview, guint action, else { procmsg_mark_all_read(item); folderview_update_item(item, FALSE); + trayicon_set_tooltip(NULL); + trayicon_set_notify(FALSE); } } @@ -2501,6 +2504,8 @@ static void folderview_empty_trash_cb(FolderView *folderview, guint action, procmsg_empty_trash(folder->trash); statusbar_pop_all(); folderview_update_item(folder->trash, TRUE); + trayicon_set_tooltip(NULL); + trayicon_set_notify(FALSE); open_path = gtk_tree_row_reference_get_path(folderview->opened); if (open_path && sel_path && -- cgit v1.2.3