summaryrefslogtreecommitdiff
path: root/plugins/gtkui/hotkeys.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-08-28 19:13:46 +0200
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-08-28 19:13:46 +0200
commit92882b86653d874778cd02cda72e9ed3b9df7f20 (patch)
treea9d6a3ba20685fdff10cf63daa2823c1f4fac722 /plugins/gtkui/hotkeys.c
parent70129c00acc1e768eea3b977cf4dc51b338aa5ec (diff)
ifdef the hotkey code on osx instead of just commenting it out
Diffstat (limited to 'plugins/gtkui/hotkeys.c')
-rw-r--r--plugins/gtkui/hotkeys.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/plugins/gtkui/hotkeys.c b/plugins/gtkui/hotkeys.c
index 7b3d1664..4b7ac034 100644
--- a/plugins/gtkui/hotkeys.c
+++ b/plugins/gtkui/hotkeys.c
@@ -57,7 +57,9 @@ typedef struct
#include "interface.h"
#include "../libparser/parser.h"
#include "../hotkeys/hotkeys.h"
-//#include <X11/Xlib.h> // only for the KeySym type
+#ifndef __APPLE__
+#include <X11/Xlib.h> // only for the KeySym type
+#endif
#include "hotkeys.h"
#ifndef strdupa
@@ -616,7 +618,11 @@ typedef struct {
#define KEY(kname, kcode) { .name=kname, .keysym=kcode },
static const xkey_t keys[] = {
-// #include "../hotkeys/keysyms.inc"
+#ifndef __APPLE__
+ #include "../hotkeys/keysyms.inc"
+#else
+ { .name=NULL, .keysym=0 }
+#endif
};
static const char *