summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
Diffstat (limited to 'openbox')
-rw-r--r--openbox/client_menu.c2
-rw-r--r--openbox/debug.c2
-rw-r--r--openbox/debug.h2
-rw-r--r--openbox/menu.c6
-rw-r--r--openbox/menu.h6
-rw-r--r--openbox/moveresize.c2
-rw-r--r--openbox/openbox.c2
-rw-r--r--openbox/openbox.h2
-rw-r--r--openbox/prop.c2
-rw-r--r--openbox/prop.h2
10 files changed, 14 insertions, 14 deletions
diff --git a/openbox/client_menu.c b/openbox/client_menu.c
index e9922bdd..7f188456 100644
--- a/openbox/client_menu.c
+++ b/openbox/client_menu.c
@@ -136,7 +136,7 @@ static void send_to_update(ObMenuFrame *frame, gpointer data)
return;
for (i = 0; i <= screen_num_desktops; ++i) {
- gchar *name;
+ const gchar *name;
guint desk;
if (i >= screen_num_desktops) {
diff --git a/openbox/debug.c b/openbox/debug.c
index 4152c15e..102c8891 100644
--- a/openbox/debug.c
+++ b/openbox/debug.c
@@ -28,7 +28,7 @@ void ob_debug_show_output(gboolean enable)
show = enable;
}
-void ob_debug(gchar *a, ...)
+void ob_debug(const gchar *a, ...)
{
va_list vl;
diff --git a/openbox/debug.h b/openbox/debug.h
index f7988c28..fea52c06 100644
--- a/openbox/debug.h
+++ b/openbox/debug.h
@@ -23,6 +23,6 @@
void ob_debug_show_output(gboolean enable);
-void ob_debug(gchar *a, ...);
+void ob_debug(const gchar *a, ...);
#endif
diff --git a/openbox/menu.c b/openbox/menu.c
index 868293c6..462b92fe 100644
--- a/openbox/menu.c
+++ b/openbox/menu.c
@@ -243,7 +243,7 @@ parse_menu_fail:
g_free(script);
}
-ObMenu* menu_new(gchar *name, gchar *title, gpointer data)
+ObMenu* menu_new(const gchar *name, const gchar *title, gpointer data)
{
ObMenu *self;
@@ -405,7 +405,7 @@ void menu_entry_remove(ObMenuEntry *self)
menu_entry_free(self);
}
-ObMenuEntry* menu_add_normal(ObMenu *self, gint id, gchar *label,
+ObMenuEntry* menu_add_normal(ObMenu *self, gint id, const gchar *label,
GSList *actions)
{
ObMenuEntry *e;
@@ -418,7 +418,7 @@ ObMenuEntry* menu_add_normal(ObMenu *self, gint id, gchar *label,
return e;
}
-ObMenuEntry* menu_add_submenu(ObMenu *self, gint id, gchar *submenu)
+ObMenuEntry* menu_add_submenu(ObMenu *self, gint id, const gchar *submenu)
{
ObMenuEntry *e;
diff --git a/openbox/menu.h b/openbox/menu.h
index 829c751a..f9daef10 100644
--- a/openbox/menu.h
+++ b/openbox/menu.h
@@ -120,7 +120,7 @@ struct _ObMenuEntry
void menu_startup(gboolean reconfig);
void menu_shutdown(gboolean reconfig);
-ObMenu* menu_new(gchar *name, gchar *title, gpointer data);
+ObMenu* menu_new(const gchar *name, const gchar *title, gpointer data);
void menu_free(ObMenu *menu);
/* Repopulate a pipe-menu by running its command */
@@ -133,9 +133,9 @@ void menu_set_execute_func(ObMenu *menu, ObMenuExecuteFunc func);
void menu_set_destroy_func(ObMenu *menu, ObMenuDestroyFunc func);
/* functions for building menus */
-ObMenuEntry* menu_add_normal(ObMenu *menu, gint id, gchar *label,
+ObMenuEntry* menu_add_normal(ObMenu *menu, gint id, const gchar *label,
GSList *actions);
-ObMenuEntry* menu_add_submenu(ObMenu *menu, gint id, gchar *submenu);
+ObMenuEntry* menu_add_submenu(ObMenu *menu, gint id, const gchar *submenu);
ObMenuEntry* menu_add_separator(ObMenu *menu, gint id);
void menu_clear_entries(ObMenu *menu);
diff --git a/openbox/moveresize.c b/openbox/moveresize.c
index 6a860c8e..d078f52a 100644
--- a/openbox/moveresize.c
+++ b/openbox/moveresize.c
@@ -73,7 +73,7 @@ void moveresize_shutdown(gboolean reconfig)
popup = NULL;
}
-static void popup_coords(ObClient *c, gchar *format, gint a, gint b)
+static void popup_coords(ObClient *c, const gchar *format, gint a, gint b)
{
gchar *text;
diff --git a/openbox/openbox.c b/openbox/openbox.c
index c355747f..4a15edd6 100644
--- a/openbox/openbox.c
+++ b/openbox/openbox.c
@@ -440,7 +440,7 @@ static void parse_args(gint argc, gchar **argv)
}
}
-void ob_exit_with_error(gchar *msg)
+void ob_exit_with_error(const gchar *msg)
{
g_critical(msg);
session_shutdown(TRUE);
diff --git a/openbox/openbox.h b/openbox/openbox.h
index 4d410201..4c018666 100644
--- a/openbox/openbox.h
+++ b/openbox/openbox.h
@@ -54,7 +54,7 @@ void ob_exit_replace();
void ob_reconfigure();
-void ob_exit_with_error(gchar *msg);
+void ob_exit_with_error(const gchar *msg);
Cursor ob_cursor(ObCursor cursor);
diff --git a/openbox/prop.c b/openbox/prop.c
index 91dca5cb..3b73b8f2 100644
--- a/openbox/prop.c
+++ b/openbox/prop.c
@@ -401,7 +401,7 @@ void prop_set_array32(Window win, Atom prop, Atom type, gulong *val,
(guchar*)val, num);
}
-void prop_set_string_utf8(Window win, Atom prop, gchar *val)
+void prop_set_string_utf8(Window win, Atom prop, const gchar *val)
{
XChangeProperty(ob_display, win, prop, prop_atoms.utf8, 8,
PropModeReplace, (guchar*)val, strlen(val));
diff --git a/openbox/prop.h b/openbox/prop.h
index 08aa83bb..18193663 100644
--- a/openbox/prop.h
+++ b/openbox/prop.h
@@ -186,7 +186,7 @@ gboolean prop_get_strings_utf8(Window win, Atom prop, gchar ***ret);
void prop_set32(Window win, Atom prop, Atom type, gulong val);
void prop_set_array32(Window win, Atom prop, Atom type, gulong *val,
guint num);
-void prop_set_string_utf8(Window win, Atom prop, gchar *val);
+void prop_set_string_utf8(Window win, Atom prop, const gchar *val);
void prop_set_strings_utf8(Window win, Atom prop, gchar **strs);
void prop_erase(Window win, Atom prop);