]> Dogcows Code - chaz/openbox/blobdiff - openbox/prop.c
menus works on some level. add a built-in root menu
[chaz/openbox] / openbox / prop.c
index a97b66dc3748fc5831790a6773bcb7397c722241..bce0426b0fe373bf3a06828bcf2649a94535d32f 100644 (file)
@@ -352,11 +352,11 @@ void prop_set_string_utf8(Window win, Atom prop, char *val)
 void prop_set_strings_utf8(Window win, Atom prop, char **strs)
 {
     GString *str;
-    guint i;
+    char **s;
 
     str = g_string_sized_new(0);
-    for (i = 0; strs[i]; ++i) {
-        str = g_string_append(str, strs[i]);
+    for (s = strs; *s; ++s) {
+        str = g_string_append(str, *s);
         str = g_string_append_c(str, '\0');
     }
     XChangeProperty(ob_display, win, prop, prop_atoms.utf8, 8,
This page took 0.022717 seconds and 4 git commands to generate.