discomfitor pushed a commit to branch master.

commit f0f998f7f6acea16ed7f60cd10ce68d54953851e
Author: Mike Blumenkrantz <[email protected]>
Date:   Fri Apr 19 12:47:45 2013 +0100

    creating individual bgpreview objects no longer requires sizes
---
 src/bin/e_widget_bgpreview.c | 8 ++++----
 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 b91bc0d..51e6f5b 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 *e, 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)
 {
    E_Widget_Desk_Data *dd;
    const char *bgfile;
@@ -88,8 +88,6 @@ e_widget_bgpreview_desk_add(Evas *e, E_Zone *zone, int x, int 
y, int w, int h)
    evas_object_show(dd->thumb);
    edje_object_part_swallow(dd->icon, "e.swallow.content", dd->thumb);
 
-   evas_object_size_hint_min_set(dd->icon, w, h);
-   evas_object_size_hint_max_set(dd->icon, w, h);
    evas_object_show(dd->icon);
    evas_object_data_set(dd->icon, "desk_data", dd);
    dd->configurable = EINA_TRUE;
@@ -207,7 +205,9 @@ _e_wid_reconfigure(E_Widget_Data *wd)
           {
              Evas_Object *dp;
 
-             dp = e_widget_bgpreview_desk_add(evas_object_evas_get(wd->obj), 
zone, x, y, mw, mh);
+             dp = e_widget_bgpreview_desk_add(evas_object_evas_get(wd->obj), 
zone, x, y);
+             evas_object_size_hint_min_set(dp, mw, mh);
+             evas_object_size_hint_max_set(dp, 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 09bb92a..adada53 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 *e, 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);
 EAPI void e_widget_bgpreview_desk_configurable_set(Evas_Object *obj, Eina_Bool 
enable);
 
 #endif

-- 

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter

Reply via email to