The reason for calling feed events is as follows.
1. In slider widget, 
2. try mouse down on the slider bar, (not on the slider button)
3. then button will be moved to that mouse down position, 
4. AND BUTTON SHOULD BE DRAGGED when mouse is moved <- for this reason.
For this senario, "calling feed events" is not good way ? little bit curious.
Anyway, I've checked ~ this "feed events calling" caused seg fault.
(I don't know why ~ it worked fine when I wrote this code)
And I think, I can rewrite this code with another way (maybe better way).
Thanks for reporting ~ 
And sorry for late reply.
-----Original Message-----
From: "Daniel Juyung Seo"<seojuyu...@gmail.com> 
To: "Enlightenment developer 
list"<enlightenment-devel@lists.sourceforge.net>
Cc: enlightenment-...@lists.sourceforge.net
Sent: 12-01-02(월) 08:00:18
Subject: Re: [E-devel] E SVN: hermet trunk/elementary/src/lib
Cedric added this several days ago.
http://trac.enlightenment.org/e/changeset/66531
Daniel Juyung Seo (SeoZ)
On Sun, Jan 1, 2012 at 6:25 PM, Tom Hacohen
<tom.haco...@partner.samsung.com> wrote:
> Yeah, calling feed events sounds bad, should be avoided when possible.
>
> Any news from the original patch author?
>
> --
> Tom.
>
> On 29/12/11 14:36, ChunEon Park wrote:
>> Cedric, this commit is the result of my review.
>> Maybe the original writer could explain this reason.
>> ------------------------------------
>> -Regards, Hermet-
>>
>> -----Original Message-----
>> From: "Enlightenment SVN"<no-re...@enlightenment.org>
>> To: enlightenment-...@lists.sourceforge.net
>> Cc:
>> Sent: 11-12-29(목) 21:34:04
>> Subject: E SVN: hermet trunk/elementary/src/lib
>> Log:
>> elementary/slider - prevent infinite loop.
>>
>> It looks no need to call the mouse feed events.
>> Someone needs to tell the reason.
>>
>>
>> Author: hermet
>> Date: 2011-12-29 04:34:04 -0800 (Thu, 29 Dec 2011)
>> New Revision: 66630
>> Trac: http://trac.enlightenment.org/e/changeset/66630
>> Modified:
>> trunk/elementary/src/lib/elm_slider.c
>> Modified: trunk/elementary/src/lib/elm_slider.c
>> ===================================================================
>> --- trunk/elementary/src/lib/elm_slider.c 2011-12-29 12:03:42 UTC (rev 66629)
>> +++ trunk/elementary/src/lib/elm_slider.c 2011-12-29 12:34:04 UTC (rev 66630)
>> @@ -446,7 +446,7 @@
>> }
>>
>> static void
>> -_spacer_cb(void *data, Evas *e, Evas_Object *obj __UNUSED__, void 
>> *event_info)
>> +_spacer_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, 
>> void *event_info)
>> {
>> Widget_Data *wd = elm_widget_data_get(data);
>> Evas_Event_Mouse_Down *ev = event_info;
>> @@ -474,11 +474,12 @@
>> {
>> edje_object_part_drag_value_set(wd->slider, "elm.dragable.slider", button_x, 
>> button_y);
>> }
>> - else
>> - {
>> - evas_event_feed_mouse_cancel(e, 0, NULL);
>> - evas_event_feed_mouse_down(e, 1, EVAS_BUTTON_NONE, 0, NULL);
>> - }
>> +
>> + //What is a purpose of these two mouse events?
>> + //I don't know the reason but these calls cause infinite loop.
>> + //So blocked them.
>> + //evas_event_feed_mouse_cancel(e, 0, NULL);
>> + //evas_event_feed_mouse_down(e, 1, EVAS_BUTTON_NONE, 0, NULL);
>> }
>
>
>
> ------------------------------------------------------------------------------
> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
> infrastructure or vast IT resources to deliver seamless, secure access to
> virtual desktops. With this all-in-one solution, easily deploy virtual
> desktops for less than the cost of PCs and save 60% on VDI infrastructure
> costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
> _______________________________________________
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to