public static void SetWindowUrgencyHint(Gtk.Window window, bool setting) { window.UrgencyHint = setting; if (Common.OSName == "Darwin") { /* GTK doesn't currenly do anything with the * urgency hint under OSX, so we'll have to * do it ourself for now... */ Imendio.MacIntegration.Dock dock = Imendio.MacIntegration.Dock.Default; if (setting == true) { if (lastDockAttentionRequest != null) { dock.AttentionCancel(lastDockAttentionRequest); } lastDockAttentionRequest = dock.AttentionRequest(Imendio.MacIntegration.AttentionType.Critical); } else { if (lastDockAttentionRequest != null) { dock.AttentionCancel(lastDockAttentionRequest); lastDockAttentionRequest = null; } } } }
public static void SetWindowUrgencyHint(Gtk.Window window, bool setting) { window.UrgencyHint = setting; if (Common.OSName == "Darwin") { /* GTK doesn't currenly do anything with the * urgency hint under OSX, so we'll have to * do it ourself for now... */ Imendio.MacIntegration.Dock dock = Imendio.MacIntegration.Dock.Default; if (setting == true) { if (lastDockAttentionRequest != null) { dock.AttentionCancel(lastDockAttentionRequest); } lastDockAttentionRequest = dock.AttentionRequest(Imendio.MacIntegration.AttentionType.Critical); } else { if (lastDockAttentionRequest != null) { dock.AttentionCancel(lastDockAttentionRequest); lastDockAttentionRequest = null; } } } }