Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src


Modified Files:
        ewl_events.c ewl_widget.c 


Log Message:
Send double clicks consistent with ecore.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_events.c,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -3 -r1.44 -r1.45
--- ewl_events.c        9 Dec 2003 17:35:50 -0000       1.44
+++ ewl_events.c        10 Dec 2003 01:42:17 -0000      1.45
@@ -3,7 +3,6 @@
 
 
 extern Ewl_Widget     *last_selected;
-extern Ewl_Widget     *last_clicked;
 extern Ewl_Widget     *last_key;
 extern Ewl_Widget     *last_focused;
 extern Ewl_Widget     *dnd_widget;
@@ -275,11 +274,6 @@
                }
        }
 
-       if (ev->double_click)
-               last_clicked = widget;
-       else
-               last_clicked = NULL;
-
        /*
         * While the mouse is down the widget has a pressed state, the widget
         * and its parents are notified in this change of state.
@@ -292,6 +286,12 @@
                                        EWL_FLAG_STATE_PRESSED);
                        ewl_callback_call_with_event_data(temp,
                                        EWL_CALLBACK_MOUSE_DOWN, ev);
+
+                       if (ev->double_click) {
+                               ewl_callback_call_with_event_data(temp,
+                                               EWL_CALLBACK_DOUBLE_CLICKED,
+                                               ev);
+                       }
                }
                temp = temp->parent;
        }
@@ -339,10 +339,6 @@
                        ewl_callback_call_with_event_data(temp,
                                        EWL_CALLBACK_MOUSE_UP, ev);
 
-                       if (last_selected == last_clicked)
-                               ewl_callback_call_with_event_data(temp,
-                                               EWL_CALLBACK_DOUBLE_CLICKED,
-                                               ev);
                }
 
                temp = temp->parent;
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_widget.c,v
retrieving revision 1.92
retrieving revision 1.93
diff -u -3 -r1.92 -r1.93
--- ewl_widget.c        10 Dec 2003 01:24:07 -0000      1.92
+++ ewl_widget.c        10 Dec 2003 01:42:17 -0000      1.93
@@ -3,7 +3,6 @@
 
 
 Ewl_Widget *last_selected = NULL;
-Ewl_Widget *last_clicked = NULL;
 Ewl_Widget *last_key = NULL;
 Ewl_Widget *last_focused = NULL;
 Ewl_Widget *dnd_widget = NULL;




-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to