summaryrefslogtreecommitdiffstats
path: root/src/fe-gtk/maingui.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fe-gtk/maingui.c')
-rw-r--r--src/fe-gtk/maingui.c30
1 files changed, 26 insertions, 4 deletions
diff --git a/src/fe-gtk/maingui.c b/src/fe-gtk/maingui.c
index efeaaaeb..4e5baaa0 100644
--- a/src/fe-gtk/maingui.c
+++ b/src/fe-gtk/maingui.c
@@ -53,6 +53,10 @@
#include "sexy-spell-entry.h"
#include "gtkutil.h"
+#ifdef G_OS_WIN32
+#include <windows.h>
+#endif
+
#define GUI_SPACING (3)
#define GUI_BORDER (0)
@@ -1516,14 +1520,32 @@ static void
mg_create_alertmenu (session *sess, GtkWidget *menu)
{
GtkWidget *submenu;
+ int hex_balloon, hex_beep, hex_tray, hex_flash;
+
+
+ switch (sess->type) {
+ case SESS_DIALOG:
+ hex_balloon = prefs.hex_input_balloon_priv;
+ hex_beep = prefs.hex_input_beep_priv;
+ hex_tray = prefs.hex_input_tray_priv;
+ hex_flash = prefs.hex_input_flash_priv;
+ break;
+ default:
+ hex_balloon = prefs.hex_input_balloon_chans;
+ hex_beep = prefs.hex_input_beep_chans;
+ hex_tray = prefs.hex_input_tray_chans;
+ hex_flash = prefs.hex_input_flash_chans;
+ }
+
+ submenu = menu_quick_sub(_("_Extra Alerts"), menu, NULL, XCMENU_MNEMONIC, -1);
- submenu = menu_quick_sub (_("_Extra Alerts"), menu, NULL, XCMENU_MNEMONIC, -1);
+ mg_perchan_menu_item(_("Show Notifications"), submenu, &sess->alert_balloon, hex_balloon);
- mg_perchan_menu_item (_("Beep on _Message"), submenu, &sess->alert_beep, prefs.hex_input_beep_chans);
+ mg_perchan_menu_item(_("Beep on _Message"), submenu, &sess->alert_beep, hex_beep);
- mg_perchan_menu_item (_("Blink Tray _Icon"), submenu, &sess->alert_tray, prefs.hex_input_tray_chans);
+ mg_perchan_menu_item(_("Blink Tray _Icon"), submenu, &sess->alert_tray, hex_tray);
- mg_perchan_menu_item (_("Blink Task _Bar"), submenu, &sess->alert_taskbar, prefs.hex_input_flash_chans);
+ mg_perchan_menu_item(_("Blink Task _Bar"), submenu, &sess->alert_taskbar, hex_flash);
}
static void