elm_box.c: Fix in elm_box_layout_transition
authorIván Briano <sachieru@gmail.com>
Thu, 11 Nov 2010 16:22:55 +0000 (16:22 +0000)
committerIván Briano <sachieru@gmail.com>
Thu, 11 Nov 2010 16:22:55 +0000 (16:22 +0000)
This function does not receive the Widget object in the parameter
Evas_Object *obj, so it must not check its type with ELM_CHECK_WIDTYPE

See "Box Transition" test in the elementary_test

By: Helen Fornazier <helen.fornazier@profusion.mobi>

SVN revision: 54461

src/lib/elm_box.c

index af81a1b..770a684 100644 (file)
@@ -678,13 +678,15 @@ elm_box_layout_set(Evas_Object *obj, Evas_Object_Box_Layout cb, const void *data
  *
  * @see elm_box_transition_new
  * @see elm_box_transition_free
+ * @see elm_box_layout_set
  *
  * @ingroup Box
+ * @warning Do not call this function directly because the @p obj is not the Widget Box
+ * from elm_box_add(), it is the internal Evas_Object of the Widget Box.
  */
 EAPI void
 elm_box_layout_transition(Evas_Object *obj, Evas_Object_Box_Data *priv, void *data)
 {
-   ELM_CHECK_WIDTYPE(obj, widtype);
    Elm_Box_Transition *box_data = data;
    const double curtime = ecore_loop_time_get();