X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=gtk%2Fxoptions.c;h=c56ba907e674da3582bd7e714570e8f98ae8cebf;hb=5069483bf5f0fc22d9daf3a8a59d2e73251330cf;hp=0eb64ffe4fde01b3b46f14b9c73183b522addfc4;hpb=686059ae9cb5a33576ae0e91ddf88b14c90c9218;p=xboard.git diff --git a/gtk/xoptions.c b/gtk/xoptions.c index 0eb64ff..c56ba90 100644 --- a/gtk/xoptions.c +++ b/gtk/xoptions.c @@ -51,8 +51,8 @@ extern char *getenv(); #include #include #include -#ifdef OSX -# include "gtkmacintegration/gtkosxapplication.h" +#ifdef __APPLE__ +# include #endif #include "common.h" @@ -428,7 +428,7 @@ CreateMenuPopup (Option *opt, int n, int def) { char *msg = mb[i].string; if(!msg) break; -#ifdef OSX +#ifdef __APPLE__ if(!strcmp(msg, "Quit ")) continue; // Quit item will appear automatically in App menu if(!strcmp(msg, "About XBoard")) msg = "About"; // 'XBoard' will be appended automatically when moved to App menu 1st item #endif @@ -445,7 +445,7 @@ CreateMenuPopup (Option *opt, int n, int def) GdkModifierType accelerator_mods; gtk_accelerator_parse(mb[i].accel, &accelerator_key, &accelerator_mods); -#ifdef OSX +#ifdef __APPLE__ if(accelerator_mods & GDK_CONTROL_MASK) { // in OSX use Meta where Linux uses Ctrl accelerator_mods &= ~GDK_CONTROL_MASK; // clear Ctrl flag accelerator_mods |= GDK_META_MASK; // set Meta flag @@ -1493,7 +1493,7 @@ if(appData.debugMode) printf("n=%d, h=%d, w=%d\n",n,height,width); break; case BarEnd: top--; -#ifndef OSX +#ifndef __APPLE__ gtk_table_attach(GTK_TABLE(table), menuBar, left, left+r, top, top+1, GTK_FILL | GTK_EXPAND, GTK_FILL, 2, 1); if(option[i].target) ((ButtonCallback*)option[i].target)(boxStart); // callback that can make sizing decisions