Enlightenment CVS committal

Author  : codewarrior
Project : e17
Module  : proto

Dir     : e17/proto/etk/src/lib


Modified Files:
        etk_spinner.c 


Log Message:
[Etk_Spinner] The scanf family of functions doesnt accept %.Xf, only %f works - 
cant set precision
 

===================================================================
RCS file: /cvs/e/e17/proto/etk/src/lib/etk_spinner.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- etk_spinner.c       28 Nov 2006 21:40:07 -0000      1.1
+++ etk_spinner.c       19 Dec 2006 21:40:24 -0000      1.2
@@ -662,7 +662,7 @@
       return;
    
    text = etk_editable_text_get(spinner->editable_object);
-   if (sscanf(text, spinner->value_format, &value) != 1)
+   if (sscanf(text, "%f", &value) != 1)
       value = 0.0;
    etk_range_value_set(ETK_RANGE(spinner), value);
 }



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to