summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmitesh Singh <amitesh.sh@samsung.com>2015-09-23 12:36:15 +0530
committerAmitesh Singh <amitesh.sh@samsung.com>2015-09-26 10:16:13 +0530
commit3cd14dd129da96b8920addc5c9cee452bf4e0e29 (patch)
tree01f07022ea0641560b7506abffddff5afc4369ae
parentae5489b059c1fac44d6ad397b04f54c80e132ac7 (diff)
gengrid: move item focus related code to internal _elm_gengrid_item_focused()
-rw-r--r--src/lib/elm_gengrid.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/lib/elm_gengrid.c b/src/lib/elm_gengrid.c
index ef8b0409d..89d2b3a39 100644
--- a/src/lib/elm_gengrid.c
+++ b/src/lib/elm_gengrid.c
@@ -2020,6 +2020,15 @@ _elm_gengrid_item_focused(Elm_Object_Item *eo_it)
2020 2020
2021 sd->focused_item = eo_it; 2021 sd->focused_item = eo_it;
2022 2022
2023 /* If item is not realized state, widget couldn't get focus_highlight data. */
2024 if (it->realized)
2025 {
2026 _elm_gengrid_item_focus_raise(it);
2027 _elm_widget_item_highlight_in_theme(obj, eo_it);
2028 _elm_widget_highlight_in_theme_update(obj);
2029 _elm_widget_focus_highlight_start(obj);
2030 }
2031
2023 eo_do(obj, eo_event_callback_call(ELM_GENGRID_EVENT_ITEM_FOCUSED, eo_it)); 2032 eo_do(obj, eo_event_callback_call(ELM_GENGRID_EVENT_ITEM_FOCUSED, eo_it));
2024 if (_elm_config->atspi_mode) 2033 if (_elm_config->atspi_mode)
2025 elm_interface_atspi_accessible_state_changed_signal_emit(eo_it, ELM_ATSPI_STATE_FOCUSED, EINA_TRUE); 2034 elm_interface_atspi_accessible_state_changed_signal_emit(eo_it, ELM_ATSPI_STATE_FOCUSED, EINA_TRUE);
@@ -3867,15 +3876,6 @@ _elm_gengrid_item_elm_widget_item_focus_set(Eo *eo_it, Elm_Gen_Item *it, Eina_Bo
3867 if (sd->focused_item) 3876 if (sd->focused_item)
3868 _elm_gengrid_item_unfocused(sd->focused_item); 3877 _elm_gengrid_item_unfocused(sd->focused_item);
3869 _elm_gengrid_item_focused(eo_it); 3878 _elm_gengrid_item_focused(eo_it);
3870
3871 /* If item is not realized state, widget couldn't get focus_highlight data. */
3872 if (it->realized)
3873 {
3874 _elm_gengrid_item_focus_raise(it);
3875 _elm_widget_item_highlight_in_theme(obj, eo_it);
3876 _elm_widget_highlight_in_theme_update(obj);
3877 _elm_widget_focus_highlight_start(obj);
3878 }
3879 } 3879 }
3880 } 3880 }
3881 else 3881 else