On Mon, 11 Apr 2011 14:44:46 +0300 Tom Hacohen <tom.haco...@partner.samsung.com> said:
actually if i think this is the case i think it is.. the slider is set for "min value -10, max value 10" ie slider goes FROM a negative val to a positive one. but when its AROUND 0 .. it has -0 and 0. which is actually a normal libc/printf thing. with FP. its rounding down from -0.0000001 to 0.. but due to the way FP works. there is actually a 0.0 and a -0.0 - they are separate values oddly enough. this is all done INSIDE of snprintf that is being used by slider to print the value (given the fmt string). > I think we need to fix the fact that it gets to a negative value... > (unless I got you wrong, and then please don't mind me). > > -- > Tom. > > On Mon, 2011-04-11 at 10:34 +0000, SUMANTH KRISHNA MANNAM wrote: > > > > 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:BEI0XT4NZ5JE@namo.co.kr] > > > > [SeenTimeChecker? > > do=c43e6b88cbde39cd78ae26ec204e8a9303a1ef4c985630f0381f05fc > > ee592f152fe50af216eefd44d1b17ce7cdd50431f1bc9e894f4f495bed2705d6268c6898dd8a > > aa5ed8b0e8e4326bbdfb2ea96a2fcf878f9a26ce15a0] > > ------------------------------------------------------------------------------ > > Xperia(TM) PLAY > > It's a major breakthrough. An authentic gaming > > smartphone on the nation's most reliable network. > > And it wants your games. > > http://p.sf.net/sfu/verizon-sfdev > > _______________________________________________ enlightenment-devel mailing > > list enlightenment-devel@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > > > > ------------------------------------------------------------------------------ > Xperia(TM) PLAY > It's a major breakthrough. An authentic gaming > smartphone on the nation's most reliable network. > And it wants your games. > http://p.sf.net/sfu/verizon-sfdev > _______________________________________________ > enlightenment-devel mailing list > enlightenment-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) ras...@rasterman.com ------------------------------------------------------------------------------ Forrester Wave Report - Recovery time is now measured in hours and minutes not days. Key insights are discussed in the 2010 Forrester Wave Report as part of an in-depth evaluation of disaster recovery service providers. Forrester found the best-in-class provider in terms of services and vision. Read this report now! http://p.sf.net/sfu/ibm-webcastpromo _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel