From 1ab790f276b22b4d2da19a225eaf0c896c4d51f7 Mon Sep 17 00:00:00 2001 From: WooHyun Jung Date: Wed, 16 May 2012 05:46:31 +0000 Subject: [PATCH] elementary/elm_notify : Add focus_direction for elm_notify. SVN revision: 71141 --- legacy/elementary/src/lib/elm_notify.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/legacy/elementary/src/lib/elm_notify.c b/legacy/elementary/src/lib/elm_notify.c index c6500db4fa..b880caf3b7 100644 --- a/legacy/elementary/src/lib/elm_notify.c +++ b/legacy/elementary/src/lib/elm_notify.c @@ -486,6 +486,25 @@ _elm_notify_smart_focus_next(const Evas_Object *obj, return elm_widget_focus_next_get(cur, dir, next); } +static Eina_Bool +_elm_notify_smart_focus_direction(const Evas_Object *obj, + const Evas_Object *base, + double degree, + Evas_Object **direction, + double *weight) +{ + Evas_Object *cur; + + ELM_NOTIFY_DATA_GET(obj, sd); + + if (!sd->content) + return EINA_FALSE; + + cur = sd->content; + + return elm_widget_focus_direction_get(cur, base, degree, direction, weight); +} + static Eina_Bool _elm_notify_smart_content_set(Evas_Object *obj, const char *part, @@ -591,6 +610,7 @@ _elm_notify_smart_set_user(Elm_Container_Smart_Class *sc) ELM_WIDGET_CLASS(sc)->theme = _elm_notify_smart_theme; ELM_WIDGET_CLASS(sc)->focus_next = _elm_notify_smart_focus_next; + ELM_WIDGET_CLASS(sc)->focus_direction = _elm_notify_smart_focus_direction; ELM_WIDGET_CLASS(sc)->sub_object_del = _elm_notify_smart_sub_object_del;