summaryrefslogtreecommitdiff
path: root/src/lib/elm_toolbar.c
diff options
context:
space:
mode:
authorHosang Kim <hosang12.kim@samsung.com>2015-09-23 16:20:45 +0900
committerWooHyun Jung <wh0705.jung@samsung.com>2015-09-23 16:20:45 +0900
commit65d6839db1edba20737659f4f34ab07e6cd502d2 (patch)
tree3f935585bc17ce61109342af8fe691d3acb8617a /src/lib/elm_toolbar.c
parent5c45fb0a054b8884330f23a7f9d37d05b1e9b157 (diff)
elm_toolbar: fix elm_toolbar_select_mode_set API
Summary: Item is unselected when I changed select mode "ELM_OBJECT_SELECT_MODE_DEFAULT" to "ELM_OBJECT_SELECT_MODE_ALWAYS". Reviewers: Hermet, cedric, raster, seoz, woohyun Reviewed By: woohyun Differential Revision: https://phab.enlightenment.org/D3086
Diffstat (limited to 'src/lib/elm_toolbar.c')
-rw-r--r--src/lib/elm_toolbar.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/elm_toolbar.c b/src/lib/elm_toolbar.c
index 708f32f1d..124c2ca61 100644
--- a/src/lib/elm_toolbar.c
+++ b/src/lib/elm_toolbar.c
@@ -3724,14 +3724,13 @@ _elm_toolbar_select_mode_set(Eo *obj EINA_UNUSED, Elm_Toolbar_Data *sd, Elm_Obje
3724 return; 3724 return;
3725 3725
3726 if (sd->select_mode == mode) return; 3726 if (sd->select_mode == mode) return;
3727 sd->select_mode = mode;
3727 3728
3728 if ((mode == ELM_OBJECT_SELECT_MODE_ALWAYS) && 3729 if ((mode == ELM_OBJECT_SELECT_MODE_ALWAYS) &&
3729 (sd->select_mode != ELM_OBJECT_SELECT_MODE_ALWAYS) && 3730 (sd->select_mode != ELM_OBJECT_SELECT_MODE_ALWAYS) &&
3730 sd->items) 3731 sd->items)
3731 _item_select(ELM_TOOLBAR_ITEM_FROM_INLIST(sd->items)); 3732 _item_select(ELM_TOOLBAR_ITEM_FROM_INLIST(sd->items));
3732 3733
3733 if (sd->select_mode != mode)
3734 sd->select_mode = mode;
3735} 3734}
3736 3735
3737EOLIAN static Elm_Object_Select_Mode 3736EOLIAN static Elm_Object_Select_Mode