- /* set the names */
- screen_desktop_names = g_new(char*,
- g_slist_length(config_desktops_names) + 1);
- for (i = 0, it = config_desktops_names; it; ++i, it = it->next)
- screen_desktop_names[i] = it->data; /* dont strdup */
- screen_desktop_names[i] = NULL;
+ desktop_cycle_popup = pager_popup_new(FALSE);
+ pager_popup_height(desktop_cycle_popup, POPUP_HEIGHT);
+
+#if 0
+ /* get the names */
+ if (PROP_GETSS(RootWindow(ob_display, ob_screen),
+ net_desktop_names, utf8, &screen_desktop_names))
+ for (i = 0; screen_desktop_names[i]; ++i);
+ else
+#endif
+ i = 0;
+ numnames = g_slist_length(config_desktops_names);
+ if (numnames > i) {
+ GSList *it;
+
+ screen_desktop_names = g_renew(gchar*,screen_desktop_names,numnames+1);
+ screen_desktop_names[numnames] = NULL;
+
+ for (it = g_slist_nth(config_desktops_names, i); it;
+ it = g_slist_next(it), ++i)
+ {
+ screen_desktop_names[i] = g_strdup(it->data);
+ }
+ }
+ /* then set the names */