- GList *list = NULL;
- gchar *data_ptr, *ptr;
- data_ptr = server_get_property (server.root_win, server.atom._NET_DESKTOP_NAMES, server.atom.UTF8_STRING, &count);
- if (data_ptr) {
- list = g_list_append(list, g_strdup(data_ptr));
- for (j = 0; j < count-1; j++) {
- if (*(data_ptr + j) == '\0') {
- ptr = (gchar*)data_ptr + j + 1;
- list = g_list_append(list, g_strdup(ptr));
- }
- }
- XFree(data_ptr);
- }
-
- GList *l;