Class: Gtk::Socket

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

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.

Parameters:

  • window (xlib::Window)

    the Window of a client participating in the XEMBED protocol.

Returns:

  • (nil)

#idxlib::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.

Returns:

  • (xlib::Window)

    the window ID for the socket

#newGtk::Widget

Create a new empty Gtk::Socket.

Returns:

#plug_windowGdk::Window

Retrieves the window of the plug. Use this to check if the plug has been created inside of the socket. available, or nil

Returns: