X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=gtk%2Fxboard.c;h=fa13d748d3f5d348952d208bdde8dccbd047f012;hb=5069483bf5f0fc22d9daf3a8a59d2e73251330cf;hp=16d7a9fb364438326938e58a76852c15b3bb2943;hpb=686059ae9cb5a33576ae0e91ddf88b14c90c9218;p=xboard.git diff --git a/gtk/xboard.c b/gtk/xboard.c index 16d7a9f..fa13d74 100644 --- a/gtk/xboard.c +++ b/gtk/xboard.c @@ -167,8 +167,8 @@ extern char *getenv(); #include "gettext.h" #include "draw.h" -#ifdef OSX -# include "gtkmacintegration/gtkosxapplication.h" +#ifdef __APPLE__ +# include // prevent pathname of positional file argument provided by OS X being be mistaken for option name // (price is that we won't recognize Windows option format anymore). # define SLASH '-' @@ -728,7 +728,7 @@ SlaveResize (Option *opt) gtk_window_resize(GTK_WINDOW(shells[DummyDlg]), slaveW + opt->max, slaveH + opt->value); } -#ifdef OSX +#ifdef __APPLE__ static char clickedFile[MSG_SIZ]; static int suppress; @@ -772,7 +772,7 @@ main (int argc, char **argv) /* set up GTK */ gtk_init (&argc, &argv); -#ifdef OSX +#ifdef __APPLE__ { // prepare to catch OX OpenFile signal, which will tell us the clicked file GtkosxApplication *theApp = g_object_new(GTKOSX_TYPE_APPLICATION, NULL); dataDir = gtkosx_application_get_bundle_path(); @@ -1785,7 +1785,7 @@ TempForwardProc (Widget w, XEvent *event, String *prms, Cardinal *nprms) void ManProc () { // called from menu -#ifdef OSX +#ifdef __APPLE__ system("%s ./man.command", appData.sysOpen); #else system("xterm -e man xboard &");