Enlightenment CVS committal
Author : devilhorns
Project : e_modules
Module : screenshot
Dir : e_modules/screenshot
Modified Files:
screenshot.edc
Log Message:
Fix edje timer to stop displaying 1 on 0
===================================================================
RCS file: /cvsroot/enlightenment/e_modules/screenshot/screenshot.edc,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- screenshot.edc 23 Dec 2005 21:41:14 -0000 1.2
+++ screenshot.edc 29 Dec 2005 22:27:29 -0000 1.3
@@ -17,17 +17,15 @@
new i;
i = get_int(global_int);
- snprintf(str, sizeof(str), "%i", i);
+ snprintf(str, sizeof(str), "%s", i);
set_text(PART:"text", str);
if (i == 0) {
- snprintf(str, sizeof(str), "%s", "");
- set_text(PART:"text", str);
cancel_timer(it);
set_state(PART:"text", "default",0.0);
} else {
set_int(global_int, (i - 1));
it = timer(1.0, "timer_cb", global_int);
- }
+ }
}
public message(Msg_Type:type, id, ...) {
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs