all repos — openbox @ ebe3091560a859996a9904c342c62b512b39bee0

openbox fork - make it a bit more like ryudo

const
Dana Jansens danakj@orodu.net
commit

ebe3091560a859996a9904c342c62b512b39bee0

parent

16f46c296d1fcd3f27fc62a18e71c55fb3fd3e88

M openbox/action.copenbox/action.c

@@ -704,7 +704,7 @@ NULL

} }; -ObAction *action_from_string(char *name, ObUserAction uact) +ObAction *action_from_string(const gchar *name, ObUserAction uact) { ObAction *a = NULL; gboolean exist = FALSE;
M openbox/action.hopenbox/action.h

@@ -164,7 +164,7 @@ action_resize_relative_horz - the delta

action_resize_relative_vert - the delta */ -ObAction *action_from_string(char *name, ObUserAction uact); +ObAction *action_from_string(const gchar *name, ObUserAction uact); ObAction *action_parse(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node, ObUserAction uact); void action_free(ObAction *a);
M openbox/frame.copenbox/frame.c

@@ -646,7 +646,7 @@ }

} } -ObFrameContext frame_context_from_string(char *name) +ObFrameContext frame_context_from_string(const gchar *name) { if (!g_ascii_strcasecmp("Desktop", name)) return OB_FRAME_CONTEXT_DESKTOP;
M openbox/frame.hopenbox/frame.h

@@ -155,7 +155,7 @@ void frame_adjust_icon(ObFrame *self);

void frame_grab_client(ObFrame *self, struct _ObClient *client); void frame_release_client(ObFrame *self, struct _ObClient *client); -ObFrameContext frame_context_from_string(char *name); +ObFrameContext frame_context_from_string(const gchar *name); ObFrameContext frame_context(struct _ObClient *self, Window win);
M openbox/translate.copenbox/translate.c

@@ -39,7 +39,7 @@ g_warning("Invalid modifier '%s' in binding.", str);

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;

@@ -82,7 +82,7 @@ g_strfreev(parsed);

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;
M openbox/translate.hopenbox/translate.h

@@ -21,7 +21,7 @@ #define ob__translate_h

#include <glib.h> -gboolean translate_button(gchar *str, guint *state, guint *keycode); -gboolean translate_key(gchar *str, guint *state, guint *keycode); +gboolean translate_button(const gchar *str, guint *state, guint *keycode); +gboolean translate_key(const gchar *str, guint *state, guint *keycode); #endif