/*
- * $Id: rb_part.c 59 2004-08-10 14:10:31Z tilman $
+ * $Id: rb_part.c 69 2004-08-16 15:42:51Z tilman $
*
* Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
*
GET_OBJ (target, RbEvasObject, t);
edje_object_part_swallow (e->real.real, GET_NAME (self), t->real);
+ rb_iv_set (self, "swallowed_obj", target);
return Qnil;
}
}
edje_object_part_unswallow (e->real.real, o);
+ rb_iv_set (self, "swallowed_obj", Qnil);
return Qnil;
}
static VALUE c_swallowed_object_get (VALUE self)
{
Evas_Object *o;
- void *obj;
GET_OBJ (GET_EDJE (self), RbEdje, e);
if (!o)
return Qnil;
- if (!(obj = evas_object_data_get (o, RUBY_EVAS_OBJECT_KEY))) {
- rb_raise (rb_eException, "EvasObject Ruby object key missing");
- return Qnil;
- }
-
- return (VALUE) obj;
+ return TO_EVAS_OBJECT (o);
}
/*