diff options
author | TingPing <tingping@tingping.se> | 2014-05-11 04:43:01 -0400 |
---|---|---|
committer | TingPing <tingping@tingping.se> | 2014-05-11 04:50:35 -0400 |
commit | fea144dd19be5a8af2ddb94c8eda1e323d3cb69c (patch) | |
tree | f5a7d546e4e058ab7f8f4e2cd6592ff7a2e778d2 | |
parent | fea528c39d3af1b8a877d9e0a9c9f927136944a9 (diff) |
Add option to bounce dock icon on OSX
-rw-r--r-- | src/fe-gtk/maingui.c | 3 | ||||
-rw-r--r-- | src/fe-gtk/setup.c | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/fe-gtk/maingui.c b/src/fe-gtk/maingui.c index 29980a70..2f624dd0 100644 --- a/src/fe-gtk/maingui.c +++ b/src/fe-gtk/maingui.c @@ -146,6 +146,9 @@ set_window_urgency (GtkWidget *win, gboolean set) static void flash_window (GtkWidget *win) { +#ifdef HAVE_GTK_MAC + gtkosx_application_attention_request (osx_app, INFO_REQUEST); +#endif set_window_urgency (win, TRUE); } diff --git a/src/fe-gtk/setup.c b/src/fe-gtk/setup.c index 8e9e4be0..ff0126e0 100644 --- a/src/fe-gtk/setup.c +++ b/src/fe-gtk/setup.c @@ -400,7 +400,13 @@ static const setting alert_settings[] = {ST_3OGGLE, N_("Show tray balloons on:"), 0, 0, (void *)balloonlist, 0}, #endif {ST_3OGGLE, N_("Blink tray icon on:"), 0, 0, (void *)trayblinklist, 0}, +#ifdef HAVE_GTK_MAC + {ST_3OGGLE, N_("Bounce dock icon on:"), 0, 0, (void *)taskbarlist, 0}, +#else +#ifndef __APPLE__ {ST_3OGGLE, N_("Blink task bar on:"), 0, 0, (void *)taskbarlist, 0}, +#endif +#endif #ifdef WIN32 {ST_3OGGLE, N_("Make a beep sound on:"), 0, N_("Play the \"Instant Message Notification\" system sound upon the selected events"), (void *)beeplist, 0}, #else |