From e86e927050f0ba1768d9cf44c8c8a04f9666d45c Mon Sep 17 00:00:00 2001 From: David Yip Date: Sat, 15 Jul 2006 22:26:06 +0000 Subject: added inkscape_get_all_desktops() after speaking with Dale about his plans for Inkboard UI Dale's interested in allowing users to share any document that they might have open, not just new, blank documents. His plan for implementing this is to provide a "share this document" menu. (bzr r1420) --- src/inkscape.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/inkscape.cpp') diff --git a/src/inkscape.cpp b/src/inkscape.cpp index 6fe90a82e..d3cc1aa00 100644 --- a/src/inkscape.cpp +++ b/src/inkscape.cpp @@ -1401,6 +1401,14 @@ inkscape_get_menus (Inkscape::Application * inkscape) return repr->firstChild(); } +void +inkscape_get_all_desktops(std::list< SPDesktop* >& listbuf) +{ + for(GSList* l = inkscape->desktops; l != NULL; l = l->next) { + listbuf.push_back(static_cast< SPDesktop* >(l->data)); + } +} + /* -- cgit v1.2.3