/*
- * $Id: rb_smart.c 374 2006-02-21 21:20:35Z tilman $
+ * $Id: rb_smart.c 380 2006-05-21 14:54:58Z tilman $
*
* Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
*
return self;
}
+static VALUE c_add_member (VALUE self, VALUE member)
+{
+ GET_OBJ (self, RbEvasObject, e);
+ GET_OBJ (member, RbEvasObject, e2);
+
+ /* weird order of arguments */
+ evas_object_smart_member_add (e2->real, e->real);
+
+ return Qnil;
+}
+
void Init_Smart (void)
{
VALUE c = rb_define_class_under (mEvas, "Smart", cEvasObject);
rb_define_singleton_method (c, "inherited", c_inherited, 1);
rb_define_method (c, "initialize", c_init, 1);
+ rb_define_method (c, "add_member", c_add_member, 1);
id_smart_object = rb_intern ("SMART_OBJECT");
}