- if (!desktops)
- {
- dbind_connection_method_call (SPI_bus(), spi_bus_registry, spi_path_registry, spi_interface_registry, "getDesktopList", NULL, "=>ao", &desktops);
- if (!desktops) return 0;
- }
-
- list = g_new0 (Accessible *, desktops->len + 1);
-
- if (!desktop_list) return desktops->len;
- for (i = 0; i < desktops->len; i++)
- {
- list [i] = cspi_ref_accessible (spi_bus_registry, g_array_index (desktops, char *, i));
- }
- list [i] = NULL;
+ if (!desktop_list) return 1;
+ list [0] = cspi_ref_accessible (spi_bus_registry, NULL);