From: Sohyun Kim Date: Tue, 4 Jan 2011 05:49:39 +0000 (+0900) Subject: [elm_bubble] merge upstream X-Git-Tag: REL_I9200_20110603-1~524^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0770dd23e9b83b31214c09e774cce900e5b16f47;p=framework%2Fuifw%2Felementary.git [elm_bubble] merge upstream --- diff --git a/src/lib/elm_bubble.c b/src/lib/elm_bubble.c index e440808..56b9e93 100644 --- a/src/lib/elm_bubble.c +++ b/src/lib/elm_bubble.c @@ -81,6 +81,21 @@ _theme_hook(Evas_Object *obj) _sizing_eval(obj); } +static Eina_Bool +_elm_bubble_focus_next_hook(const Evas_Object *obj, Elm_Focus_Direction dir, Evas_Object **next) +{ + Widget_Data *wd = elm_widget_data_get(obj); + Evas_Object *cur; + + if ((!wd) || (!wd->content)) + return EINA_FALSE; + + cur = wd->content; + + /* Try Focus cycle in subitem */ + return elm_widget_focus_next_get(cur, dir, next); +} + static void _sizing_eval(Evas_Object *obj) { @@ -187,6 +202,7 @@ elm_bubble_add(Evas_Object *parent) elm_widget_data_set(obj, wd); elm_widget_del_hook_set(obj, _del_hook); elm_widget_theme_hook_set(obj, _theme_hook); + elm_widget_focus_next_hook_set(obj, _elm_bubble_focus_next_hook); elm_widget_can_focus_set(obj, EINA_FALSE); wd->corner = eina_stringshare_add("base");