From: Eunyoung Lee Date: Mon, 6 Jul 2015 05:38:14 +0000 (+0900) Subject: Midify size of indicator's window X-Git-Tag: accepted/tizen/mobile/20150710.080606^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5da149be4b7cf6efb89cf20de965edf96399792c;p=apps%2Fcore%2Fpreloaded%2Findicator-win.git Midify size of indicator's window Change-Id: I3fb6a27348acf523d45f456cea763db5b5c00562 --- diff --git a/daemon/main.c b/daemon/main.c index a18e2cc..232799a 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -693,22 +693,31 @@ static void _create_win(void* data) /* FIXME : get indicator width and height withour ecore_x API */ elm_win_screen_size_get(ad->win.win, NULL, NULL, &root_w, &root_h); - _D("Window w (%d)", root_w); + _D("Window w,h (%d, %d)", root_w, root_h); - if (root_w > qHD_RESOLUTION_WIDTH) { // HD - ad->win.port_w = root_w; +// if (root_w > qHD_RESOLUTION_WIDTH) { // HD + ad->win.port_w = 720; ad->win.land_w = 1280; - ad->win.h = root_h; + ad->win.h = 48; + /* FIXME */ + root_w = 720; +#if 0 } else if (root_w < qHD_RESOLUTION_WIDTH) { // WVGA - ad->win.port_w = root_w; + ad->win.port_w = 480; ad->win.land_w = 800; - ad->win.h = root_h; + ad->win.h = 36; + /* FIXME */ + root_w = 480; } else { // qHD - ad->win.port_w = root_w; + ad->win.port_w = 540; ad->win.land_w = 960; - ad->win.h = root_h; + ad->win.h = 38; + /* FIXME */ + root_w = 540; } +#endif ad->win.w = root_w; + _D("=============================== Window w, h (%d, %d)", ad->win.port_w, ad->win.h); if (!elm_win_socket_listen(ad->win.win , indi_name, 0, EINA_FALSE)) { _E("failed 1st to elm_win_socket_listen() %x", ad->win.win); @@ -719,11 +728,12 @@ static void _create_win(void* data) } listen_timer = ecore_timer_add(3, (void *)_indicator_listen_timer_cb, &(ad->win)); } +#if 0 elm_win_alpha_set(ad->win.win , EINA_TRUE); elm_win_borderless_set(ad->win.win , EINA_TRUE); evas_object_size_hint_fill_set(ad->win.win , EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); evas_object_size_hint_align_set(ad->win.win , 1.0, 0.5); - +#endif ad->win.evas = evas_object_evas_get(ad->win.win); ad->win.layout = _create_layout(ad->win.win, EDJ_FILE0, GRP_MAIN);