ruby-****@sourc*****
ruby-****@sourc*****
2011年 8月 26日 (金) 23:51:41 JST
------------------------- REMOTE_ADDR = 178.190.198.125 REMOTE_HOST = URL = http://ruby-gnome2.sourceforge.jp/hiki.cgi?Gtk%3A%3ASocket ------------------------- @@ -2,7 +2,9 @@ Together with Gtk::Plug, Gtk::Socket provides the ability to embed widgets from one process into another process in a fashion that is transparent to the user. -One process creates a Gtk::Socket widget and, passes that widget's window ID to the other process, which then creates a Gtk::Plug with that window ID. Any widgets contained in the Gtk::Plug then will appear inside the first applications window. +One process creates a Gtk::Socket widget and, passes that widget's window ID to the other process, which then creates a Gtk::Plug with that window ID. + +Any widgets contained in the Gtk::Plug then will appear inside the first applications window. The socket's window ID is obtained by using Gtk::Socket#id. Before using this method, the socket must have been realized, and for hence, have been added to its parent.