diff options
Diffstat (limited to 'viewer')
-rwxr-xr-x | viewer/src/msg-ui-viewer-callback.c | 1 | ||||
-rwxr-xr-x | viewer/src/msg-ui-viewer-main.c | 7 |
2 files changed, 3 insertions, 5 deletions
diff --git a/viewer/src/msg-ui-viewer-callback.c b/viewer/src/msg-ui-viewer-callback.c index 8e613e9..2121301 100755 --- a/viewer/src/msg-ui-viewer-callback.c +++ b/viewer/src/msg-ui-viewer-callback.c @@ -43,7 +43,6 @@ void msg_ui_viewer_layout_cb(ui_gadget_h ug, enum ug_mode mode, void *priv) switch (mode) { case UG_MODE_FULLVIEW: evas_object_size_hint_weight_set(base, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); - elm_win_resize_object_add(win, base); evas_object_show(base); break; diff --git a/viewer/src/msg-ui-viewer-main.c b/viewer/src/msg-ui-viewer-main.c index 16abf9f..f5b9cbc 100755 --- a/viewer/src/msg-ui-viewer-main.c +++ b/viewer/src/msg-ui-viewer-main.c @@ -317,8 +317,8 @@ Evas_Object *msg_ui_viewer_create_bg(void *data, Evas_Object *parent) if (viewer_main_data->bg == NULL) { bg = elm_bg_add(parent); MSG_UI_RETV_IF(MSG_UI_LEVEL_ERR, bg == NULL, NULL); - evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); - elm_win_resize_object_add(parent, bg); + evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + elm_win_resize_object_add(parent, bg); evas_object_show(bg); viewer_main_data->bg = bg; } else { @@ -343,7 +343,6 @@ Evas_Object *msg_ui_viewer_create_layout_main(Evas_Object *parent, bool indicato elm_layout_theme_set(layout, "layout", "application", "noindicator"); evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); - elm_win_resize_object_add(parent, layout); evas_object_show(layout); return layout; @@ -602,4 +601,4 @@ void msg_ui_viewer_change_language(void *data) elm_entry_entry_set(viewer_play_data->render_entry, buf_helptext); } } -}
\ No newline at end of file +} |