2012년 11월 12일 월요일에 Gustavo Lima Chaves님이 작성: > * Jaehwan Kim <[email protected] <javascript:;>> [2012-11-12 > 14:57:02 +0900]: > > > Dear all > > > > I have a problem in elm_image. (exactly when elm_image use > > edje_object_file_set) > > When the image is added from edj file, we cannot get the "clicked" > callback. > > Internally, when the image use edje_object_file_set, > EVAS_CALLBACK_MOUSE_UP > > event callback is not called. > > > > You can check the problem by using attached diff file. > > If you change the the code test_event.c, you can compare the situation. > > Change "# if 1" to "#if 0". > > Please check this problem. > > > > Thanks. > > Hi, Jaehwan. > > It's indeed problematic code, I'll just drop my last remark on it here: > > "I'd also like to warn the elm_image's original implementor(s) that, a > line that I kept, > > evas_object_event_callback_add > (img, EVAS_CALLBACK_MOUSE_UP, _on_mouse_up, obj); > > is buggy and waiting for bad things to happen. This should ideally be > taken care of as Edje does, before emitting a 'clicked' signal -- we > gotta track if the mouse down was also done inside the object and > so. Please prove me wrong, if it's the case." > > No time to address this issue myself now, but I hope the problem is > clarified :) > > BR, > -- > Gustavo Lima Chaves > Computer Engineer @ ProFUSION Embedded Systems > > Dear Gustavo
Thanks for reply. I agree, what the "clicked" callback is used by EVAS_CALLBACK_MOUSE_UP is not good implementation. I think that a common module about "clicked" is needed in each widget like "mouse,clicked,1" in edc. Is there any idea? But above problem wonder off a my point. My problem is the elm_image which made up of edje object doesn't call a callback function. So I check the elm_image.c and I found the cause. There's no callback_add about image which made up of edje object. I fixed it. The revision 79261. Even if my problem is solved, we have to keep thinking about "clicked" signal. If there's anyone who have a idea about that, let's discuss :) Thanks Best Regars, -- Jaehwan Kim > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_nov > _______________________________________________ > enlightenment-devel mailing list > [email protected] <javascript:;> > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > ------------------------------------------------------------------------------ Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
