Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/test


Modified Files:
        ewl_progressbar_test.c 


Log Message:
Cleanup timers when the progressbar window is closed.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/test/ewl_progressbar_test.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- ewl_progressbar_test.c      14 Nov 2003 00:18:22 -0000      1.6
+++ ewl_progressbar_test.c      14 Nov 2003 16:18:26 -0000      1.7
@@ -52,8 +52,14 @@
 
 void __destroy_progressbar_test_window(Ewl_Widget * w, void *ev_data, void *user_data)
 {
-       if (progress_timer)
-               ecore_timer_del(progress_timer);
+       int i;
+
+       for (i = 0; i < 3; i++) {
+               if (progress_timer[i]) {
+                       ecore_timer_del(progress_timer[i]);
+                       progress_timer[i] = NULL;
+               }
+       }
        ewl_widget_destroy(w);
        ewl_callback_append(progressbar_button, EWL_CALLBACK_CLICKED,
                        __create_progressbar_test_window, NULL);




-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to