From 4d4c78f1bf4f6c1ebc2bf5ea1ea0c57fe3255674 Mon Sep 17 00:00:00 2001 From: hiro Date: Wed, 27 Sep 2006 07:26:28 +0000 Subject: blink tray icon if new mails arrive. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1193 ee746299-78ed-0310-b773-934348b2243d --- ChangeLog | 1 + ChangeLog.ja | 1 + src/inc.c | 2 ++ 3 files changed, 4 insertions(+) diff --git a/ChangeLog b/ChangeLog index b7a79b00..df180377 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,7 @@ * src/trayicon.[ch]: trayicon_set_notify(): added. It blinks the tray icon for 5 seconds. + * src/inc.c: blink the tray icon when new mails arrive. 2006-09-26 diff --git a/ChangeLog.ja b/ChangeLog.ja index 2898a6f9..f42441d8 100644 --- a/ChangeLog.ja +++ b/ChangeLog.ja @@ -2,6 +2,7 @@ * src/trayicon.[ch]: trayicon_set_notify(): 追加。トレイアイコンを 5秒間点滅させる。 + * src/inc.c: 新着メールが到着したらトレイアイコンを点滅。 2006-09-26 diff --git a/src/inc.c b/src/inc.c index c7c7c671..587e68c1 100644 --- a/src/inc.c +++ b/src/inc.c @@ -160,8 +160,10 @@ static void inc_finished(MainWindow *mainwin, gint new_messages) g_snprintf(buf, sizeof(buf), _("Sylpheed: %d new messages"), new_messages); trayicon_set_tooltip(buf); + trayicon_set_notify(TRUE); } else { trayicon_set_tooltip(NULL); + trayicon_set_notify(FALSE); } if (new_messages <= 0 && !prefs_common.scan_all_after_inc) return; -- cgit v1.2.3