summaryrefslogtreecommitdiffstats
path: root/src/ui/widget
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2009-08-06 14:17:17 +0000
committercilix42 <cilix42@users.sourceforge.net>2009-08-06 14:17:17 +0000
commit51c2905fd3e99955db2d823b79abb763d8097028 (patch)
tree90128509479f5498e1125d1e4eb9cdc05bf6b6e6 /src/ui/widget
parentAdding one more control to Smart Jelly (diff)
downloadinkscape-51c2905fd3e99955db2d823b79abb763d8097028.tar.gz
inkscape-51c2905fd3e99955db2d823b79abb763d8097028.zip
Revert recent refactoring changes by johnce because they break the build, which cannot be fixed easily.
(bzr r8422)
Diffstat (limited to 'src/ui/widget')
-rw-r--r--src/ui/widget/entity-entry.cpp8
-rw-r--r--src/ui/widget/entity-entry.h8
-rw-r--r--src/ui/widget/imageicon.cpp8
-rw-r--r--src/ui/widget/imageicon.h6
-rw-r--r--src/ui/widget/layer-selector.h2
-rw-r--r--src/ui/widget/licensor.cpp2
-rw-r--r--src/ui/widget/licensor.h4
-rw-r--r--src/ui/widget/object-composite-settings.cpp2
-rw-r--r--src/ui/widget/page-sizer.cpp2
-rw-r--r--src/ui/widget/panel.cpp2
-rw-r--r--src/ui/widget/panel.h4
-rw-r--r--src/ui/widget/registered-enums.h2
-rw-r--r--src/ui/widget/registered-widget.cpp24
-rw-r--r--src/ui/widget/registered-widget.h30
-rw-r--r--src/ui/widget/tolerance-slider.cpp2
15 files changed, 53 insertions, 53 deletions
diff --git a/src/ui/widget/entity-entry.cpp b/src/ui/widget/entity-entry.cpp
index f42b29760..e9f09f574 100644
--- a/src/ui/widget/entity-entry.cpp
+++ b/src/ui/widget/entity-entry.cpp
@@ -81,7 +81,7 @@ EntityLineEntry::~EntityLineEntry()
}
void
-EntityLineEntry::update (Document *doc)
+EntityLineEntry::update (SPDocument *doc)
{
const char *text = rdf_get_work_entity (doc, _entity);
static_cast<Gtk::Entry*>(_packable)->set_text (text ? text : "");
@@ -93,7 +93,7 @@ EntityLineEntry::on_changed()
if (_wr->isUpdating()) return;
_wr->setUpdating (true);
- Document *doc = SP_ACTIVE_DOCUMENT;
+ SPDocument *doc = SP_ACTIVE_DOCUMENT;
Glib::ustring text = static_cast<Gtk::Entry*>(_packable)->get_text();
if (rdf_set_work_entity (doc, _entity, text.c_str()))
sp_document_done (doc, SP_VERB_NONE,
@@ -122,7 +122,7 @@ EntityMultiLineEntry::~EntityMultiLineEntry()
}
void
-EntityMultiLineEntry::update (Document *doc)
+EntityMultiLineEntry::update (SPDocument *doc)
{
const char *text = rdf_get_work_entity (doc, _entity);
Gtk::ScrolledWindow *s = static_cast<Gtk::ScrolledWindow*>(_packable);
@@ -136,7 +136,7 @@ EntityMultiLineEntry::on_changed()
if (_wr->isUpdating()) return;
_wr->setUpdating (true);
- Document *doc = SP_ACTIVE_DOCUMENT;
+ SPDocument *doc = SP_ACTIVE_DOCUMENT;
Gtk::ScrolledWindow *s = static_cast<Gtk::ScrolledWindow*>(_packable);
Gtk::TextView *tv = static_cast<Gtk::TextView*>(s->get_child());
Glib::ustring text = tv->get_buffer()->get_text();
diff --git a/src/ui/widget/entity-entry.h b/src/ui/widget/entity-entry.h
index d080787c1..5bdee9a90 100644
--- a/src/ui/widget/entity-entry.h
+++ b/src/ui/widget/entity-entry.h
@@ -16,7 +16,7 @@
#include <gtkmm/tooltips.h>
struct rdf_work_entity_t;
-class Document;
+class SPDocument;
namespace Gtk {
class TextBuffer;
@@ -32,7 +32,7 @@ class EntityEntry {
public:
static EntityEntry* create (rdf_work_entity_t* ent, Gtk::Tooltips& tt, Registry& wr);
virtual ~EntityEntry() = 0;
- virtual void update (Document *doc) = 0;
+ virtual void update (SPDocument *doc) = 0;
virtual void on_changed() = 0;
Gtk::Label _label;
Gtk::Widget *_packable;
@@ -49,7 +49,7 @@ class EntityLineEntry : public EntityEntry {
public:
EntityLineEntry (rdf_work_entity_t* ent, Gtk::Tooltips& tt, Registry& wr);
~EntityLineEntry();
- void update (Document *doc);
+ void update (SPDocument *doc);
protected:
virtual void on_changed();
@@ -59,7 +59,7 @@ class EntityMultiLineEntry : public EntityEntry {
public:
EntityMultiLineEntry (rdf_work_entity_t* ent, Gtk::Tooltips& tt, Registry& wr);
~EntityMultiLineEntry();
- void update (Document *doc);
+ void update (SPDocument *doc);
protected:
virtual void on_changed();
diff --git a/src/ui/widget/imageicon.cpp b/src/ui/widget/imageicon.cpp
index ead32b4b7..6a817e30d 100644
--- a/src/ui/widget/imageicon.cpp
+++ b/src/ui/widget/imageicon.cpp
@@ -94,13 +94,13 @@ void ImageIcon::init()
}
-bool ImageIcon::showSvgDocument(const Document *docArg)
+bool ImageIcon::showSvgDocument(const SPDocument *docArg)
{
if (document)
sp_document_unref(document);
- Document *doc = (Document *)docArg;
+ SPDocument *doc = (SPDocument *)docArg;
sp_document_ref(doc);
document = doc;
@@ -127,7 +127,7 @@ bool ImageIcon::showSvgFile(const Glib::ustring &theFileName)
fileName = Glib::filename_to_utf8(fileName);
- Document *doc = sp_document_new (fileName.c_str(), 0);
+ SPDocument *doc = sp_document_new (fileName.c_str(), 0);
if (!doc) {
g_warning("SVGView: error loading document '%s'\n", fileName.c_str());
return false;
@@ -148,7 +148,7 @@ bool ImageIcon::showSvgFromMemory(const char *xmlBuffer)
return false;
gint len = (gint)strlen(xmlBuffer);
- Document *doc = sp_document_new_from_mem(xmlBuffer, len, 0);
+ SPDocument *doc = sp_document_new_from_mem(xmlBuffer, len, 0);
if (!doc) {
g_warning("SVGView: error loading buffer '%s'\n",xmlBuffer);
return false;
diff --git a/src/ui/widget/imageicon.h b/src/ui/widget/imageicon.h
index 3819a3c77..803b2f53f 100644
--- a/src/ui/widget/imageicon.h
+++ b/src/ui/widget/imageicon.h
@@ -16,7 +16,7 @@
#include <gtkmm/box.h>
-class Document;
+class SPDocument;
namespace Inkscape
{
@@ -62,7 +62,7 @@ public:
/**
*
*/
- bool showSvgDocument(const Document *doc);
+ bool showSvgDocument(const SPDocument *doc);
/**
*
@@ -99,7 +99,7 @@ private:
/**
* The svg document we are currently showing
*/
- Document *document;
+ SPDocument *document;
/**
* The sp_svg_view widget
diff --git a/src/ui/widget/layer-selector.h b/src/ui/widget/layer-selector.h
index d9ef558a5..0b5300272 100644
--- a/src/ui/widget/layer-selector.h
+++ b/src/ui/widget/layer-selector.h
@@ -23,7 +23,7 @@
#include "util/list.h"
class SPDesktop;
-class Document;
+class SPDocument;
class SPObject;
namespace Inkscape {
namespace XML {
diff --git a/src/ui/widget/licensor.cpp b/src/ui/widget/licensor.cpp
index 778fbc6cc..a5f1d89be 100644
--- a/src/ui/widget/licensor.cpp
+++ b/src/ui/widget/licensor.cpp
@@ -119,7 +119,7 @@ Licensor::init (Gtk::Tooltips& tt, Registry& wr)
}
void
-Licensor::update (Document *doc)
+Licensor::update (SPDocument *doc)
{
/* identify the license info */
struct rdf_license_t * license = rdf_get_license (doc);
diff --git a/src/ui/widget/licensor.h b/src/ui/widget/licensor.h
index 6738c48df..9f41a6d0d 100644
--- a/src/ui/widget/licensor.h
+++ b/src/ui/widget/licensor.h
@@ -15,7 +15,7 @@
#include <gtkmm/box.h>
-class Document;
+class SPDocument;
namespace Gtk {
class Tooltips;
@@ -34,7 +34,7 @@ public:
Licensor();
virtual ~Licensor();
void init (Gtk::Tooltips&, Registry&);
- void update (Document *doc);
+ void update (SPDocument *doc);
protected:
EntityEntry *_eentry;
diff --git a/src/ui/widget/object-composite-settings.cpp b/src/ui/widget/object-composite-settings.cpp
index 1b4251143..bfc291bc0 100644
--- a/src/ui/widget/object-composite-settings.cpp
+++ b/src/ui/widget/object-composite-settings.cpp
@@ -117,7 +117,7 @@ ObjectCompositeSettings::_blendBlurValueChanged()
if (!desktop) {
return;
}
- Document *document = sp_desktop_document (desktop);
+ SPDocument *document = sp_desktop_document (desktop);
if (_blocked)
return;
diff --git a/src/ui/widget/page-sizer.cpp b/src/ui/widget/page-sizer.cpp
index 429442779..02688a55e 100644
--- a/src/ui/widget/page-sizer.cpp
+++ b/src/ui/widget/page-sizer.cpp
@@ -346,7 +346,7 @@ PageSizer::setDim (double w, double h, bool changeList)
_changedh_connection.block();
if (SP_ACTIVE_DESKTOP && !_widgetRegistry->isUpdating()) {
- Document *doc = sp_desktop_document(SP_ACTIVE_DESKTOP);
+ SPDocument *doc = sp_desktop_document(SP_ACTIVE_DESKTOP);
double const old_height = sp_document_height(doc);
sp_document_set_width (doc, w, &_px_unit);
sp_document_set_height (doc, h, &_px_unit);
diff --git a/src/ui/widget/panel.cpp b/src/ui/widget/panel.cpp
index c2fafa001..93a950d1a 100644
--- a/src/ui/widget/panel.cpp
+++ b/src/ui/widget/panel.cpp
@@ -566,7 +566,7 @@ Panel::setResponseSensitive(int response_id, bool setting)
_response_map[response_id]->set_sensitive(setting);
}
-sigc::signal<void, SPDesktop *, Document *> &
+sigc::signal<void, SPDesktop *, SPDocument *> &
Panel::signalDocumentReplaced()
{
return _signal_document_replaced;
diff --git a/src/ui/widget/panel.h b/src/ui/widget/panel.h
index 36f5ea804..d42548f16 100644
--- a/src/ui/widget/panel.h
+++ b/src/ui/widget/panel.h
@@ -71,7 +71,7 @@ public:
void setDefaultResponse(int response_id);
void setResponseSensitive(int response_id, bool setting);
- virtual sigc::signal<void, SPDesktop *, Document *> &signalDocumentReplaced();
+ virtual sigc::signal<void, SPDesktop *, SPDocument *> &signalDocumentReplaced();
virtual sigc::signal<void, Inkscape::Application *, SPDesktop *> &signalActivateDesktop();
virtual sigc::signal<void, Inkscape::Application *, SPDesktop *> &signalDeactiveDesktop();
@@ -100,7 +100,7 @@ protected:
/** Signals */
sigc::signal<void, int> _signal_response;
sigc::signal<void> _signal_present;
- sigc::signal<void, SPDesktop *, Document *> _signal_document_replaced;
+ sigc::signal<void, SPDesktop *, SPDocument *> _signal_document_replaced;
sigc::signal<void, Inkscape::Application *, SPDesktop *> _signal_activate_desktop;
sigc::signal<void, Inkscape::Application *, SPDesktop *> _signal_deactive_desktop;
diff --git a/src/ui/widget/registered-enums.h b/src/ui/widget/registered-enums.h
index f9195d1f2..739745817 100644
--- a/src/ui/widget/registered-enums.h
+++ b/src/ui/widget/registered-enums.h
@@ -32,7 +32,7 @@ public:
const Util::EnumDataConverter<E>& c,
Registry& wr,
Inkscape::XML::Node* repr_in = NULL,
- Document *doc_in = NULL )
+ SPDocument *doc_in = NULL )
: RegisteredWidget< LabelledComboBoxEnum<E> >(label, tip, c)
{
RegisteredWidget< LabelledComboBoxEnum<E> >::init_parent(key, wr, repr_in, doc_in);
diff --git a/src/ui/widget/registered-widget.cpp b/src/ui/widget/registered-widget.cpp
index 5780f74ed..95ddec286 100644
--- a/src/ui/widget/registered-widget.cpp
+++ b/src/ui/widget/registered-widget.cpp
@@ -50,7 +50,7 @@ RegisteredCheckButton::~RegisteredCheckButton()
_toggled_connection.disconnect();
}
-RegisteredCheckButton::RegisteredCheckButton (const Glib::ustring& label, const Glib::ustring& tip, const Glib::ustring& key, Registry& wr, bool right, Inkscape::XML::Node* repr_in, Document *doc_in)
+RegisteredCheckButton::RegisteredCheckButton (const Glib::ustring& label, const Glib::ustring& tip, const Glib::ustring& key, Registry& wr, bool right, Inkscape::XML::Node* repr_in, SPDocument *doc_in)
: RegisteredWidget<Gtk::CheckButton>()
{
init_parent(key, wr, repr_in, doc_in);
@@ -108,7 +108,7 @@ RegisteredUnitMenu::~RegisteredUnitMenu()
_changed_connection.disconnect();
}
-RegisteredUnitMenu::RegisteredUnitMenu (const Glib::ustring& label, const Glib::ustring& key, Registry& wr, Inkscape::XML::Node* repr_in, Document *doc_in)
+RegisteredUnitMenu::RegisteredUnitMenu (const Glib::ustring& label, const Glib::ustring& key, Registry& wr, Inkscape::XML::Node* repr_in, SPDocument *doc_in)
: RegisteredWidget<Labelled> (label, "" /*tooltip*/, new UnitMenu())
{
init_parent(key, wr, repr_in, doc_in);
@@ -149,7 +149,7 @@ RegisteredScalarUnit::~RegisteredScalarUnit()
_value_changed_connection.disconnect();
}
-RegisteredScalarUnit::RegisteredScalarUnit (const Glib::ustring& label, const Glib::ustring& tip, const Glib::ustring& key, const RegisteredUnitMenu &rum, Registry& wr, Inkscape::XML::Node* repr_in, Document *doc_in)
+RegisteredScalarUnit::RegisteredScalarUnit (const Glib::ustring& label, const Glib::ustring& tip, const Glib::ustring& key, const RegisteredUnitMenu &rum, Registry& wr, Inkscape::XML::Node* repr_in, SPDocument *doc_in)
: RegisteredWidget<ScalarUnit>(label, tip, UNIT_TYPE_LINEAR, "", "", rum.getUnitMenu()),
_um(0)
{
@@ -200,7 +200,7 @@ RegisteredScalar::~RegisteredScalar()
RegisteredScalar::RegisteredScalar ( const Glib::ustring& label, const Glib::ustring& tip,
const Glib::ustring& key, Registry& wr, Inkscape::XML::Node* repr_in,
- Document * doc_in )
+ SPDocument * doc_in )
: RegisteredWidget<Scalar>(label, tip)
{
init_parent(key, wr, repr_in, doc_in);
@@ -248,7 +248,7 @@ RegisteredText::~RegisteredText()
RegisteredText::RegisteredText ( const Glib::ustring& label, const Glib::ustring& tip,
const Glib::ustring& key, Registry& wr, Inkscape::XML::Node* repr_in,
- Document * doc_in )
+ SPDocument * doc_in )
: RegisteredWidget<Text>(label, tip)
{
init_parent(key, wr, repr_in, doc_in);
@@ -296,7 +296,7 @@ RegisteredColorPicker::RegisteredColorPicker(const Glib::ustring& label,
const Glib::ustring& akey,
Registry& wr,
Inkscape::XML::Node* repr_in,
- Document *doc_in)
+ SPDocument *doc_in)
: RegisteredWidget<ColorPicker> (title, tip, 0, true)
{
init_parent("", wr, repr_in, doc_in);
@@ -337,7 +337,7 @@ RegisteredColorPicker::on_changed (guint32 rgba)
// Use local repr here. When repr is specified, use that one, but
// if repr==NULL, get the repr of namedview of active desktop.
Inkscape::XML::Node *local_repr = repr;
- Document *local_doc = doc;
+ SPDocument *local_doc = doc;
if (!local_repr) {
// no repr specified, use active desktop's namedview's repr
SPDesktop *dt = SP_ACTIVE_DESKTOP;
@@ -372,7 +372,7 @@ RegisteredSuffixedInteger::~RegisteredSuffixedInteger()
_changed_connection.disconnect();
}
-RegisteredSuffixedInteger::RegisteredSuffixedInteger (const Glib::ustring& label, const Glib::ustring& tip, const Glib::ustring& suffix, const Glib::ustring& key, Registry& wr, Inkscape::XML::Node* repr_in, Document *doc_in)
+RegisteredSuffixedInteger::RegisteredSuffixedInteger (const Glib::ustring& label, const Glib::ustring& tip, const Glib::ustring& suffix, const Glib::ustring& key, Registry& wr, Inkscape::XML::Node* repr_in, SPDocument *doc_in)
: RegisteredWidget<Scalar>(label, tip, 0, suffix),
setProgrammatically(false)
{
@@ -419,7 +419,7 @@ RegisteredRadioButtonPair::~RegisteredRadioButtonPair()
RegisteredRadioButtonPair::RegisteredRadioButtonPair (const Glib::ustring& label,
const Glib::ustring& label1, const Glib::ustring& label2,
const Glib::ustring& tip1, const Glib::ustring& tip2,
- const Glib::ustring& key, Registry& wr, Inkscape::XML::Node* repr_in, Document *doc_in)
+ const Glib::ustring& key, Registry& wr, Inkscape::XML::Node* repr_in, SPDocument *doc_in)
: RegisteredWidget<Gtk::HBox>(),
_rb1(NULL),
_rb2(NULL)
@@ -486,7 +486,7 @@ RegisteredPoint::~RegisteredPoint()
RegisteredPoint::RegisteredPoint ( const Glib::ustring& label, const Glib::ustring& tip,
const Glib::ustring& key, Registry& wr, Inkscape::XML::Node* repr_in,
- Document* doc_in )
+ SPDocument* doc_in )
: RegisteredWidget<Point> (label, tip)
{
init_parent(key, wr, repr_in, doc_in);
@@ -531,7 +531,7 @@ RegisteredTransformedPoint::~RegisteredTransformedPoint()
RegisteredTransformedPoint::RegisteredTransformedPoint ( const Glib::ustring& label, const Glib::ustring& tip,
const Glib::ustring& key, Registry& wr, Inkscape::XML::Node* repr_in,
- Document* doc_in )
+ SPDocument* doc_in )
: RegisteredWidget<Point> (label, tip),
to_svg(Geom::identity())
{
@@ -598,7 +598,7 @@ RegisteredRandom::~RegisteredRandom()
RegisteredRandom::RegisteredRandom ( const Glib::ustring& label, const Glib::ustring& tip,
const Glib::ustring& key, Registry& wr, Inkscape::XML::Node* repr_in,
- Document * doc_in )
+ SPDocument * doc_in )
: RegisteredWidget<Random> (label, tip)
{
init_parent(key, wr, repr_in, doc_in);
diff --git a/src/ui/widget/registered-widget.h b/src/ui/widget/registered-widget.h
index 32d6c93fa..a5c61f68a 100644
--- a/src/ui/widget/registered-widget.h
+++ b/src/ui/widget/registered-widget.h
@@ -35,7 +35,7 @@
#include "sp-namedview.h"
class SPUnit;
-class Document;
+class SPDocument;
namespace Gtk {
class HScale;
@@ -81,7 +81,7 @@ protected:
virtual ~RegisteredWidget() {};
- void init_parent(const Glib::ustring& key, Registry& wr, Inkscape::XML::Node* repr_in, Document *doc_in)
+ void init_parent(const Glib::ustring& key, Registry& wr, Inkscape::XML::Node* repr_in, SPDocument *doc_in)
{
_wr = &wr;
_key = key;
@@ -96,7 +96,7 @@ protected:
// Use local repr here. When repr is specified, use that one, but
// if repr==NULL, get the repr of namedview of active desktop.
Inkscape::XML::Node *local_repr = repr;
- Document *local_doc = doc;
+ SPDocument *local_doc = doc;
if (!local_repr) {
// no repr specified, use active desktop's namedview's repr
SPDesktop* dt = SP_ACTIVE_DESKTOP;
@@ -120,7 +120,7 @@ protected:
Registry * _wr;
Glib::ustring _key;
Inkscape::XML::Node * repr;
- Document * doc;
+ SPDocument * doc;
unsigned int event_type;
Glib::ustring event_description;
bool write_undo;
@@ -139,7 +139,7 @@ private:
class RegisteredCheckButton : public RegisteredWidget<Gtk::CheckButton> {
public:
virtual ~RegisteredCheckButton();
- RegisteredCheckButton (const Glib::ustring& label, const Glib::ustring& tip, const Glib::ustring& key, Registry& wr, bool right=true, Inkscape::XML::Node* repr_in=NULL, Document *doc_in=NULL);
+ RegisteredCheckButton (const Glib::ustring& label, const Glib::ustring& tip, const Glib::ustring& key, Registry& wr, bool right=true, Inkscape::XML::Node* repr_in=NULL, SPDocument *doc_in=NULL);
void setActive (bool);
@@ -168,7 +168,7 @@ public:
const Glib::ustring& key,
Registry& wr,
Inkscape::XML::Node* repr_in = NULL,
- Document *doc_in = NULL );
+ SPDocument *doc_in = NULL );
void setUnit (const SPUnit*);
Unit getUnit() const { return static_cast<UnitMenu*>(_widget)->getUnit(); };
@@ -188,7 +188,7 @@ public:
const RegisteredUnitMenu &rum,
Registry& wr,
Inkscape::XML::Node* repr_in = NULL,
- Document *doc_in = NULL );
+ SPDocument *doc_in = NULL );
protected:
sigc::connection _value_changed_connection;
@@ -204,7 +204,7 @@ public:
const Glib::ustring& key,
Registry& wr,
Inkscape::XML::Node* repr_in = NULL,
- Document *doc_in = NULL );
+ SPDocument *doc_in = NULL );
protected:
sigc::connection _value_changed_connection;
@@ -219,7 +219,7 @@ public:
const Glib::ustring& key,
Registry& wr,
Inkscape::XML::Node* repr_in = NULL,
- Document *doc_in = NULL );
+ SPDocument *doc_in = NULL );
protected:
sigc::connection _activate_connection;
@@ -237,7 +237,7 @@ public:
const Glib::ustring& akey,
Registry& wr,
Inkscape::XML::Node* repr_in = NULL,
- Document *doc_in = NULL);
+ SPDocument *doc_in = NULL);
void setRgba32 (guint32);
void closeWindow();
@@ -259,7 +259,7 @@ public:
const Glib::ustring& key,
Registry& wr,
Inkscape::XML::Node* repr_in = NULL,
- Document *doc_in = NULL );
+ SPDocument *doc_in = NULL );
bool setProgrammatically; // true if the value was set by setValue, not changed by the user;
// if a callback checks it, it must reset it back to false
@@ -280,7 +280,7 @@ public:
const Glib::ustring& key,
Registry& wr,
Inkscape::XML::Node* repr_in = NULL,
- Document *doc_in = NULL );
+ SPDocument *doc_in = NULL );
void setValue (bool second);
@@ -301,7 +301,7 @@ public:
const Glib::ustring& key,
Registry& wr,
Inkscape::XML::Node* repr_in = NULL,
- Document *doc_in = NULL );
+ SPDocument *doc_in = NULL );
protected:
sigc::connection _value_x_changed_connection;
@@ -318,7 +318,7 @@ public:
const Glib::ustring& key,
Registry& wr,
Inkscape::XML::Node* repr_in = NULL,
- Document *doc_in = NULL );
+ SPDocument *doc_in = NULL );
// redefine setValue, because transform must be applied
void setValue(Geom::Point const & p);
@@ -342,7 +342,7 @@ public:
const Glib::ustring& key,
Registry& wr,
Inkscape::XML::Node* repr_in = NULL,
- Document *doc_in = NULL);
+ SPDocument *doc_in = NULL);
void setValue (double val, long startseed);
diff --git a/src/ui/widget/tolerance-slider.cpp b/src/ui/widget/tolerance-slider.cpp
index bc5b45979..3a36127f4 100644
--- a/src/ui/widget/tolerance-slider.cpp
+++ b/src/ui/widget/tolerance-slider.cpp
@@ -185,7 +185,7 @@ ToleranceSlider::update (double val)
_wr->setUpdating (true);
- Document *doc = sp_desktop_document(dt);
+ SPDocument *doc = sp_desktop_document(dt);
bool saved = sp_document_get_undo_sensitive (doc);
sp_document_set_undo_sensitive (doc, false);
Inkscape::XML::Node *repr = SP_OBJECT_REPR (sp_desktop_namedview(dt));