const
This commit is contained in:
parent
16f46c296d
commit
ebe3091560
6 changed files with 8 additions and 8 deletions
|
@ -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;
|
ObAction *a = NULL;
|
||||||
gboolean exist = FALSE;
|
gboolean exist = FALSE;
|
||||||
|
|
|
@ -164,7 +164,7 @@ struct _ObAction {
|
||||||
action_resize_relative_vert - 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,
|
ObAction *action_parse(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node,
|
||||||
ObUserAction uact);
|
ObUserAction uact);
|
||||||
void action_free(ObAction *a);
|
void action_free(ObAction *a);
|
||||||
|
|
|
@ -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))
|
if (!g_ascii_strcasecmp("Desktop", name))
|
||||||
return OB_FRAME_CONTEXT_DESKTOP;
|
return OB_FRAME_CONTEXT_DESKTOP;
|
||||||
|
|
|
@ -155,7 +155,7 @@ void frame_adjust_icon(ObFrame *self);
|
||||||
void frame_grab_client(ObFrame *self, struct _ObClient *client);
|
void frame_grab_client(ObFrame *self, struct _ObClient *client);
|
||||||
void frame_release_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);
|
ObFrameContext frame_context(struct _ObClient *self, Window win);
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,7 @@ static guint translate_modifier(char *str)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
gboolean translate_button(char *str, guint *state, guint *button)
|
gboolean translate_button(const gchar *str, guint *state, guint *button)
|
||||||
{
|
{
|
||||||
char **parsed;
|
char **parsed;
|
||||||
char *l;
|
char *l;
|
||||||
|
@ -82,7 +82,7 @@ translation_fail:
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
gboolean translate_key(char *str, guint *state, guint *keycode)
|
gboolean translate_key(const gchar *str, guint *state, guint *keycode)
|
||||||
{
|
{
|
||||||
char **parsed;
|
char **parsed;
|
||||||
char *l;
|
char *l;
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
|
|
||||||
gboolean translate_button(gchar *str, guint *state, guint *keycode);
|
gboolean translate_button(const gchar *str, guint *state, guint *keycode);
|
||||||
gboolean translate_key(gchar *str, guint *state, guint *keycode);
|
gboolean translate_key(const gchar *str, guint *state, guint *keycode);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue