diff --git a/src/bin/ephoto.h b/src/bin/ephoto.h index 93f21ba..a9f5f39 100644 --- a/src/bin/ephoto.h +++ b/src/bin/ephoto.h @@ -109,7 +109,6 @@ struct _Ephoto_Config struct _Ephoto { Evas_Object *win; - Evas_Object *bg; Evas_Object *panel; Evas_Object *pager; diff --git a/src/bin/ephoto_main.c b/src/bin/ephoto_main.c index 7126e1a..e181205 100644 --- a/src/bin/ephoto_main.c +++ b/src/bin/ephoto_main.c @@ -149,7 +149,7 @@ ephoto_window_add(const char *path) EPHOTO_EVENT_POPULATE_END = ecore_event_type_new(); EPHOTO_EVENT_POPULATE_ERROR = ecore_event_type_new(); - ephoto->win = elm_win_add(NULL, "ephoto", ELM_WIN_BASIC); + ephoto->win = elm_win_util_standard_add("ephoto", "Ephoto"); if (!ephoto->win) { free(ephoto); @@ -174,13 +174,6 @@ ephoto_window_add(const char *path) (ephoto->config->thumb_gen_size != 512)) ephoto_thumb_size_set(ephoto, ephoto->config->thumb_size); - ephoto->bg = elm_bg_add(ephoto->win); - evas_object_size_hint_weight_set - (ephoto->bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); - evas_object_size_hint_fill_set(ephoto->bg, EVAS_HINT_FILL, EVAS_HINT_FILL); - elm_win_resize_object_add(ephoto->win, ephoto->bg); - evas_object_show(ephoto->bg); - ephoto->pager = elm_naviframe_add(ephoto->win); elm_naviframe_prev_btn_auto_pushed_set(ephoto->pager, EINA_FALSE); evas_object_size_hint_weight_set