Enlightenment CVS committal

Author  : davemds
Project : e17
Module  : libs/esmart

Dir     : e17/libs/esmart/src/lib/esmart_container/layout/default


Modified Files:
        default.c 


Log Message:
Delete timer also when another scroll start

===================================================================
RCS file: 
/cvs/e/e17/libs/esmart/src/lib/esmart_container/layout/default/default.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- default.c   15 Dec 2007 03:30:58 -0000      1.7
+++ default.c   15 Dec 2007 03:39:38 -0000      1.8
@@ -220,7 +220,14 @@
 
   length = esmart_container_elements_length_get(cont->obj);
   size = cont->direction ? cont->h : cont->w;
-
+   
+  /* Stop other scrolling in process*/
+  if (cont->scroll.timer)
+  {
+    ecore_timer_del(cont->scroll.timer);  
+    cont->scroll.timer = NULL;
+  }
+   
   /* don't scroll unless the elements exceed the size of the container */
   if (length <= size)
     return;



-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to