Skip to content

Commit

Permalink
quartz: add mountain lion as version 8 to enum GdkOSXVersion
Browse files Browse the repository at this point in the history
Also use GDK_OSX_UNSUPPORTED instead of 0 in gdk_quartz_osx_version().
(cherry picked from commit 9644e91)
  • Loading branch information
mitchfoo committed Nov 29, 2012
1 parent e2144fb commit 709f12b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gdk/quartz/gdkglobals-quartz.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ GdkWindow *_gdk_root = NULL;
GdkOSXVersion
gdk_quartz_osx_version (void)
{
static gint32 minor = 0;
static gint32 minor = GDK_OSX_UNSUPPORTED;

if (!minor)
if (minor == GDK_OSX_UNSUPPORTED)
{
OSErr err = Gestalt (gestaltSystemVersionMinor, (SInt32*)&minor);

Expand Down
3 changes: 2 additions & 1 deletion gdk/quartz/gdkquartz.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ typedef enum
GDK_OSX_LEOPARD = 5,
GDK_OSX_SNOW_LEOPARD = 6,
GDK_OSX_LION = 7,
GDK_OSX_CURRENT = 7,
GDK_OSX_MOUNTAIN_LION = 8,
GDK_OSX_CURRENT = 8,
GDK_OSX_NEW = 99
} GdkOSXVersion;

Expand Down

0 comments on commit 709f12b

Please sign in to comment.