aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--src/trayicon.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index f10bee84..efe63fb6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2012-01-06
+ * src/trayicon.c: extended the blinking period of tray icon to 10
+ seconds.
+
+2012-01-06
+
* manual/ja/sylpheed.sgml: updated Japanese manual.
2012-01-05
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);