seoz pushed a commit to branch master.

commit 8149c0606f4035700e3ff1c4bd2d879be65b8e36
Author: Daniel Juyung Seo <[email protected]>
Date:   Sun Jun 9 16:54:00 2013 +0900

    elm_widget.c: handle focus fail case.
---
 src/lib/elm_widget.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/lib/elm_widget.c b/src/lib/elm_widget.c
index 70c3d77..d2e1166 100644
--- a/src/lib/elm_widget.c
+++ b/src/lib/elm_widget.c
@@ -5852,6 +5852,7 @@ static void
 _elm_widget_on_focus(Eo *obj EINA_UNUSED, void *_pd EINA_UNUSED, va_list *list)
 {
    Eina_Bool *ret = va_arg(*list, Eina_Bool *);
+   if (ret) *ret = EINA_FALSE;
 
    if (elm_widget_can_focus_get(obj))
      {
@@ -5860,6 +5861,8 @@ _elm_widget_on_focus(Eo *obj EINA_UNUSED, void *_pd 
EINA_UNUSED, va_list *list)
         else
           evas_object_smart_callback_call(obj, "unfocused", NULL);
      }
+   else
+     return;
 
    if (ret) *ret = EINA_TRUE;
 }

-- 

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j

Reply via email to