From: Enlightenment S. <no-...@en...> - 2012-05-16 05:46:38
|
Log: elementary/elm_notify : Add focus_direction for elm_notify. Author: woohyun Date: 2012-05-15 22:46:31 -0700 (Tue, 15 May 2012) New Revision: 71141 Trac: http://trac.enlightenment.org/e/changeset/71141 Modified: trunk/elementary/src/lib/elm_notify.c Modified: trunk/elementary/src/lib/elm_notify.c =================================================================== --- trunk/elementary/src/lib/elm_notify.c 2012-05-16 05:28:40 UTC (rev 71140) +++ trunk/elementary/src/lib/elm_notify.c 2012-05-16 05:46:31 UTC (rev 71141) @@ -487,6 +487,25 @@ } 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, Evas_Object *content) @@ -591,6 +610,7 @@ 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; |