allow tray blinks to be static icons

This commit is contained in:
TingPing 2012-12-20 19:53:58 -05:00
parent 4524367cc0
commit b259595c9d
3 changed files with 5 additions and 1 deletions

View File

@ -461,6 +461,7 @@ const struct prefs vars[] =
{"gui_topicbar", P_OFFINT (hex_gui_topicbar), TYPE_BOOL}, {"gui_topicbar", P_OFFINT (hex_gui_topicbar), TYPE_BOOL},
{"gui_tray", P_OFFINT (hex_gui_tray), TYPE_BOOL}, {"gui_tray", P_OFFINT (hex_gui_tray), TYPE_BOOL},
{"gui_tray_away", P_OFFINT (hex_gui_tray_away), TYPE_BOOL}, {"gui_tray_away", P_OFFINT (hex_gui_tray_away), TYPE_BOOL},
{"gui_tray_blink", P_OFFINT (hex_gui_tray_blink), TYPE_BOOL},
{"gui_tray_close", P_OFFINT (hex_gui_tray_close), TYPE_BOOL}, {"gui_tray_close", P_OFFINT (hex_gui_tray_close), TYPE_BOOL},
{"gui_tray_minimize", P_OFFINT (hex_gui_tray_minimize), TYPE_BOOL}, {"gui_tray_minimize", P_OFFINT (hex_gui_tray_minimize), TYPE_BOOL},
{"gui_tray_quiet", P_OFFINT (hex_gui_tray_quiet), TYPE_BOOL}, {"gui_tray_quiet", P_OFFINT (hex_gui_tray_quiet), TYPE_BOOL},
@ -669,6 +670,7 @@ load_config (void)
prefs.hex_gui_tab_sort = 1; prefs.hex_gui_tab_sort = 1;
prefs.hex_gui_topicbar = 1; prefs.hex_gui_topicbar = 1;
prefs.hex_gui_tray = 1; prefs.hex_gui_tray = 1;
prefs.hex_gui_tray_blink = 1;
prefs.hex_gui_ulist_count = 1; prefs.hex_gui_ulist_count = 1;
prefs.hex_gui_ulist_icons = 1; prefs.hex_gui_ulist_icons = 1;
prefs.hex_gui_ulist_resizable = 1; prefs.hex_gui_ulist_resizable = 1;

View File

@ -153,6 +153,7 @@ struct hexchatprefs
unsigned int hex_gui_topicbar; unsigned int hex_gui_topicbar;
unsigned int hex_gui_tray; unsigned int hex_gui_tray;
unsigned int hex_gui_tray_away; unsigned int hex_gui_tray_away;
unsigned int hex_gui_tray_blink;
unsigned int hex_gui_tray_close; unsigned int hex_gui_tray_close;
unsigned int hex_gui_tray_minimize; unsigned int hex_gui_tray_minimize;
unsigned int hex_gui_tray_quiet; unsigned int hex_gui_tray_quiet;

View File

@ -301,7 +301,8 @@ tray_set_flash (TrayIcon icon)
tray_stop_flash (); tray_stop_flash ();
gtk_status_icon_set_from_pixbuf (sticon, icon); gtk_status_icon_set_from_pixbuf (sticon, icon);
flash_tag = g_timeout_add (TIMEOUT, (GSourceFunc) tray_timeout_cb, icon); if (prefs.hex_gui_tray_blink)
flash_tag = g_timeout_add (TIMEOUT, (GSourceFunc) tray_timeout_cb, icon);
} }
void void