summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Yip <yipdw@alumni.rose-hulman.edu>2006-07-15 22:26:06 +0000
committerdwyip <dwyip@users.sourceforge.net>2006-07-15 22:26:06 +0000
commite86e927050f0ba1768d9cf44c8c8a04f9666d45c (patch)
tree175ab3d903b1734a374eb6b51522cb87751bd38b /src
parentuse atoi for char* -> int conversion (diff)
downloadinkscape-e86e927050f0ba1768d9cf44c8c8a04f9666d45c.tar.gz
inkscape-e86e927050f0ba1768d9cf44c8c8a04f9666d45c.zip
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)
Diffstat (limited to 'src')
-rw-r--r--src/inkscape.cpp8
-rw-r--r--src/inkscape.h3
2 files changed, 11 insertions, 0 deletions
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));
+ }
+}
+
/*
diff --git a/src/inkscape.h b/src/inkscape.h
index 4c6c1dbd0..12f101901 100644
--- a/src/inkscape.h
+++ b/src/inkscape.h
@@ -12,6 +12,7 @@
* Released under GNU GPL, read the file 'COPYING' for more information
*/
+#include <list>
#include <glib/gtypes.h>
struct SPDesktop;
@@ -54,8 +55,10 @@ bool inkscape_is_sole_desktop_for_document(SPDesktop const &desktop);
gchar *homedir_path(const char *filename);
gchar *profile_path(const char *filename);
+/* Inkscape desktop stuff */
void inkscape_switch_desktops_next ();
void inkscape_switch_desktops_prev ();
+void inkscape_get_all_desktops (std::list< SPDesktop* >& listbuf);
void inkscape_dialogs_hide ();
void inkscape_dialogs_unhide ();