summaryrefslogtreecommitdiff
path: root/src/lib/elm_toolbar.c
diff options
context:
space:
mode:
authorAmitesh Singh <amitesh.sh@samsung.com>2015-02-03 15:47:32 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2015-02-03 15:48:36 +0900
commita3e0ebf41f2723b5516cce760d46592940bab53b (patch)
tree1e5f9d97e6d9e307b3e5c9fc160c805e8e162d87 /src/lib/elm_toolbar.c
parent17a63524c08b6fc400b16cbb0acd8a32fe7e7bba (diff)
list/genlist/gengrid/toolbar: set focus/unfocus on item when focus is actually set on widget.
Summary: @Fix Reviewers: raster, Hermet, seoz Reviewed By: seoz Subscribers: seoz Differential Revision: https://phab.enlightenment.org/D1918
Diffstat (limited to 'src/lib/elm_toolbar.c')
-rw-r--r--src/lib/elm_toolbar.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/elm_toolbar.c b/src/lib/elm_toolbar.c
index 94320d33d..650819349 100644
--- a/src/lib/elm_toolbar.c
+++ b/src/lib/elm_toolbar.c
@@ -827,6 +827,10 @@ _elm_toolbar_item_elm_widget_item_focus_set(Eo *eo_it, Elm_Toolbar_Item_Data *it
827 sd->last_focused_item = eo_it; 827 sd->last_focused_item = eo_it;
828 if (!elm_object_focus_get(obj)) 828 if (!elm_object_focus_get(obj))
829 elm_object_focus_set(obj, EINA_TRUE); 829 elm_object_focus_set(obj, EINA_TRUE);
830
831 if (!elm_widget_focus_get(obj))
832 return;
833
830 if (eo_it != sd->focused_item) 834 if (eo_it != sd->focused_item)
831 { 835 {
832 if (sd->focused_item) 836 if (sd->focused_item)
@@ -836,6 +840,8 @@ _elm_toolbar_item_elm_widget_item_focus_set(Eo *eo_it, Elm_Toolbar_Item_Data *it
836 } 840 }
837 else 841 else
838 { 842 {
843 if (!elm_widget_focus_get(obj))
844 return;
839 if (eo_it) 845 if (eo_it)
840 _elm_toolbar_item_unfocused(eo_it); 846 _elm_toolbar_item_unfocused(eo_it);
841 } 847 }