FN_END;
}
+void __bt_ug_set_rotation(Evas_Object *win)
+{
+ FN_START;
+
+ enum appcore_rm curr;
+ int rotate = 0;
+
+ if (appcore_get_rotation_state(&curr) < 0) {
+ BT_ERR("Fail to get rotation");
+ return;
+ }
+
+ switch (curr) {
+ case APPCORE_RM_PORTRAIT_NORMAL:
+ rotate = 0;
+ break;
+ case APPCORE_RM_PORTRAIT_REVERSE:
+ rotate = 180;
+ break;
+ case APPCORE_RM_LANDSCAPE_NORMAL:
+ rotate = 90;
+ break;
+ case APPCORE_RM_LANDSCAPE_REVERSE:
+ rotate = 270;
+ break;
+ default:
+ BT_ERR("Unknown value");
+ return;
+ }
+
+ BT_DBG("rotate: %d", rotate);
+
+ elm_win_rotation_with_resize_set(win, rotate);
+
+ FN_END;
+}
+
+
static void *__on_create(ui_gadget_h ug, enum ug_mode mode, service_h service,
void *priv)
{
if (!ugd->win_main)
return NULL;
+ __bt_ug_set_rotation(ugd->win_main);
+
if (mode == UG_MODE_FULLVIEW) {
ugd->base = __bt_create_fullview(ugd->win_main, ugd);
bg = _bt_create_bg(ugd->win_main, "group_list");