From 99e824e5b7f4111ae687193d262748981e6aa765 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Wed, 5 Sep 2007 06:10:36 +0000 Subject: [PATCH] workaround for runaway spinbutton --- src/ui/widget/registered-widget.cpp | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/ui/widget/registered-widget.cpp b/src/ui/widget/registered-widget.cpp index 4db4363ca..c2c7e593c 100644 --- a/src/ui/widget/registered-widget.cpp +++ b/src/ui/widget/registered-widget.cpp @@ -280,22 +280,17 @@ RegisteredScalar::setValue (double val) void RegisteredScalar::on_value_changed() { - if (_wr->isUpdating()) + if (_wr->isUpdating()) { return; + } _wr->setUpdating (true); - // FIXME: gtk bug? - // disable interruptibility: see http://inkscape.svn.sourceforge.net/viewvc/inkscape/inkscape/trunk/src/ui/widget/selected-style.cpp?r1=13149&r2=13257&sortby=date - SPDesktop* dt = SP_ACTIVE_DESKTOP; - sp_canvas_force_full_redraw_after_interruptions(sp_desktop_canvas(dt), 0); - Inkscape::SVGOStringStream os; os << _widget->getValue(); + _widget->set_sensitive(false); write_to_xml(os.str().c_str()); - - // resume interruptibility - sp_canvas_end_forced_full_redraws(sp_desktop_canvas(dt)); + _widget->set_sensitive(true); _wr->setUpdating (false); } -- 2.30.2