Revision 510 src/inc.c
| inc.c (revision 510) | ||
|---|---|---|
| 56 | 56 |
#include "progressdialog.h" |
| 57 | 57 |
#include "inputdialog.h" |
| 58 | 58 |
#include "alertpanel.h" |
| 59 |
#include "trayicon.h" |
|
| 59 | 60 |
#include "filter.h" |
| 60 | 61 |
#include "folder.h" |
| 61 | 62 |
|
| ... | ... | |
| 151 | 152 |
if (prefs_common.scan_all_after_inc) |
| 152 | 153 |
folderview_check_new(NULL); |
| 153 | 154 |
|
| 155 |
if (new_messages > 0) {
|
|
| 156 |
gchar buf[1024]; |
|
| 157 |
|
|
| 158 |
g_snprintf(buf, sizeof(buf), _("Sylpheed: %d new messages"),
|
|
| 159 |
new_messages); |
|
| 160 |
trayicon_set_tooltip(buf); |
|
| 161 |
} else {
|
|
| 162 |
trayicon_set_tooltip(_("Sylpheed"));
|
|
| 163 |
} |
|
| 164 |
|
|
| 154 | 165 |
if (new_messages <= 0 && !prefs_common.scan_all_after_inc) return; |
| 155 | 166 |
|
| 156 | 167 |
if (prefs_common.open_inbox_on_inc) {
|
Also available in: Unified diff