
bulia byak wrote:
Just curious, what are the advantages of this? Performance, maintainability?
Maintainability.
bulia byak wrote:
and what happens to the default which was returned if no such repr was in the prefs?
The default is still there, I just specified implicit parameters for this method (in this case, false is the "default default" :) for setBool - look at preferences.h).
bulia byak wrote:
The widget simply does not watch for changes in the repr, so if it is changed by someone outside, such a discrepancy will arise. Typically the repr is changed by the button's toggle callback only, and therefore there's no discrepancy. Please check if something else can change this pref value (e.g. for this reason, such prefs that are editable on the control bars of tools, should not be in the Preferences dialog).
No, the tracing button is the only thing that can change this pref. I'm suspecting that the code responsible for actually drawing the stroke uses inkscape_get_repr() instead of the functions in prefs-utils.h.
Regarding the build failure, I'll replace Glib::ustring::compose with something else.
Regards, Krzysztof Kosiński