summaryrefslogtreecommitdiff
path: root/plugins/gtkui/hotkeys.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-08-27 22:11:51 +0200
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-08-28 18:18:29 +0200
commita2f8af08ce37b9c0f322a1c3cb596658b0593e7c (patch)
treeb15358683c48bda37d1dfbc0ec2bf9cada5c400e /plugins/gtkui/hotkeys.c
parent4457911ae7d38d7bef7abe11bc43d060ba4bf6a2 (diff)
osx support WIP
Diffstat (limited to 'plugins/gtkui/hotkeys.c')
-rw-r--r--plugins/gtkui/hotkeys.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/plugins/gtkui/hotkeys.c b/plugins/gtkui/hotkeys.c
index d3026b5d..7b3d1664 100644
--- a/plugins/gtkui/hotkeys.c
+++ b/plugins/gtkui/hotkeys.c
@@ -57,9 +57,19 @@ typedef struct
#include "interface.h"
#include "../libparser/parser.h"
#include "../hotkeys/hotkeys.h"
-#include <X11/Xlib.h> // only for the KeySym type
+//#include <X11/Xlib.h> // only for the KeySym type
#include "hotkeys.h"
+#ifndef strdupa
+# define strdupa(s) \
+ ({ \
+ const char *old = (s); \
+ size_t len = strlen (old) + 1; \
+ char *new = (char *) alloca (len); \
+ (char *) memcpy (new, old, len); \
+ })
+#endif
+
void
on_hotkeys_actions_cursor_changed (GtkTreeView *treeview,
gpointer user_data);
@@ -600,13 +610,13 @@ on_hotkey_is_global_toggled (GtkToggleButton *togglebutton,
typedef struct {
const char *name;
- KeySym keysym;
+ int keysym;
} xkey_t;
#define KEY(kname, kcode) { .name=kname, .keysym=kcode },
static const xkey_t keys[] = {
- #include "../hotkeys/keysyms.inc"
+// #include "../hotkeys/keysyms.inc"
};
static const char *