From: Dana Jansens Date: Wed, 17 Sep 2003 08:01:37 +0000 (+0000) Subject: const X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=ebe3091560a859996a9904c342c62b512b39bee0;p=chaz%2Fopenbox const --- diff --git a/openbox/action.c b/openbox/action.c index fa6e3cc2..a395af2d 100644 --- a/openbox/action.c +++ b/openbox/action.c @@ -704,7 +704,7 @@ ActionString actionstrings[] = } }; -ObAction *action_from_string(char *name, ObUserAction uact) +ObAction *action_from_string(const gchar *name, ObUserAction uact) { ObAction *a = NULL; gboolean exist = FALSE; diff --git a/openbox/action.h b/openbox/action.h index bbd59804..68488731 100644 --- a/openbox/action.h +++ b/openbox/action.h @@ -164,7 +164,7 @@ struct _ObAction { 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); diff --git a/openbox/frame.c b/openbox/frame.c index fda6c86b..50534823 100644 --- a/openbox/frame.c +++ b/openbox/frame.c @@ -646,7 +646,7 @@ static void layout_title(ObFrame *self) } } -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; diff --git a/openbox/frame.h b/openbox/frame.h index f5dd5708..f77ff35a 100644 --- a/openbox/frame.h +++ b/openbox/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); diff --git a/openbox/translate.c b/openbox/translate.c index 9ae4f431..11a88f66 100644 --- a/openbox/translate.c +++ b/openbox/translate.c @@ -39,7 +39,7 @@ static guint translate_modifier(char *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 @@ translation_fail: 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; diff --git a/openbox/translate.h b/openbox/translate.h index 8c54d06a..6b46e98b 100644 --- a/openbox/translate.h +++ b/openbox/translate.h @@ -21,7 +21,7 @@ #include -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