naviframe - signal send for back button when compress mode is changed
authorChunEon Park <chuneon.park@samsung.com>
Fri, 5 Apr 2013 07:39:13 +0000 (16:39 +0900)
committerSungho Kwak <sungho1.kwak@samsung.com>
Wed, 12 Jun 2013 04:15:23 +0000 (13:15 +0900)
now back buttons can be changed to sip hide style

Conflicts:

src/lib/elc_naviframe.c

Change-Id: I0b7e85ac13edc9db0b7176a98fb38c0daf6d6e88

src/lib/elc_naviframe.c

index 8e00ee5..b4e6f61 100644 (file)
@@ -1201,9 +1201,25 @@ _item_dispmode_set(Elm_Naviframe_Item *it, Evas_Display_Mode dispmode)
    switch (dispmode)
      {
       case EVAS_DISPLAY_MODE_COMPRESS:
+         //Tizen Only: Temporary code. block the focus for the back button for
+         //H/W Key event support.
+         if (it->title_prev_btn)
+           {
+              elm_object_signal_emit(it->title_prev_btn,
+                                     "elm,state,display,compress", "elm");
+              elm_object_focus_allow_set(it->title_prev_btn, EINA_FALSE);
+           }
          elm_object_signal_emit(VIEW(it), "elm,state,display,compress", "elm");
          break;
       default:
+         //Tizen Only: Temporary code. block the focus for the back button for
+         //H/W Key event support.
+         if (it->title_prev_btn)
+           {
+              elm_object_signal_emit(it->title_prev_btn,
+                                     "elm,state,display,default", "elm");
+              elm_object_focus_allow_set(it->title_prev_btn, EINA_TRUE);
+           }
          elm_object_signal_emit(VIEW(it), "elm,state,display,default", "elm");
          break;
      }