Hi!

Dans son message intitulé « E SVN: raster IN trunk/TMP/st/alarm:
data/themes src/bin » du Sun,  7 Sep 2008 05:30:37 -0700,
[EMAIL PROTECTED] nous a donné l'occasion de lire :

> Author:       raster
> Date:         2008-09-07 05:30:37 -0700 (Sun, 07 Sep 2008)
> New Revision: 35867
> 
> Modified:
>   trunk/TMP/st/alarm/data/themes/default.edc
> trunk/TMP/st/alarm/src/bin/elm_bg.c
> trunk/TMP/st/alarm/src/bin/els_scroller.c Log:
> 
> bars fade/in/out to indicate, but are not usable. drag with mouse to
> scroll.

 Here's a port of my e-scrollframe-correct_thumbscroll.patch so that
bars are usable in ELM scroller.
 Maybe putting a 48px threshold is a bit too much - default is 8px for
Enlightenment, and works great...

 Hope it helps.
 Cheers!

 Chidambar 'ilLogict' Zinnoury
Index: trunk/TMP/st/alarm/src/bin/els_scroller.c
===================================================================
--- trunk/TMP/st/alarm/src/bin/els_scroller.c	(revision 35872)
+++ trunk/TMP/st/alarm/src/bin/els_scroller.c	(working copy)
@@ -589,21 +589,21 @@
 		    evas_event_feed_hold(e, 1, ev->timestamp, ev->data);
 		  ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
 		  sd->down.dragged = 1;
-	       }
-	     x = sd->down.sx - (ev->cur.canvas.x - sd->down.x);
-	     y = sd->down.sy - (ev->cur.canvas.y - sd->down.y);
-	     if ((sd->down.dir_x) || (sd->down.dir_y))
-	       {
-		  if (!sd->down.locked)
+		  x = sd->down.sx - (ev->cur.canvas.x - sd->down.x);
+		  y = sd->down.sy - (ev->cur.canvas.y - sd->down.y);
+		  if ((sd->down.dir_x) || (sd->down.dir_y))
 		    {
-		       sd->down.locked_x = x;
-		       sd->down.locked_y = y;
-		       sd->down.locked = 1;
+		       if (!sd->down.locked)
+			 {
+			    sd->down.locked_x = x;
+			    sd->down.locked_y = y;
+			    sd->down.locked = 1;
+			 }
+		       if (sd->down.dir_x) y = sd->down.locked_y;
+		       else x = sd->down.locked_x;
 		    }
-		  if (sd->down.dir_x) y = sd->down.locked_y;
-		  else x = sd->down.locked_x;
+		  elm_smart_scroller_child_pos_set(sd->smart_obj, x, y);
 	       }
-	     elm_smart_scroller_child_pos_set(sd->smart_obj, x, y);
 	  }
      }
 }

Attachment: signature.asc
Description: PGP signature

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to