fix constness
This commit is contained in:
parent
6653c9db22
commit
c22e6012d1
3 changed files with 6 additions and 6 deletions
|
@ -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);
|
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;
|
gint i, count;
|
||||||
gchar **lstrs;
|
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));
|
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;
|
GString *str;
|
||||||
gchar const **s;
|
gchar const **s;
|
||||||
|
|
|
@ -225,8 +225,8 @@ void obt_prop_set_array32(Window win, Atom prop, Atom type, gulong *val,
|
||||||
guint num);
|
guint num);
|
||||||
void obt_prop_set_string_locale(Window win, Atom prop, const gchar *val);
|
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_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_locale(Window win, Atom prop, const gchar **strs);
|
||||||
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);
|
||||||
|
|
||||||
void obt_prop_erase(Window win, Atom prop);
|
void obt_prop_erase(Window win, Atom prop);
|
||||||
|
|
||||||
|
|
|
@ -385,7 +385,7 @@ void screen_startup(gboolean reconfig)
|
||||||
|
|
||||||
/* set the root window property */
|
/* set the root window property */
|
||||||
OBT_PROP_SETSS(RootWindow(obt_display, ob_screen),
|
OBT_PROP_SETSS(RootWindow(obt_display, ob_screen),
|
||||||
NET_DESKTOP_NAMES, utf8, names);
|
NET_DESKTOP_NAMES, utf8, (const gchar**)names);
|
||||||
|
|
||||||
g_strfreev(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
|
/* if we changed any names, then set the root property so we can
|
||||||
all agree on the names */
|
all agree on the names */
|
||||||
OBT_PROP_SETSS(RootWindow(obt_display, ob_screen), NET_DESKTOP_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 */
|
/* resize the pager for these names */
|
||||||
|
|
Loading…
Reference in a new issue