From 877d47329042c419a3d7689b908352ae3f87d14c Mon Sep 17 00:00:00 2001 From: Radek Kintop Date: Wed, 16 Mar 2016 14:12:08 +0100 Subject: [PATCH] Some functionalities are hidden before prebeta release(2) Change-Id: Ia46b836bfb2c4d7eb8489cb82f41e960dec5d30a Signed-off-by: Radek Kintop --- res/layout/system.edc | 4 ++-- src/common/menumgr.c | 3 ++- src/common/utils.c | 5 +++-- src/layout/layout_system.c | 4 ++-- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/res/layout/system.edc b/res/layout/system.edc index b425495..318f562 100644 --- a/res/layout/system.edc +++ b/res/layout/system.edc @@ -40,7 +40,7 @@ group { } rel2 { to, "area"; - relative, 0.0 0.0; + relative, 0.25 0.0; } align, 0.0 0.0; fixed, 1 1; @@ -55,7 +55,7 @@ group { min, 65 148; rel1 { to, "area"; - relative, 1.0 1.0; + relative, 0.75 1.0; } rel2 { to, "area"; diff --git a/src/common/menumgr.c b/src/common/menumgr.c index 4c1ce9e..2515342 100644 --- a/src/common/menumgr.c +++ b/src/common/menumgr.c @@ -27,7 +27,7 @@ #include "common/menumgr.h" #define MAX_BTN 8 -#define MAX_BTN_COL 4 +#define MAX_BTN_COL 2 #define STATUS_DEFAULT "N/A" @@ -222,6 +222,7 @@ struct menumgr *menumgr_create(Evas_Object *table, Evas_Object *tab_menu_btn, col = i % MAX_BTN_COL; row = i / MAX_BTN_COL; + _DBG("i %d col %d row %d", i, col, row); elm_table_pack(table, btn, col, row, 1, 1); diff --git a/src/common/utils.c b/src/common/utils.c index c958098..36b4390 100644 --- a/src/common/utils.c +++ b/src/common/utils.c @@ -193,9 +193,10 @@ Evas_Object *utils_add_table(Evas_Object *parent, int padding_x, int padding_y) elm_table_homogeneous_set(table, EINA_TRUE); elm_table_padding_set(table, padding_x, padding_y); - evas_object_size_hint_weight_set(table, EVAS_HINT_EXPAND, + evas_object_size_hint_weight_set(table, 0.5, EVAS_HINT_EXPAND); - evas_object_size_hint_align_set(table, EVAS_HINT_FILL, EVAS_HINT_FILL); + //evas_object_size_hint_align_set(table, EVAS_HINT_FILL, EVAS_HINT_FILL); + //evas_object_size_hint_align_set(table, 0.5, EVAS_HINT_FILL); evas_object_show(table); diff --git a/src/layout/layout_system.c b/src/layout/layout_system.c index 49ff6c9..9135cdb 100644 --- a/src/layout/layout_system.c +++ b/src/layout/layout_system.c @@ -88,7 +88,7 @@ static struct menumgr_info menu_info[] = { .progress_value = NULL, .progress_evas = NULL, .update_cb = settings_clock_set_state_update_callbacks - },*/ + }, { .id = MENU_SLEEP_TIMER, .title = STR_SLEEP_TIMER, @@ -101,7 +101,7 @@ static struct menumgr_info menu_info[] = { .progress_value = NULL, .progress_evas = NULL, .update_cb = set_callback_for_sleep_timer_change - },/* + }, { .id = MENU_WAKEUP_TIMER, .title = STR_WAKEUP_TIMER, -- 2.7.4