summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2e8c1dd)
raw | patch | inline | side by side (parent: 2e8c1dd)
author | dwyip <dwyip@users.sourceforge.net> | |
Sat, 15 Jul 2006 22:26:06 +0000 (22:26 +0000) | ||
committer | dwyip <dwyip@users.sourceforge.net> | |
Sat, 15 Jul 2006 22:26:06 +0000 (22:26 +0000) |
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.
documents. His plan for implementing this is to provide a "share this document" menu.
src/inkscape.cpp | patch | blob | history | |
src/inkscape.h | patch | blob | history |
diff --git a/src/inkscape.cpp b/src/inkscape.cpp
index 6fe90a82e8dd113b708d60a8d9e782b31eff87b7..d3cc1aa0064a3e748d5b78f15da76a9102e9c6ca 100644 (file)
--- a/src/inkscape.cpp
+++ b/src/inkscape.cpp
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 4c6c1dbd04cd619f6e08fb2c4af53437912cd83c..12f101901873a7629d4303020f54a9e861e802ff 100644 (file)
--- a/src/inkscape.h
+++ b/src/inkscape.h
* Released under GNU GPL, read the file 'COPYING' for more information
*/
+#include <list>
#include <glib/gtypes.h>
struct SPDesktop;
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 ();