From 730dcc823f4c2a42d3005666628d0a4e54028921 Mon Sep 17 00:00:00 2001 From: johanengelen Date: Tue, 16 Oct 2007 18:18:24 +0000 Subject: [PATCH] runaway random number widget workaround --- 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 7125318ca..e87a57bc7 100644 --- a/src/ui/widget/registered-widget.cpp +++ b/src/ui/widget/registered-widget.cpp @@ -650,22 +650,17 @@ RegisteredRandom::on_value_changed() return; } - 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->getStartSeed(); + _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