woohyun pushed a commit to branch master.

commit 2d4a326288c1b29070298c330011f32180c5aed9
Author: WooHyun Jung <[email protected]>
Date:   Tue Aug 6 18:14:44 2013 +0900

    elementary/elm_widget.c : When there is no resize object, widget object 
itself should get evas focus when it steals elementary focus.
---
 src/lib/elm_widget.c | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/src/lib/elm_widget.c b/src/lib/elm_widget.c
index d2262b2..1b169ae 100644
--- a/src/lib/elm_widget.c
+++ b/src/lib/elm_widget.c
@@ -5886,12 +5886,22 @@ _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;
 
+   ELM_WIDGET_DATA_GET(obj, sd);
+
    if (elm_widget_can_focus_get(obj))
      {
         if (elm_widget_focus_get(obj))
-          evas_object_smart_callback_call(obj, "focused", NULL);
+          {
+             if (!sd->resize_obj)
+               evas_object_focus_set(obj, EINA_TRUE);
+             evas_object_smart_callback_call(obj, "focused", NULL);
+          }
         else
-          evas_object_smart_callback_call(obj, "unfocused", NULL);
+          {
+             if (!sd->resize_obj)
+               evas_object_focus_set(obj, EINA_FALSE);
+             evas_object_smart_callback_call(obj, "unfocused", NULL);
+          }
      }
    else
      return;

-- 

------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent 
caught up. So what steps can you take to put your SQL databases under 
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk

Reply via email to