From fea144dd19be5a8af2ddb94c8eda1e323d3cb69c Mon Sep 17 00:00:00 2001 From: TingPing Date: Sun, 11 May 2014 04:43:01 -0400 Subject: [PATCH] Add option to bounce dock icon on OSX --- src/fe-gtk/maingui.c | 3 +++ src/fe-gtk/setup.c | 6 ++++++ 2 files changed, 9 insertions(+) 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