ruby-****@sourc*****
ruby-****@sourc*****
2005年 11月 3日 (木) 22:31:08 JST
------------------------- REMOTE_ADDR = 218.231.161.82 REMOTE_HOST = REMOTE_USER = ruby-gnome2-hiki URL = /hiki.cgi?How+to+Implement+Ruby-GNOME2 ------------------------- @@ -112,12 +112,21 @@ === Relatives This saves an object from the GC. Usually obj is self and rel is child widget/object or proc object. ---- G_RELATIVE(obj, rel) - Make a relation. ---- G_RELATIVE2(obj, rel, id, hash_key) +--- G_RELATIVE(self, rel) + Make a relation. Use this with proc object. +--- G_RELATIVE2(self, rel, id, hash_key) Make a removable relation. ---- G_REMOVE_RELATIVE(obj, id, hash_key) +--- G_REMOVE_RELATIVE(self, id, hash_key) Remove a relation. + +--- G_CHILD_SET(self, id, child) + Sets child to self with id(rb_intern value). +--- G_CHILD_UNSET(self, id) + Unsets the child value of the id. +--- G_CHILD_ADD(self, child) + Adds a child to self. This is equivalant with G_RELATIVE(self, child), but the name is obviously. +--- G_CHILD_REMOVE(self, child) + Remove child from self. === Setter methods --- G_DEF_SETTER(klass, name)