Let OS X display dock icon
authorH.G.Muller <hgm@hgm-xboard.(none)>
Thu, 11 Sep 2014 17:17:55 +0000 (19:17 +0200)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Thu, 11 Sep 2014 17:17:55 +0000 (19:17 +0200)
gtk/xboard.c

index 2c51e01..532df06 100644 (file)
@@ -2030,7 +2030,11 @@ SetClockIcon (int color)
     GdkPixbuf *pm = *clockIcons[color];
     if (mainwindowIcon != pm) {
         mainwindowIcon = pm;
-       gtk_window_set_icon(GTK_WINDOW(shellWidget), mainwindowIcon);
+#ifdef __APPLE__
+        gtkosx_application_set_dock_icon_pixbuf(theApp, mainwindowIcon);
+#else
+        gtk_window_set_icon(GTK_WINDOW(shellWidget), mainwindowIcon);
+#endif
     }
 }