if (!evas_object_smart_type_check_ptr(obj, MY_CLASS_NAME_LEGACY))
{
Ecore_Evas *ee = ecore_evas_ecore_evas_get(evas_object_evas_get(obj));
+ if (!ee) return NULL;
return ecore_evas_window_get(ee);
}
static inline Eo *
ELM_PART_IMPLEMENT(const Efl_Class *part_klass, const Eo *obj, const char *part)
{
- return efl_add(part_klass, NULL,
+ return efl_add(part_klass, (Eo *) obj,
_elm_part_initialize(efl_added, (Eo *) obj, part));
}
*******/
#define elm_legacy_add(k, p, ...) ({ \
- efl_add(k, p, efl_canvas_object_legacy_ctor(efl_added), ##__VA_ARGS__); })
+ efl_add(k, p ? p : efl_main_loop_get(), efl_canvas_object_legacy_ctor(efl_added), ##__VA_ARGS__); })
static inline Eo *
elm_widget_resize_object_get(const Eo *obj)