add external api call to call smart calc calls on al smarts on a canvas
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 8 Oct 2009 14:28:21 +0000 (14:28 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 8 Oct 2009 14:28:21 +0000 (14:28 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@42960 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/canvas/evas_object_smart.c

index a9f400c..0a318f9 100644 (file)
@@ -544,7 +544,6 @@ evas_object_smart_need_recalculate_get(const Evas_Object *obj)
  * Call user provided calculate() and unset need_calculate.
  *
  * @param obj the smart object
- * @return if flag is set or not.
  *
  * @ingroup Evas_Smart_Object_Group
  */
@@ -568,6 +567,23 @@ evas_object_smart_calculate(Evas_Object *obj)
 }
 
 /**
+ * Call user provided calculate() and unset need_calculate on all objects.
+ *
+ * @param e The canvas to calculate all objects in
+ *
+ * @ingroup Evas_Smart_Object_Group
+ */
+EAPI void
+evas_smart_objects_calculate(Evas *e)
+{
+   MAGIC_CHECK(e, Evas, MAGIC_EVAS);
+   return RENDER_METHOD_INVALID;
+   MAGIC_CHECK_END();
+   
+   evas_call_smarts_calculate(e);
+}
+
+/**
  * Call calculate() on all smart objects that need_recalculate.
  *
  * @internal