On Do, 2011-02-10 at 07:26 +0000, Ville Nummela wrote:
I've been playing around with the sync interval setting in the sync ui.
I created a slider for changing the interval. My public repo
contains the changes. The solution is far from perfect, but anyway I
though that interested persons could try it out and give feedback.
I think in principle such a slider would do the trick.
Here some random observations:
* I have an additional, superfluous slider with "0,0" as number
above the "automatic sync" checkbox.
* The real slider seems to be implemented with a fixed set of
possible values. I suppose the intention is to have "nice",
exponentially increasing steps when moving the slider. There are
some drawbacks, though:
* The strings (1m, 1h, 1h45m, ...) are not localized.
* No intermediate values can be selected.
* What happens if the chosen value in the config does not
match the ones available in the UI?
Would it be possible to translate the linear values from the slider into
an exponential time value, then print that using a locale aware
function? If glibc is not sufficient, then GTK/glib might have
Best Regards, Patrick Ohly
The content of this message is my personal opinion only and although
I am an employee of Intel, the statements I make here in no way
represent Intel's position on the issue, nor am I authorized to speak
on behalf of Intel on this matter.