ruby-****@sourc*****
ruby-****@sourc*****
2014年 9月 11日 (木) 14:15:06 JST
------------------------- REMOTE_ADDR = 106.188.9.78 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/ja/hiki.cgi?Gtk%3A%3AObject ------------------------- @@ -1,4 +1,6 @@ = Gtk::Object クラス +((*Ruby/GTK2 only*)) + Gtk::Object is the base class for all widgets, and for a few non-widget objects such as Gtk::Adjustment. Gtk::Object predates GLib::Object; non-widgets that derive from Gtk::Object rather than GLib::Object do so for backward compatibility reasons. In Ruby/GTK, one of the difference between Gtk::Object and GLib::Object is the "destroy" signal, emitted by the Gtk::Object#destroy method. The "destroy" signal asks all code owning a reference to an object to release said reference. So, for example, if you call Gtk::Object#destroy on a Gtk::Window, Ruby/GTK will release it; if you call Gtk::Object#destroy on a Gtk::Button, then the button will be removed from its parent container and the parent container will release its reference to the button.