Code

add SPCurve::get_segment_count
[inkscape.git] / src / jabber_whiteboard / inkboard-node.cpp
index 343b6c4c1216815fcdcd61851e726584bcd1a994..e6eee7304eab1739c682fecbca4286912eb5ac7f 100644 (file)
@@ -60,11 +60,12 @@ InkboardDocument::composeNewMessage(Inkscape::XML::Node *node)
 }
 
 void
-InkboardDocument::changeConfigureText(Glib::ustring target, unsigned int version,
-        Glib::ustring text)
+InkboardDocument::changeConfigureText(Glib::ustring target,
+                                      unsigned int /*version*/,
+                                      Glib::ustring text)
 {
     XML::Node *node = this->tracker->get(target);
-    unsigned int elementVersion = this->tracker->getVersion(node);
+    //unsigned int elementVersion = this->tracker->getVersion(node);
 
     if(node)// && version == (elementVersion + 1))
     {
@@ -75,11 +76,13 @@ InkboardDocument::changeConfigureText(Glib::ustring target, unsigned int version
 }
 
 void
-InkboardDocument::changeConfigure(Glib::ustring target, unsigned int version, 
-        Glib::ustring attribute, Glib::ustring value)
+InkboardDocument::changeConfigure(Glib::ustring target,
+                                  unsigned int /*version*/, 
+                                  Glib::ustring attribute,
+                                                                 Glib::ustring value)
 {
     XML::Node *node = this->tracker->get(target);
-    unsigned int elementVersion = this->tracker->getVersion(node);
+    //unsigned int elementVersion = this->tracker->getVersion(node);
 
     if(node)// && version == (elementVersion + 1))
     {
@@ -93,7 +96,7 @@ InkboardDocument::changeConfigure(Glib::ustring target, unsigned int version,
 
 void 
 InkboardDocument::changeNew(Glib::ustring parentid, Glib::ustring id, 
-        signed int index, Pedro::Element* data)
+        signed int /*index*/, Pedro::Element* data)
 {
 
     Glib::ustring name(data->getName());
@@ -101,7 +104,7 @@ InkboardDocument::changeNew(Glib::ustring parentid, Glib::ustring id,
     if(name == "text")
     { 
         XML::Node *parent = this->tracker->get(parentid);
-        XML::Node *node = new XML::TextNode(Util::share_string(data->getValue().c_str()));
+        XML::Node *node = new XML::TextNode(Util::share_string(data->getValue().c_str()), this);
 
         if(parent && node)
         {
@@ -110,7 +113,7 @@ InkboardDocument::changeNew(Glib::ustring parentid, Glib::ustring id,
         }
     }else
     {
-        XML::Node *node = new XML::ElementNode(g_quark_from_string(name.c_str()));
+        XML::Node *node = new XML::ElementNode(g_quark_from_string(name.c_str()), this);
         this->tracker->put(id,node);
 
         XML::Node *parent = (parentid != "ROOT")