summaryrefslogtreecommitdiff
path: root/openbox/prop.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-04-08 07:31:26 +0000
committerDana Jansens <danakj@orodu.net>2003-04-08 07:31:26 +0000
commit71badb0790c8595a0ab6dedfbf8027c698369210 (patch)
tree2985012f6a12b5b0157541885d663c141b5bb0c7 /openbox/prop.c
parent672f1de2812adc49170414d7abbb2df7db69f34c (diff)
move config option loading for the kernel into config.c/h
add options for the number of desktops and the names of the desktops
Diffstat (limited to 'openbox/prop.c')
-rw-r--r--openbox/prop.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/openbox/prop.c b/openbox/prop.c
index 9a448500..97f5fb94 100644
--- a/openbox/prop.c
+++ b/openbox/prop.c
@@ -265,6 +265,20 @@ gboolean prop_get_strings(Window win, Atom prop, Atom type,
return FALSE;
}
+void prop_set_strings(Window win, Atom prop, Atom type, GPtrArray *data)
+{
+ GString *str;
+ guint i;
+
+ str = g_string_sized_new(0);
+ for (i = 0; i < data->len; ++i) {
+ str = g_string_append(str, data->pdata[i]);
+ str = g_string_append_c(str, '\0');
+ }
+ XChangeProperty(ob_display, win, prop, type, 8,
+ PropModeReplace, (guchar*)str->str, str->len);
+}
+
void prop_erase(Window win, Atom prop)
{
XDeleteProperty(ob_display, win, prop);