GTK+ Reference Manual | |||
---|---|---|---|
<<< Previous Page | Home | Up | Next Page >>> |
#include <gtk/gtk.h> struct GtkPlug; void gtk_plug_construct (GtkPlug *plug, guint32 socket_id); GtkWidget* gtk_plug_new (guint32 socket_id); |
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 XID of that widgets window to the other process, which then creates a GtkPlug window with that XID. Any widgets contained in the GtkPlug then will appear inside the first applications window.