GtkPlug Constructor

GtkPlug Constructor

GtkPlug (int socket_id);

Creates a new plug which will be connected to the socket specified by the socket_id.

You should make sure that the socket exists when connecting the plug to it. If it does not, the results are undefined. Probably a new GtkWindow will be created and the plug embedded in this window, but you shouldn't rely on that behavior.

The following example creates a plug which connects to the socket created in the constructor example of GtkSocket.

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.