Enlightenment CVS committal

Author  : kwo
Project : e16
Module  : e

Dir     : e16/e/src


Modified Files:
        pager.c 


Log Message:
Remove redundant timer removal. Avoid unneeded timer event when pagers are 
disabled.
===================================================================
RCS file: /cvsroot/enlightenment/e16/e/src/pager.c,v
retrieving revision 1.188
retrieving revision 1.189
diff -u -3 -r1.188 -r1.189
--- pager.c     21 Nov 2005 17:48:44 -0000      1.188
+++ pager.c     27 Dec 2005 19:03:50 -0000      1.189
@@ -443,6 +443,9 @@
 static void
 PagerUpdate(Pager * p, int x1, int y1, int x2, int y2)
 {
+   if (!Conf_pagers.enable)
+      return;
+
    if (p->x1 > x1)
       p->x1 = x1;
    if (p->y1 > y1)
@@ -458,7 +461,6 @@
    if (!Conf_pagers.snap)
       return;
 
-   RemoveTimerEvent("pg-upd");
    DoIn("pg-upd", .2, PagerUpdateTimeout, 0, NULL);
 }
 




-------------------------------------------------------
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

Reply via email to