summaryrefslogtreecommitdiff
path: root/src
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
parentc20ff690f31ac0b9bc3e07dabc09eb6d404bd56a (diff)
downloadenlightenment-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.c8
-rw-r--r--src/bin/e_widget_bgpreview.h2
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