Enlightenment CVS committal Author : devilhorns Project : e_modules Module : screenshot
Dir : e_modules/screenshot Modified Files: screenshot.edc e_mod_main.c Log Message: Fix couple errors in screenshot module concerning edj timer and countdown display =================================================================== RCS file: /cvsroot/enlightenment/e_modules/screenshot/screenshot.edc,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- screenshot.edc 29 Dec 2005 22:27:29 -0000 1.3 +++ screenshot.edc 9 Jan 2006 22:13:05 -0000 1.4 @@ -17,14 +17,15 @@ new i; i = get_int(global_int); - snprintf(str, sizeof(str), "%s", i); - set_text(PART:"text", str); + snprintf(str, sizeof(str), "%d", i); + set_text(PART:"text", str); + set_int(global_int, (i - 1)); if (i == 0) { - cancel_timer(it); - set_state(PART:"text", "default",0.0); + snprintf(str, sizeof(str), "%s", ""); + set_text(PART:"text", str); + set_state(PART:"text", "default", 0.0); } else { - set_int(global_int, (i - 1)); - it = timer(1.0, "timer_cb", global_int); + it = timer(1.0, "timer_cb", global_int); } } =================================================================== RCS file: /cvsroot/enlightenment/e_modules/screenshot/e_mod_main.c,v retrieving revision 1.11 retrieving revision 1.12 diff -u -3 -r1.11 -r1.12 --- e_mod_main.c 7 Jan 2006 23:09:12 -0000 1.11 +++ e_mod_main.c 9 Jan 2006 22:13:05 -0000 1.12 @@ -469,6 +469,7 @@ opt = get_options(opts); f = get_filename(ef->screen->conf); snprintf(buff, sizeof(buff), "scrot %s %s", opt, f); + printf("Delay Time: %d\n", ef->screen->conf->delay_time); if (ef->screen->conf->delay_time > 0) { msg = malloc(sizeof(Edje_Message_Int_Set) + 1 * sizeof(int)); ------------------------------------------------------- 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 enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs