From: Carsten H. (T. R. <ra...@ra...> - 2011-04-12 08:59:42
|
On Mon, 11 Apr 2011 10:34:46 +0000 (GMT) SUMANTH KRISHNA MANNAM <sum...@sa...> said: you intend to write a printf format parser just for this case? (well ok you only have to handle "%[something]f" as thats all slider defines that it wants/needs). > > > Hi, > Elementary slider widget shows the indicator text based on the format > set by the user. > If the user chooses to limit the precision by having a format specifier > with less precision, say %1.0f and the value of the slider is -0.001 then > after applying this format specifier, we get the indicator value displayed as > -0. Similarly if we have the format specifier as %1.1f, then this value will > be -0.0. > In my opinion, showing "-0" as the current slider value does not look good, > so I propose to change this value to 0 and or 0.0 respectively for the > above mentioned examples by parsing the string generated after using snprintf > in _indicator_set(). > Please let me know your opinion if this is the right approach. > > Thanks. > Regards, > Sumanth > > > > [cid:BEI...@na...] > > [SeenTimeChecker? > do=c43e6b88cbde39cd78ae26ec204e8a9303a1ef4c985630f0381f05fc > ee592f152fe50af216eefd44d1b17ce7cdd50431f1bc9e894f4f495bed2705d6268c6898dd8a > aa5ed8b0e8e4326bbdfb2ea96a2fcf878f9a26ce15a0] -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) ra...@ra... |