Class: Gtk::Socket
- Inherits:
-
Object
- Object
- Gtk::Socket
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#add_id(window) ⇒ nil
Adds an XEMBED client, such as a Gtk::Plug, to the #GtkSocket.
-
#id ⇒ xlib::Window
Gets the window ID of a Gtk::Socket widget, which can then be used to create a client embedded inside the socket, for instance with gtk_plug_new().
-
#new ⇒ Gtk::Widget
Create a new empty Gtk::Socket.
-
#plug_window ⇒ Gdk::Window
Retrieves the window of the plug.
Instance Method Details
#add_id(window) ⇒ nil
Adds an XEMBED client, such as a Gtk::Plug, to the #GtkSocket. The client may be in the same process or in a different process.
To embed a Gtk::Plug in a #GtkSocket, you can either create the Gtk::Plug with ‘gtk_plug_new (0)`, call gtk_plug_get_id() to get the window ID of the plug, and then pass that to the gtk_socket_add_id(), or you can call gtk_socket_get_id() to get the window ID for the socket, and call gtk_plug_new() passing in that ID.
The Gtk::Socket must have already be added into a toplevel window
before you can make this call.
#id ⇒ xlib::Window
Gets the window ID of a Gtk::Socket widget, which can then be used to create a client embedded inside the socket, for instance with gtk_plug_new().
The Gtk::Socket must have already be added into a toplevel window before you can make this call.
#new ⇒ Gtk::Widget
Create a new empty Gtk::Socket.
#plug_window ⇒ Gdk::Window
Retrieves the window of the plug. Use this to check if the plug has been created inside of the socket. available, or nil