GTK+ Reference Manual | |||
---|---|---|---|
<<< Previous Page | Home | Up | Next Page >>> |
#include <gtk/gtk.h> struct GtkPlug; void gtk_plug_construct (GtkPlug *plug, GdkNativeWindow socket_id); GtkWidget* gtk_plug_new (GdkNativeWindow socket_id); GdkNativeWindow gtk_plug_get_id (GtkPlug *plug); |
GObject +----GtkObject +----GtkWidget +----GtkContainer +----GtkBin +----GtkWindow +----GtkPlug |
Together with GtkSocket, GtkPlug 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 GtkSocket widget and, passes the ID of that widgets window to the other process, which then creates a GtkPlug with that window ID. Any widgets contained in the GtkPlug then will appear inside the first applications window.
void gtk_plug_construct (GtkPlug *plug, GdkNativeWindow socket_id); |
Finishes the creation of a GtkPlug widget. This function will generally only be used by classes deriving from GtkPlug.
plug : | a GtkPlug widget. |
socket_id : | the window ID of the socket. |
GtkWidget* gtk_plug_new (GdkNativeWindow socket_id); |
Creates a new plug widget inside the GtkSocket identified by socket_id. If socket_id is 0, the plug is left "unplugged" and can later be plugged into a GtkSocket by gtk_socket_add_id().
socket_id : | the window ID of the socket, or 0. |
Returns : | the new GtkPlug widget. |
void user_function (GtkPlug *plug, gpointer user_data); |
plug : | the object which received the signal. |
user_data : | user data set when the signal handler was connected. |