2013-01-03 Thiep Ha
* Fix list separator size bug.
+
+2013-01-03 Jaehwan Kim
+
+ * Fix the bug which the callbacks of the sub-object are added even if the sub-object is added the parent object.
* Tooltips now correctly set NETWM tooltip window type
* Fix the naviframe item part text to be set properly.
* Fix list separator size bug.
+ * Fix the bug which the callbacks of the sub-object are added even if the sub-object is added the parent object.
Removals:
Eina_Bool int_ret;
if (ret) *ret = EINA_FALSE;
+ if (evas_object_data_get(sobj, "elm-parent") == obj)
+ goto end;
+
eo_do_super(obj, elm_wdg_sub_object_add(sobj, &int_ret));
if (!int_ret) return;
evas_object_event_callback_add
(sobj, EVAS_CALLBACK_CHANGED_SIZE_HINTS, _changed_size_hints_cb, obj);
+end:
if (ret) *ret = EINA_TRUE;
}
Eina_Bool int_ret;
Elm_Hover_Smart_Data *sd = _pd;
+ if (evas_object_data_get(sobj, "elm-parent") == obj)
+ goto end;
+
eo_do_super(obj, elm_wdg_sub_object_add(sobj, &int_ret));
if (!int_ret) return;
evas_object_event_callback_add
(sobj, EVAS_CALLBACK_CHANGED_SIZE_HINTS, _on_smt_sub_changed, obj);
+end:
if (ret) *ret = EINA_TRUE;
}
Evas_Object *sobj = va_arg(*list, Evas_Object *);
Eina_Bool *ret = va_arg(*list, Eina_Bool *);
if (ret) *ret = EINA_FALSE;
-
Eina_Bool int_ret = EINA_FALSE;
+ if (evas_object_data_get(sobj, "elm-parent") == obj)
+ goto end;
+
eo_do_super(obj, elm_wdg_sub_object_add(sobj, &int_ret));
if (!int_ret) return;
(sobj, EVAS_CALLBACK_CHANGED_SIZE_HINTS,
_on_sub_object_size_hint_change, obj);
+end:
if (ret) *ret = EINA_TRUE;
}