Enlightenment CVS committal

Author  : rephorm
Project : e17
Module  : libs/edje

Dir     : e17/libs/edje/src/lib


Modified Files:
        edje_callbacks.c 


Log Message:


"clicked" signals now emitted in both of the following cases:

(1)
  mouse down
  move outside part
  move back in
  mouse up

[and more importantly]
(2)
  mouse down
  mouse up

  AFTER:
  mouse down
  move outside part
  mouse up

(this previously resulted in click signals no longer being emitted).

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/edje/src/lib/edje_callbacks.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- edje_callbacks.c    24 Jun 2003 02:33:04 -0000      1.1
+++ edje_callbacks.c    25 Jun 2003 21:40:32 -0000      1.2
@@ -93,6 +93,16 @@
            (ev->cur.canvas.x >= (x + w)) || (ev->cur.canvas.y >= (y + h)))
          rp->still_in = 0;
      }
+   else
+     {
+       double x, y, w, h;
+       
+       evas_object_geometry_get(obj, &x, &y, &w, &h);
+       if ((ev->cur.canvas.x >= x) && (ev->cur.canvas.y >= y) && 
+           (ev->cur.canvas.x < (x + w)) && (ev->cur.canvas.y < (y + h)))
+         rp->still_in = 1;
+     }
+     
    _edje_emit(ed, "mouse,move", rp->part->name);
 }
 




-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to