summaryrefslogtreecommitdiff
path: root/src/bin/e_widget_bgpreview.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <m.blumenkran@samsung.com>2013-04-19 11:02:29 +0100
committerMike Blumenkrantz <m.blumenkran@samsung.com>2013-04-19 11:02:29 +0100
commiteeb3b1908a48bce47fc3c4390f88c331a746d4c4 (patch)
tree1516ec1a71f757c1b5d86d188cf87ce5ceac5c5c /src/bin/e_widget_bgpreview.c
parentc20ff690f31ac0b9bc3e07dabc09eb6d404bd56a (diff)
downloadenlightenment-eeb3b1908a48bce47fc3c4390f88c331a746d4c4.tar.gz
e_widget_bgpreview_desk_add now takes an evas instead of an evas object
Diffstat (limited to 'src/bin/e_widget_bgpreview.c')
-rw-r--r--src/bin/e_widget_bgpreview.c8
1 files changed, 4 insertions, 4 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);