jaehwan pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=cb5ca38f15189c02de60e9569591756268ba9976

commit cb5ca38f15189c02de60e9569591756268ba9976
Author: Jaehwan Kim <[email protected]>
Date:   Mon Mar 30 15:57:36 2015 +0900

    Gengrid: Modified to handle the focus highlight on unrealized items
    
    This commit is related to 260cdd6150d567fcee8d1afaf690e4b90cd16a2b.
    
    When unrealized item is focused, edje object is not exist,
    so genlist cannot read the focus highlight information from edje object.
    Therefore, when the item is realized, check the item is focused or not and
    need to update focus highlight.
---
 src/lib/elm_gengrid.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/src/lib/elm_gengrid.c b/src/lib/elm_gengrid.c
index 35cb007..b3b7449 100644
--- a/src/lib/elm_gengrid.c
+++ b/src/lib/elm_gengrid.c
@@ -1016,6 +1016,17 @@ _item_realize(Elm_Gen_Item *it)
 
    if (eo_it == sd->focused_item)
      {
+        const char *focus_raise;
+        if (elm_widget_focus_highlight_enabled_get(WIDGET(it)))
+          {
+             edje_object_signal_emit
+                (VIEW(it), "elm,state,focused", "elm");
+          }
+
+        focus_raise = edje_object_data_get(VIEW(it), "focusraise");
+        if ((focus_raise) && (!strcmp(focus_raise, "on")))
+          evas_object_raise(VIEW(it));
+
         _elm_widget_item_highlight_in_theme(WIDGET(it), EO_OBJ(it));
         _elm_widget_highlight_in_theme_update(WIDGET(it));
         _elm_widget_focus_highlight_start(WIDGET(it));

-- 


Reply via email to