[gtk-mac-integration] Prevent "doesn't implement NSApplicationDelegate" error
- From: John Ralls <jralls src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-mac-integration] Prevent "doesn't implement NSApplicationDelegate" error
- Date: Fri, 27 Sep 2013 17:08:55 +0000 (UTC)
commit 37a852198290d96a54333781e235dccf7db8d24b
Author: John Ralls <jralls ceridwen us>
Date: Thu Sep 26 13:44:46 2013 -0700
Prevent "doesn't implement NSApplicationDelegate" error
When building with OSX 10.6 and later.
src/GNSMenuDelegate.h | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/GNSMenuDelegate.h b/src/GNSMenuDelegate.h
index 08b074f..28f3cd4 100644
--- a/src/GNSMenuDelegate.h
+++ b/src/GNSMenuDelegate.h
@@ -1,5 +1,9 @@
#import <Cocoa/Cocoa.h>
#include <gtk/gtk.h>
+#if (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_6)
+ interface _GNSMenuDelegate : NSObject <NSMenuDelegate> {}
+#else
@interface _GNSMenuDelegate : NSObject {}
+#endif
@end
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]