-/* -*- indent-tabs-mode: t; tab-width: 4; c-basic-offset: 4; -*-
+/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*-
translate.c for the Openbox window manager
Copyright (c) 2003 Ben Jansens
#include <string.h>
#include <stdlib.h>
-static guint translate_modifier(char *str)
+static guint translate_modifier(gchar *str)
{
if (!g_ascii_strcasecmp("Mod1", str) ||
!g_ascii_strcasecmp("A", str)) return Mod1Mask;
return 0;
}
-gboolean translate_button(char *str, guint *state, guint *button)
+gboolean translate_button(const gchar *str, guint *state, guint *button)
{
- char **parsed;
- char *l;
- int i;
+ gchar **parsed;
+ gchar *l;
+ gint i;
gboolean ret = FALSE;
parsed = g_strsplit(str, "-", -1);
return ret;
}
-gboolean translate_key(char *str, guint *state, guint *keycode)
+gboolean translate_key(const gchar *str, guint *state, guint *keycode)
{
- char **parsed;
- char *l;
- int i;
+ gchar **parsed;
+ gchar *l;
+ gint i;
gboolean ret = FALSE;
KeySym sym;