summaryrefslogtreecommitdiffstats
path: root/src/sp-object.h
diff options
context:
space:
mode:
authorMarc Jeanmougin <mc@localhost.localdomain>2015-02-17 02:00:37 +0000
committerMarc Jeanmougin <mc@localhost.localdomain>2015-02-17 02:00:37 +0000
commita7f2b2ba3f13ceb60376802f4a31e104153839e8 (patch)
tree6db393e9e5a0a9ab7916a0e7ed29d875efa39ea1 /src/sp-object.h
parentdevice-manager: Get rid of GLists (diff)
downloadinkscape-a7f2b2ba3f13ceb60376802f4a31e104153839e8.tar.gz
inkscape-a7f2b2ba3f13ceb60376802f4a31e104153839e8.zip
At first, I was thinking "I just have to go to the selection file, and change that GSList* with a std::list, then resolve the few problems"
So, i tried that. And I will continue tomorrow, and the days after, on and on. (bzr r13922.1.1)
Diffstat (limited to 'src/sp-object.h')
-rw-r--r--src/sp-object.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/sp-object.h b/src/sp-object.h
index ff80eaefc..858587611 100644
--- a/src/sp-object.h
+++ b/src/sp-object.h
@@ -47,11 +47,14 @@ class SPObject;
#define SP_OBJECT_WRITE_ALL (1 << 2)
#define SP_OBJECT_WRITE_NO_CHILDREN (1 << 3)
+
+
#include <cassert>
#include <stddef.h>
#include <sigc++/connection.h>
#include <sigc++/functors/slot.h>
#include <sigc++/signal.h>
+#include <list>
#include "version.h"
#include "util/forward-pointer-iterator.h"
@@ -60,6 +63,11 @@ class SPCSSAttr;
class SPStyle;
typedef struct _GSList GSList;
+//should be in selection.h
+typedef std::list<SPObject*> SelContainer;
+
+
+
namespace Inkscape {
namespace XML {
class Node;
@@ -330,7 +338,7 @@ public:
* Retrieves the children as a GSList object, optionally ref'ing the children
* in the process, if add_ref is specified.
*/
- GSList *childList(bool add_ref, Action action = ActionGeneral);
+ SelContainer childList(bool add_ref, Action action = ActionGeneral);
/**
* Append repr as child of this object.