X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=gtk%2Fxboard.c;h=a7cbd455b2c42d9c9cdd92e49db1b7385814d525;hb=e5def9697edb19cb56e4ef3de341168c598e42bb;hp=5dcbaf3e1e1098e8526a30bf48a4cdcc8fda220a;hpb=e44956f15bba619f1c3ad8fa5927ae1862ef83c0;p=xboard.git diff --git a/gtk/xboard.c b/gtk/xboard.c index 5dcbaf3..a7cbd45 100644 --- a/gtk/xboard.c +++ b/gtk/xboard.c @@ -386,9 +386,10 @@ ParseFont (char *name, int number) // defer processing it until we know if it matches our board size if(!strstr(name, "-*-") && // ignore X-fonts size >= 0 && size 1 && argv[1][00] != '-'); // OSX sends signal even if name was already argv[1]! g_signal_connect(theApp, "NSApplicationOpenFile", G_CALLBACK(StartNewXBoard), NULL); // we must call application ready before we can get the signal, // and supply a (dummy) menu bar before that, to avoid problems with dual apples in it gtkosx_application_set_menu_bar(theApp, GTK_MENU_SHELL(gtk_menu_bar_new())); gtkosx_application_ready(theApp); - suppress = (argc == 1 || argc > 1 && argv[1][00] != '-'); // OSX sends signal even if name was already argv[1]! if(argc == 1) { // called without args: OSX open-file signal might follow static char *fakeArgv[3] = {NULL, clickedFile, NULL}; usleep(10000); // wait 10 msec (and hope this is long enough). @@ -1118,8 +1127,7 @@ main (int argc, char **argv) */ WhiteIcon = gdk_pixbuf_new_from_file(SVGDIR "/icon_white.svg", NULL); BlackIcon = gdk_pixbuf_new_from_file(SVGDIR "/icon_black.svg", NULL); - mainwindowIcon = WhiteIcon; - gtk_window_set_icon(GTK_WINDOW(shellWidget), mainwindowIcon); + SetClockIcon(0); // sets white icon /*