From a66da11c866424de50962209f38708a15b61b2d3 Mon Sep 17 00:00:00 2001 From: hiro Date: Fri, 6 Jan 2012 07:44:24 +0000 Subject: extended the blinking period of tray icon to 10 seconds. git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@3004 ee746299-78ed-0310-b773-934348b2243d --- src/trayicon.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3