diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2007-10-19 09:23:27 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2007-10-19 09:23:27 +0000 |
| commit | 1d7736b3d3cec677614033583fc6f81b5bc5bd6f (patch) | |
| tree | 558dc6625d275955f4f98ca987b7d7f0ade0c006 /src/ui/widget/registered-widget.cpp | |
| parent | allow effects to modify namedview and document dimensions (diff) | |
| download | inkscape-1d7736b3d3cec677614033583fc6f81b5bc5bd6f.tar.gz inkscape-1d7736b3d3cec677614033583fc6f81b5bc5bd6f.zip | |
Fix RegisteredWidgets. Due to rev 16265, widgets were no longer initialized. This is now fixed: setValue and its siblings should always set the widget to something, regardless _wr->isUpdating().
(bzr r3931)
Diffstat (limited to 'src/ui/widget/registered-widget.cpp')
| -rw-r--r-- | src/ui/widget/registered-widget.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/ui/widget/registered-widget.cpp b/src/ui/widget/registered-widget.cpp index e87a57bc7..55f81cfaf 100644 --- a/src/ui/widget/registered-widget.cpp +++ b/src/ui/widget/registered-widget.cpp @@ -110,9 +110,6 @@ RegisteredCheckButton::init (const Glib::ustring& label, const Glib::ustring& ti void RegisteredCheckButton::setActive (bool b) { - if (_wr->isUpdating()) - return; - setProgrammatically = true; _button->set_active (b); //The slave button is greyed out if the master button is unchecked @@ -224,9 +221,6 @@ RegisteredScalarUnit::getSU() void RegisteredScalarUnit::setValue (double val) { - if (_wr->isUpdating()) - return; - _widget->setValue (val); } @@ -290,9 +284,6 @@ RegisteredScalar::getS() void RegisteredScalar::setValue (double val) { - if (_wr->isUpdating()) - return; - _widget->setValue (val); } @@ -349,9 +340,6 @@ RegisteredColorPicker::init (const Glib::ustring& label, const Glib::ustring& ti void RegisteredColorPicker::setRgba32 (guint32 rgba) { - if (_wr->isUpdating()) - return; - _cp->setRgba32 (rgba); } @@ -433,9 +421,6 @@ RegisteredSuffixedInteger::init (const Glib::ustring& label, const Glib::ustring void RegisteredSuffixedInteger::setValue (int i) { - if (_wr->isUpdating()) - return; - setProgrammatically = true; _adj.set_value (i); } @@ -497,9 +482,6 @@ const Glib::ustring& key, Registry& wr, Inkscape::XML::Node* repr_in, SPDocument void RegisteredRadioButtonPair::setValue (bool second) { - if (_wr->isUpdating()) - return; - setProgrammatically = true; if (second) _rb2->set_active(); else _rb1->set_active(); @@ -566,9 +548,6 @@ RegisteredPoint::getPoint() void RegisteredPoint::setValue (double xval, double yval) { - if (_wr->isUpdating()) - return; - _widget->setValue(xval, yval); } @@ -635,9 +614,6 @@ RegisteredRandom::getR() void RegisteredRandom::setValue (double val, long startseed) { - if (_wr->isUpdating()) - return; - _widget->setValue (val); _widget->setStartSeed(startseed); } |
