3 * Copyright (C) 2005 Imendio AB
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
21 #include "gdkprivate.h"
22 #include "gdkquartz.h"
24 GdkDisplay *_gdk_display = NULL;
25 GdkScreen *_gdk_screen = NULL;
26 GdkWindow *_gdk_root = NULL;
29 gdk_quartz_osx_version (void)
32 OSErr err = Gestalt (gestaltSystemVersionMinor, &minor);
33 g_return_val_if_fail (err == noErr, GDK_OSX_UNSUPPORTED);
35 if (minor < GDK_OSX_MIN)
36 return GDK_OSX_UNSUPPORTED;
37 else if (minor > GDK_OSX_CURRENT)