GNOME Bugzilla – Bug 652596
atspi_value_set_current_value does not work
Last modified: 2011-06-22 16:45:50 UTC
atspi_value_set_current_value calls the method SetCurrentValue instead of writing the "CurrentValue" property. As a result, it does set the current value.
I assume you're using QT-AT-SPI. The original code was intended to set the property, and Mario reported that it did not work and gave me a patch that made it call SetCurrentValue and added a SetCurrentValue method to at-spi2-atk. I applied it since it was something like two hours before code freeze went into effect and I didn't have time to investigate the underlying issue. Anyway, now would be an okay time to revisit it since we're in a new cycle, and I think the right fix would be to do as you described and have it set the property, ensuring that it also works with at-spi2-atk.
Yes, I was using qt-at-spi. I added a method called SetCurrentValue to the Value adaptor, so it works while the property is not being set.
I've just re-added the property setter in at-spi2-atk and modified at-spi2-core to use the DBus property rather than the SetCurrentValue method. I've left the SetCurrentValue method in at-spi2-atk for backwards compatibility; it might eventually make sense to remove it, since it is basically redundant.