diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-11-21 09:31:47 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2006-11-21 09:31:47 +0000 |
commit | ce48cec6937f7cab180cabd101586ab0f795c4e2 (patch) | |
tree | b3635490c7a9e5fb6298f2852d2bee2dc8b6fc6c /src/folderview.c | |
parent | 706387299924733de026545cc7fd99fa15624278 (diff) |
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
Diffstat (limited to 'src/folderview.c')
-rw-r--r-- | src/folderview.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 && |