summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-07-27 01:44:12 -0400
committerDana Jansens <danakj@orodu.net>2008-01-20 01:36:55 -0500
commitc22e6012d11e7316953c7a71222f11337d8c4868 (patch)
tree8d0f3391dd6c706ed717d9321b7316c3b351b39e
parent6653c9db22f47affbe5a189abcbde7786afe9413 (diff)
fix constness
-rw-r--r--obt/prop.c4
-rw-r--r--obt/prop.h4
-rw-r--r--openbox/screen.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/obt/prop.c b/obt/prop.c
index 0a9131ad..7beb9a91 100644
--- a/obt/prop.c
+++ b/obt/prop.c
@@ -414,7 +414,7 @@ void obt_prop_set_string_locale(Window win, Atom prop, const gchar *val)
obt_prop_set_strings_locale(win, prop, s);
}
-void obt_prop_set_strings_locale(Window win, Atom prop, gchar const **strs)
+void obt_prop_set_strings_locale(Window win, Atom prop, const gchar **strs)
{
gint i, count;
gchar **lstrs;
@@ -444,7 +444,7 @@ void obt_prop_set_string_utf8(Window win, Atom prop, const gchar *val)
PropModeReplace, (const guchar*)val, strlen(val));
}
-void obt_prop_set_strings_utf8(Window win, Atom prop, gchar const **strs)
+void obt_prop_set_strings_utf8(Window win, Atom prop, const gchar **strs)
{
GString *str;
gchar const **s;
diff --git a/obt/prop.h b/obt/prop.h
index 7dfa90f6..55a36793 100644
--- a/obt/prop.h
+++ b/obt/prop.h
@@ -225,8 +225,8 @@ void obt_prop_set_array32(Window win, Atom prop, Atom type, gulong *val,
guint num);
void obt_prop_set_string_locale(Window win, Atom prop, const gchar *val);
void obt_prop_set_string_utf8(Window win, Atom prop, const gchar *val);
-void obt_prop_set_strings_locale(Window win, Atom prop, gchar const **strs);
-void obt_prop_set_strings_utf8(Window win, Atom prop, gchar const **strs);
+void obt_prop_set_strings_locale(Window win, Atom prop, const gchar **strs);
+void obt_prop_set_strings_utf8(Window win, Atom prop, const gchar **strs);
void obt_prop_erase(Window win, Atom prop);
diff --git a/openbox/screen.c b/openbox/screen.c
index d8c22fd4..ef98446b 100644
--- a/openbox/screen.c
+++ b/openbox/screen.c
@@ -385,7 +385,7 @@ void screen_startup(gboolean reconfig)
/* set the root window property */
OBT_PROP_SETSS(RootWindow(obt_display, ob_screen),
- NET_DESKTOP_NAMES, utf8, names);
+ NET_DESKTOP_NAMES, utf8, (const gchar**)names);
g_strfreev(names);
}
@@ -1162,7 +1162,7 @@ void screen_update_desktop_names(void)
/* if we changed any names, then set the root property so we can
all agree on the names */
OBT_PROP_SETSS(RootWindow(obt_display, ob_screen), NET_DESKTOP_NAMES,
- utf8, screen_desktop_names);
+ utf8, (const gchar**)screen_desktop_names);
}
/* resize the pager for these names */