woohyun pushed a commit to branch master.

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

commit 65d6839db1edba20737659f4f34ab07e6cd502d2
Author: Hosang Kim <hosang12....@samsung.com>
Date:   Wed Sep 23 16:20:45 2015 +0900

    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
---
 src/lib/elm_toolbar.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/lib/elm_toolbar.c b/src/lib/elm_toolbar.c
index 708f32f..124c2ca 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
      return;
 
    if (sd->select_mode == mode) return;
+   sd->select_mode = mode;
 
    if ((mode == ELM_OBJECT_SELECT_MODE_ALWAYS) &&
        (sd->select_mode != ELM_OBJECT_SELECT_MODE_ALWAYS) &&
        sd->items)
      _item_select(ELM_TOOLBAR_ITEM_FROM_INLIST(sd->items));
 
-   if (sd->select_mode != mode)
-     sd->select_mode = mode;
 }
 
 EOLIAN static Elm_Object_Select_Mode

-- 


Reply via email to