diff options
author | Mike Blumenkrantz <m.blumenkran@samsung.com> | 2013-04-19 11:02:29 +0100 |
---|---|---|
committer | Mike Blumenkrantz <m.blumenkran@samsung.com> | 2013-04-19 11:02:29 +0100 |
commit | eeb3b1908a48bce47fc3c4390f88c331a746d4c4 (patch) | |
tree | 1516ec1a71f757c1b5d86d188cf87ce5ceac5c5c /src | |
parent | c20ff690f31ac0b9bc3e07dabc09eb6d404bd56a (diff) | |
download | enlightenment-eeb3b1908a48bce47fc3c4390f88c331a746d4c4.tar.gz |
e_widget_bgpreview_desk_add now takes an evas instead of an evas object
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/e_widget_bgpreview.c | 8 | ||||
-rw-r--r-- | src/bin/e_widget_bgpreview.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/bin/e_widget_bgpreview.c b/src/bin/e_widget_bgpreview.c index 10a9440d35..5391ccfed4 100644 --- a/src/bin/e_widget_bgpreview.c +++ b/src/bin/e_widget_bgpreview.c @@ -64,7 +64,7 @@ e_widget_bgpreview_num_desks_set(Evas_Object *obj, int nx, int ny) } EAPI Evas_Object * -e_widget_bgpreview_desk_add(Evas_Object *obj, E_Zone *zone, int x, int y, int w, int h) +e_widget_bgpreview_desk_add(Evas *e, E_Zone *zone, int x, int y, int w, int h) { E_Widget_Desk_Data *dd; const char *bgfile; @@ -77,11 +77,11 @@ e_widget_bgpreview_desk_add(Evas_Object *obj, E_Zone *zone, int x, int y, int w, dd->x = x; dd->y = y; - dd->icon = edje_object_add(evas_object_evas_get(obj)); + dd->icon = edje_object_add(e); e_theme_edje_object_set(dd->icon, "base/theme/widgets", "e/widgets/bgpreview/desk"); - dd->thumb = e_icon_add(evas_object_evas_get(obj)); + dd->thumb = e_icon_add(e); e_icon_fill_inside_set(dd->thumb, EINA_FALSE); e_icon_file_edje_set(dd->thumb, bgfile, "e/desktop/background"); eina_stringshare_del(bgfile); @@ -207,7 +207,7 @@ _e_wid_reconfigure(E_Widget_Data *wd) { Evas_Object *dp; - dp = e_widget_bgpreview_desk_add(wd->obj, zone, x, y, mw, mh); + dp = e_widget_bgpreview_desk_add(evas_object_evas_get(wd->obj), zone, x, y, mw, mh); evas_object_size_hint_aspect_set(dp, EVAS_ASPECT_CONTROL_BOTH, zone->w, zone->h); evas_object_table_pack(wd->table, dp, x, y, 1, 1); wd->desks = eina_list_append(wd->desks, dp); diff --git a/src/bin/e_widget_bgpreview.h b/src/bin/e_widget_bgpreview.h index bddeef0904..09bb92a2aa 100644 --- a/src/bin/e_widget_bgpreview.h +++ b/src/bin/e_widget_bgpreview.h @@ -3,7 +3,7 @@ EAPI Evas_Object *e_widget_bgpreview_add(Evas *evas, int nx, int ny); EAPI void e_widget_bgpreview_num_desks_set(Evas_Object *obj, int nx, int ny); -EAPI Evas_Object *e_widget_bgpreview_desk_add(Evas_Object *obj, E_Zone *zone, int x, int y, int w, int h); +EAPI Evas_Object *e_widget_bgpreview_desk_add(Evas *e, E_Zone *zone, int x, int y, int w, int h); EAPI void e_widget_bgpreview_desk_configurable_set(Evas_Object *obj, Eina_Bool enable); #endif |