aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/trayicon.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/trayicon.c b/src/trayicon.c
index 3d7bbb69..20eed830 100644
--- a/src/trayicon.c
+++ b/src/trayicon.c
@@ -57,6 +57,8 @@
#define TRAYICON_NEW_IMAGE STOCK_PIXMAP_SYLPHEED_NEWMAIL
#endif
+#define TRAYICON_NOTIFY_PERIOD 10000
+
static TrayIcon trayicon;
static GtkWidget *trayicon_menu;
static gboolean on_notify = FALSE;
@@ -223,7 +225,7 @@ void trayicon_set_notify(gboolean enabled)
if (enabled && notify_tag == 0) {
gtk_status_icon_set_blinking(trayicon.status_icon, enabled);
- notify_tag = g_timeout_add(5000, notify_timeout_cb, NULL);
+ notify_tag = g_timeout_add(TRAYICON_NOTIFY_PERIOD, notify_timeout_cb, NULL);
} else if (!enabled && notify_tag > 0) {
g_source_remove(notify_tag);
notify_timeout_cb(NULL);