Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/edje

Dir     : e17/libs/edje/src/lib


Modified Files:
        edje_callbacks.c 


Log Message:


use new extended event info

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/edje/src/lib/edje_callbacks.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -3 -r1.17 -r1.18
--- edje_callbacks.c    7 Dec 2004 13:31:15 -0000       1.17
+++ edje_callbacks.c    14 Dec 2004 03:24:32 -0000      1.18
@@ -45,46 +45,11 @@
    ed = data;
    rp = evas_object_data_get(obj, "real_part");
    if (!rp) return;
-#ifdef HAVE_ECORE_X
-   if (ecore_event_current_type_get() == ECORE_X_EVENT_MOUSE_BUTTON_DOWN)
-     {
-       Ecore_X_Event_Mouse_Button_Down *evx;
-       
-       evx = ecore_event_current_event_get();
-       if (evx)
-         {
-            if (evx->triple_click)
-              snprintf(buf, sizeof(buf), "mouse,down,%i,triple", ev->button);
-            else if (evx->double_click)
-              snprintf(buf, sizeof(buf), "mouse,down,%i,double", ev->button);
-            else
-              snprintf(buf, sizeof(buf), "mouse,down,%i", ev->button);
-         }
-       else
-         snprintf(buf, sizeof(buf), "mouse,down,%i", ev->button);
-     }
-   else
-#endif
-#ifdef HAVE_ECORE_FB
-     if (ecore_event_current_type_get() == ECORE_FB_EVENT_MOUSE_BUTTON_DOWN)
-       {
-         Ecore_Fb_Event_Mouse_Button_Down *evfb;
-         
-         evfb = ecore_event_current_event_get();
-         if (evfb)
-           {
-              if (evfb->triple_click)
-                snprintf(buf, sizeof(buf), "mouse,down,%i,triple", ev->button);
-              else if (evfb->double_click)
-                snprintf(buf, sizeof(buf), "mouse,down,%i,double", ev->button);
-              else
-                snprintf(buf, sizeof(buf), "mouse,down,%i", ev->button);
-           }
-         else
-           snprintf(buf, sizeof(buf), "mouse,down,%i", ev->button);
-       }
+   if (ev->flags & EVAS_BUTTON_TRIPLE_CLICK)
+     snprintf(buf, sizeof(buf), "mouse,down,%i,triple", ev->button);
+   else if (ev->flags & EVAS_BUTTON_DOUBLE_CLICK)
+     snprintf(buf, sizeof(buf), "mouse,down,%i,double", ev->button);
    else
-#endif     
      snprintf(buf, sizeof(buf), "mouse,down,%i", ev->button);
    _edje_ref(ed);
    _edje_freeze(ed);




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to