Ephoto: Use elm_win_util_standard_add()

This commit is contained in:
Daniel Juyung Seo 2015-02-23 04:46:54 +09:00
parent fd15398bb9
commit 4e3365ddbf
2 changed files with 1 additions and 9 deletions

View File

@ -109,7 +109,6 @@ struct _Ephoto_Config
struct _Ephoto struct _Ephoto
{ {
Evas_Object *win; Evas_Object *win;
Evas_Object *bg;
Evas_Object *panel; Evas_Object *panel;
Evas_Object *pager; Evas_Object *pager;

View File

@ -149,7 +149,7 @@ ephoto_window_add(const char *path)
EPHOTO_EVENT_POPULATE_END = ecore_event_type_new(); EPHOTO_EVENT_POPULATE_END = ecore_event_type_new();
EPHOTO_EVENT_POPULATE_ERROR = 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) if (!ephoto->win)
{ {
free(ephoto); free(ephoto);
@ -174,13 +174,6 @@ ephoto_window_add(const char *path)
(ephoto->config->thumb_gen_size != 512)) (ephoto->config->thumb_gen_size != 512))
ephoto_thumb_size_set(ephoto, ephoto->config->thumb_size); 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); ephoto->pager = elm_naviframe_add(ephoto->win);
elm_naviframe_prev_btn_auto_pushed_set(ephoto->pager, EINA_FALSE); elm_naviframe_prev_btn_auto_pushed_set(ephoto->pager, EINA_FALSE);
evas_object_size_hint_weight_set evas_object_size_hint_weight_set