diff --git a/src/bin/ui/ui.c b/src/bin/ui/ui.c index 77edf89..b2da2f6 100644 --- a/src/bin/ui/ui.c +++ b/src/bin/ui/ui.c @@ -495,18 +495,18 @@ _genlist_ensure_n_items(Evas_Object *genlist, unsigned int items) elm_genlist_item_class_free(itc); } -static void -_bring_in(Ui *ui) +static Eina_Bool +_bring_in(void *data) { + Ui *ui; int h_page, v_page; - static Eina_Bool init_done = EINA_FALSE; - - if (init_done || !ui->ready) return; + ui = data; elm_scroller_gravity_set(ui->scroller, 0.0, 0.0); elm_scroller_last_page_get(ui->scroller, &h_page, &v_page); elm_scroller_page_bring_in(ui->scroller, h_page, v_page); - init_done = EINA_TRUE; + + return EINA_FALSE; } static void @@ -560,8 +560,6 @@ _process_list_feedback_cb(void *data, Ecore_Thread *thread EINA_UNUSED, } eina_lock_release(&_lock); - - _bring_in(ui); } static void @@ -1443,6 +1441,8 @@ evisum_ui_add(Evas_Object *parent) elm_object_focus_set(ui->entry_search, EINA_TRUE); + ecore_timer_add(2.0, _bring_in, ui); + return ui; } diff --git a/src/bin/ui/ui_memory.c b/src/bin/ui/ui_memory.c index 7d4d53d..ca9f6f2 100644 --- a/src/bin/ui/ui_memory.c +++ b/src/bin/ui/ui_memory.c @@ -150,6 +150,7 @@ ui_win_memory_add(Ui *ui) table = elm_table_add(win); evas_object_size_hint_weight_set(table, EXPAND, EXPAND); evas_object_size_hint_align_set(table, FILL, FILL); + elm_table_padding_set(table, 8, 2); evas_object_show(table); label = _label_mem(box, _("Used")); @@ -190,7 +191,7 @@ ui_win_memory_add(Ui *ui) evas_object_show(table); rect = evas_object_rectangle_add(evas_object_evas_get(win)); - evas_object_size_hint_min_set(rect, MISC_MAX_WIDTH / 2, 1); + evas_object_size_hint_min_set(rect, MISC_MIN_WIDTH, 1); elm_table_pack(table, rect, 0, 0, 1, 1); elm_table_pack(table, border, 0, 0, 1, 1); diff --git a/src/bin/ui/ui_util.h b/src/bin/ui/ui_util.h index 97aeeff..42b2a79 100644 --- a/src/bin/ui/ui_util.h +++ b/src/bin/ui/ui_util.h @@ -11,10 +11,10 @@ #define BTN_WIDTH 80 #define BTN_HEIGHT 24 -#define UI_CHILD_WIN_WIDTH 640 -#define UI_CHILD_WIN_HEIGHT 480 -#define MISC_MAX_WIDTH 640 -#define MISC_MIN_WIDTH 480 +#define UI_CHILD_WIN_WIDTH 360 +#define UI_CHILD_WIN_HEIGHT 360 +#define MISC_MAX_WIDTH 350 +#define MISC_MIN_WIDTH 340 #define TEXT_PAD " "