Do not recalculate table/box if size does not really changed.

SVN revision: 38950
This commit is contained in:
Gustavo Sverzut Barbieri 2009-02-05 12:38:04 +00:00
parent 3f767e7cf8
commit a6e8f2cd36
2 changed files with 8 additions and 2 deletions

View 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);
}

View 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);
}