diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2012-01-06 07:44:24 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2012-01-06 07:44:24 +0000 |
commit | a66da11c866424de50962209f38708a15b61b2d3 (patch) | |
tree | a1665a7b108ba309884728c0e9fc1986235ec9fe | |
parent | 6bdf4c5f7e23e53d0bd254256e47cc66eefbaf9f (diff) |
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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/trayicon.c | 4 |
2 files changed, 8 insertions, 1 deletions
@@ -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); |