1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-11-26 11:12:19 -05:00

disable channel switcher's context menu item for tray alerts when xtray is loaded

This commit is contained in:
Berke Viktor 2011-08-09 21:04:11 +02:00
parent a1f4443d65
commit 6d1b99654c

View File

@ -1591,7 +1591,12 @@ mg_create_alertmenu (session *sess, GtkWidget *menu)
submenu = menu_quick_sub (_("_Extra Alerts"), menu, NULL, XCMENU_MNEMONIC, -1);
mg_perchan_menu_item (_("Beep on _Message"), submenu, &sess->alert_beep, prefs.input_beep_chans);
mg_perchan_menu_item (_("Blink Tray _Icon"), submenu, &sess->alert_tray, prefs.input_tray_chans);
if (!xtray_mode ()) /*disable this context menu item when xtray is loaded */
{
mg_perchan_menu_item (_("Blink Tray _Icon"), submenu, &sess->alert_tray, prefs.input_tray_chans);
}
mg_perchan_menu_item (_("Blink Task _Bar"), submenu, &sess->alert_taskbar, prefs.input_flash_chans);
}