summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-05-29 09:30:31 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-05-29 12:29:04 -0400
commit87e589a6b9fb70620afca81d9e4f80b749f083de (patch)
tree78f86b59d74361fce65a28eb9056569c9042ef9e
parent914405549859e2846902bf1a057f8e37fa1e64d3 (diff)
elm/gen*: only call focus_object_setup_order_non_recursive if realized
Summary: this function cannot process unrealized items @fix Depends on D8990 Reviewers: bu5hm4n Reviewed By: bu5hm4n Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8992
-rw-r--r--src/lib/elementary/elm_gengrid.c3
-rw-r--r--src/lib/elementary/elm_genlist.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/elementary/elm_gengrid.c b/src/lib/elementary/elm_gengrid.c
index c23ad1d6de..8a5bd597ef 100644
--- a/src/lib/elementary/elm_gengrid.c
+++ b/src/lib/elementary/elm_gengrid.c
@@ -5867,7 +5867,8 @@ _elm_gengrid_item_efl_ui_focus_object_setup_order_non_recursive(Eo *obj, Elm_Gen
5867 _elm_widget_full_eval(wid); 5867 _elm_widget_full_eval(wid);
5868 } 5868 }
5869 5869
5870 efl_ui_focus_object_setup_order_non_recursive(efl_super(obj, ELM_GENGRID_ITEM_CLASS)); 5870 if (pd->realized)
5871 efl_ui_focus_object_setup_order_non_recursive(efl_super(obj, ELM_GENGRID_ITEM_CLASS));
5871} 5872}
5872 5873
5873EOLIAN static Efl_Ui_Focus_Object* 5874EOLIAN static Efl_Ui_Focus_Object*
diff --git a/src/lib/elementary/elm_genlist.c b/src/lib/elementary/elm_genlist.c
index 8a1bec391d..ed0c585b18 100644
--- a/src/lib/elementary/elm_genlist.c
+++ b/src/lib/elementary/elm_genlist.c
@@ -8924,7 +8924,8 @@ _elm_genlist_item_efl_ui_focus_object_setup_order_non_recursive(Eo *obj, Elm_Gen
8924 _elm_widget_full_eval(wid); 8924 _elm_widget_full_eval(wid);
8925 } 8925 }
8926 8926
8927 efl_ui_focus_object_setup_order_non_recursive(efl_super(obj, ELM_GENLIST_ITEM_CLASS)); 8927 if (pd->realized)
8928 efl_ui_focus_object_setup_order_non_recursive(efl_super(obj, ELM_GENLIST_ITEM_CLASS));
8928} 8929}
8929 8930
8930EOLIAN static Eina_Bool 8931EOLIAN static Eina_Bool