[Task-mgr] Remove the bg
authormoon87.park <moon87.park@samsung.com>
Wed, 24 Jun 2015 12:14:35 +0000 (21:14 +0900)
committermoon87.park <moon87.park@samsung.com>
Wed, 24 Jun 2015 12:14:35 +0000 (21:14 +0900)
Change-Id: Ib07f7b396d7eaa1d16c355a5560eed1d4836c152

include/main.h
src/main.c

index 62c9bdd..463cc32 100644 (file)
@@ -23,7 +23,6 @@
 typedef struct {
        Evas            *e;
        Evas_Object *win;
-       Evas_Object *bg;
        Evas_Object *layout;
        Evas_Object *scroller;
        Evas_Object *box;
index e7b7096..ba76a5b 100644 (file)
@@ -79,17 +79,6 @@ static task_mgr_error_e _create_layout(Evas_Object *parent)
        Evas_Object *layout = NULL;
        Eina_Bool ret = EINA_FALSE;
 
-       // create bg
-       main_info.bg = elm_bg_add(main_info.win);
-       if (!main_info.bg) {
-               _E("cannot create bg");
-               evas_object_del(main_info.win);
-       }
-
-       elm_win_resize_object_add(main_info.win, main_info.bg);
-       evas_object_color_set(main_info.bg, 0, 0, 0, BG_COLOR);
-       evas_object_show(main_info.bg);
-
        // create layout
        layout = elm_layout_add(parent);
        goto_if (!layout, ERROR);
@@ -112,7 +101,6 @@ static task_mgr_error_e _create_layout(Evas_Object *parent)
 
 ERROR:
        if (layout) evas_object_del(layout);
-       if (main_info.bg) evas_object_del(main_info.bg);
        evas_object_del(main_info.win);
        return TASK_MGR_ERROR_FAIL;
 }
@@ -175,7 +163,6 @@ static bool _create_cb(void *data)
        main_info.win = elm_win_add(NULL, "Task-mgr", ELM_WIN_BASIC);
        retv_if(!main_info.win, false);
 
-       //elm_app_base_scale_set(2.2);
        elm_win_screen_size_get(main_info.win, NULL, NULL, &main_info.root_w, &main_info.root_h);
        _D("screen size is (%d, %d)", main_info.root_w, main_info.root_h);