accerciser r712 - in trunk: . plugins



Author: btaylor
Date: Tue Feb 17 20:52:07 2009
New Revision: 712
URL: http://svn.gnome.org/viewvc/accerciser?rev=712&view=rev

Log:
2009-02-17  Brad Taylor  <brad getcoded net>

	* plugins/interface_view.py: Don't allow the set_range to change the
	value of our accessible (bug #572201).



Modified:
   trunk/ChangeLog
   trunk/plugins/interface_view.py

Modified: trunk/plugins/interface_view.py
==============================================================================
--- trunk/plugins/interface_view.py	(original)
+++ trunk/plugins/interface_view.py	Tue Feb 17 20:52:07 2009
@@ -1641,7 +1641,12 @@
       digits += 1
       minimumIncrement *= 10
 
+    # Calling set_range will clamp the value of spinbutton to the allowable
+    # range, causing us to try to set the value of the accessible when we
+    # really shouldn't.
+    self.ignore_value_changes = True
     self.spinbutton.set_range(vi.minimumValue, vi.maximumValue)
+    self.ignore_value_changes = False
     self.spinbutton.set_value(vi.currentValue)
     self.spinbutton.set_digits(digits)
    
@@ -1652,6 +1657,7 @@
     @param spinner: The Value spinner
     @type spinner: gtk.SpinButton
     '''
+    if self.ignore_value_changes: return
     vi = self.node.acc.queryValue()
     vi.currentValue = spinner.get_value()
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]