26 Jul
2010
26 Jul
'10
10:33 p.m.
2010/7/25 Jon Cruz <jon@...18...>:
For problem number 2 a very simple mechanism would be to watch the preferences file and reload it when it changes. Then instance A writes out a change and instance B, C and D see and pick this up. This may not be as elegant as a DBus based solution, but it does have the advantage of being doable with existing code in Inkscape.
Some preferences change rather rapidly, for example when toggling a button, so this might kill responsiveness.
GSettings looks like the best future solution. You can even bind a configuration value to a GObject property and it updates with zero intervention. I'm not sure how well it would work with C++ objects, but probably a nice template-based wrapper can be made.
Regards, Krzysztof