Do not recalculate table/box if size does not really changed.
authorbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 5 Feb 2009 12:38:04 +0000 (12:38 +0000)
committerbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 5 Feb 2009 12:38:04 +0000 (12:38 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@38950 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/canvas/evas_object_box.c
src/lib/canvas/evas_object_table.c

index 0ca4fe9..fa1b300 100644 (file)
@@ -435,8 +435,11 @@ _evas_object_box_smart_del(Evas_Object *o)
 }
 
 static void
-_evas_object_box_smart_resize(Evas_Object *o, int w, int h)
+_evas_object_box_smart_resize(Evas_Object *o, Evas_Coord w, Evas_Coord h)
 {
+   Evas_Coord ow, oh;
+   evas_object_geometry_get(o, NULL, NULL, &ow, &oh);
+   if ((ow == w) && (oh == h)) return;
    evas_object_smart_changed(o);
 }
 
index f39d229..57f2137 100644 (file)
@@ -855,8 +855,11 @@ _evas_object_table_smart_del(Evas_Object *o)
 }
 
 static void
-_evas_object_table_smart_resize(Evas_Object *o, int w, int h)
+_evas_object_table_smart_resize(Evas_Object *o, Evas_Coord w, Evas_Coord h)
 {
+   Evas_Coord ow, oh;
+   evas_object_geometry_get(o, NULL, NULL, &ow, &oh);
+   if ((ow == w) && (oh == h)) return;
    evas_object_smart_changed(o);
 }