add patch
[framework/osp/uifw.git] / src / ui / controls / FUiCtrl_Indicator.cpp
index 6a9283f..a1ad07f 100644 (file)
@@ -354,22 +354,6 @@ _Indicator::AddIndicatorObject(_Control* pControl, _Window* pWindow)
        ecore_evas_callback_msg_handle_set(pPortraitEe, _Indicator::OnMessageHandle);
        ecore_evas_callback_msg_handle_set(pLandscapeEe, _Indicator::OnMessageHandle);
 
-       _EcoreEvas* pEcoreEvas = GetEcoreEvasMgr()->GetEcoreEvas();
-       int rotation = 0;
-       if (pEcoreEvas && __pWindow)
-       {
-               rotation = pEcoreEvas->GetWindowRotation(*__pWindow);
-       }
-
-       if(rotation == 0 || rotation == 180)
-       {
-               ecore_evas_msg_parent_send(pPortraitEe, MSG_DOMAIN_CONTROL_INDICATOR, MSG_ID_INDICATOR_ROTATION, &rotation, sizeof(int));
-       }
-       else
-       {
-               ecore_evas_msg_parent_send(pLandscapeEe, MSG_DOMAIN_CONTROL_INDICATOR, MSG_ID_INDICATOR_ROTATION, &rotation, sizeof(int));
-       }
-
        return r;
 }
 
@@ -469,27 +453,6 @@ _Indicator::OnChangeLayout(_ControlOrientation orientation)
                        ecore_x_e_illume_indicator_opacity_set(win, ECORE_X_ILLUME_INDICATOR_OPAQUE);
                }
        }
-
-       _EcoreEvas* pEcoreEvas = GetEcoreEvasMgr()->GetEcoreEvas();
-       int rotation = 0;
-       Ecore_Evas *pPortraitEe = ecore_evas_object_ecore_evas_get(__pPortraitIndicatorEvasObject);
-       SysTryReturnVoidResult(NID_UI_CTRL, pPortraitEe, E_SYSTEM, "[E_SYSTEM] Unable to get evas.");
-       Ecore_Evas *pLandscapeEe = ecore_evas_object_ecore_evas_get(__pLandscapeIndicatorEvasObject);
-       SysTryReturnVoidResult(NID_UI_CTRL, pLandscapeEe, E_SYSTEM, "[E_SYSTEM] Unable to get evas.");
-
-       if (pEcoreEvas && __pWindow)
-       {
-               rotation = pEcoreEvas->GetWindowRotation(*__pWindow);
-       }
-
-       if(rotation == 0 || rotation == 180)
-       {
-               ecore_evas_msg_parent_send(pPortraitEe, MSG_DOMAIN_CONTROL_INDICATOR, MSG_ID_INDICATOR_ROTATION, &rotation, sizeof(int));
-       }
-       else
-       {
-               ecore_evas_msg_parent_send(pLandscapeEe, MSG_DOMAIN_CONTROL_INDICATOR, MSG_ID_INDICATOR_ROTATION, &rotation, sizeof(int));
-       }
 }
 
 result
@@ -647,25 +610,6 @@ _Indicator::OnMessageHandle(Ecore_Evas *pEe, int msgDomain, int msgId, void *dat
                                }
                        }
                }
-
-               if (msgId == MSG_ID_INDICATOR_TYPE)
-               {
-                       _IndicatorTypeMode *pIndicatorTypeMode = (_IndicatorTypeMode*)(data);
-
-                       _Window* pWindow =      _ControlManager::GetInstance()->_ControlManager::GetTopVisibleWindow();
-                       SysTryReturnVoidResult(NID_UI_CTRL, pWindow, E_INVALID_STATE, "[E_INVALID_STATE] Indicator is not attached main tree.");
-
-                       Ecore_X_Window win = (Ecore_X_Window)pWindow->GetNativeHandle();
-
-                       if (*pIndicatorTypeMode == _INDICATOR_TYPE_1)
-                       {
-                         ecore_x_e_illume_indicator_type_set(win, ECORE_X_ILLUME_INDICATOR_TYPE_1);
-                       }
-                       else if (*pIndicatorTypeMode == _INDICATOR_TYPE_2)
-                       {
-                         ecore_x_e_illume_indicator_type_set   (win, ECORE_X_ILLUME_INDICATOR_TYPE_2);
-                       }
-               }
        }
 }