emit unselected signal for menu button when launched from recent app 39/45739/1 accepted/tizen/tv/20150812.005245 submit/tizen/20150811.122038
authorJehun Lim <jehun.lim@samsung.com>
Tue, 11 Aug 2015 04:19:22 +0000 (13:19 +0900)
committerJehun Lim <jehun.lim@samsung.com>
Tue, 11 Aug 2015 04:25:41 +0000 (13:25 +0900)
Change-Id: I25299c860f9f426e2b9eea91c8dc5715ec2add7b
Signed-off-by: Jehun Lim <jehun.lim@samsung.com>
src/view/base.c

index 6f18cdd..b1998b6 100644 (file)
@@ -86,6 +86,10 @@ static void _set_current_layout(struct _priv *priv, int layout)
                        g_menu_item[priv->current_layout].layout_id);
        layoutmgr_show_layout(priv->lmgr, g_menu_item[layout].layout_id);
 
+       if (priv->focused_btn)
+               elm_object_signal_emit(priv->focused_btn,
+                               SIG_BTN_UNSELECTED, SIG_SOURCE_SRC);
+
        priv->focused_btn = priv->btn[layout];
        priv->current_layout = layout;
 }
@@ -138,10 +142,6 @@ static void _focused_cb(int id, void *data, Evas_Object *obj,
        if (priv->focused_btn == obj)
                return;
 
-       if (priv->focused_btn)
-               elm_object_signal_emit(priv->focused_btn, SIG_BTN_UNSELECTED,
-                                       SIG_SOURCE_SRC);
-
        _set_current_layout(priv, i);
 
        layoutmgr_update_layout(priv->lmgr, g_menu_item[i].layout_id,