BonoboPlug

Name

BonoboPlug -- Toplevel for embedding into other processes.

Synopsis



#define     BONOBO_PLUG                     (obj)
#define     BONOBO_PLUG_CLASS               (klass)
#define     BONOBO_IS_PLUG                  (obj)
typedef     BonoboPlug;
typedef     BonoboPlugClass;
void        bonobo_plug_construct           (BonoboPlug *plug,
                                             guint32 socket_id);
GtkWidget*  bonobo_plug_new                 (guint32 socket_id);

Description

This is an internal support routine of the X code in Bonobo.

Together with BonoboSocket, BonoboPlug 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 BonoboSocket widget and, passes the XID of that widgets window to the other process, which then creates a BonoboPlug window with that XID. Any widgets contained in the BonoboPlug then will appear inside the first applications window.

This code is a copy of GtkPlug, and it is here, as debugging and special handlers had to be setup of Bonobo. FIXME: include a full description.

Details

BONOBO_PLUG()

#define BONOBO_PLUG(obj)          GTK_CHECK_CAST (obj, bonobo_plug_get_type (), BonoboPlug)

obj : 


BONOBO_PLUG_CLASS()

#define BONOBO_PLUG_CLASS(klass)  GTK_CHECK_CLASS_CAST (klass, bonobo_plug_get_type (), BonoboPlugClass)

klass : 


BONOBO_IS_PLUG()

#define BONOBO_IS_PLUG(obj)       GTK_CHECK_TYPE (obj, bonobo_plug_get_type ())

obj : 


BonoboPlug

typedef struct {
	GtkWindow window;

	GdkWindow *socket_window;
	gint same_app;
} BonoboPlug;


BonoboPlugClass

typedef struct {
	GtkWindowClass parent_class;
} BonoboPlugClass;


bonobo_plug_construct ()

void        bonobo_plug_construct           (BonoboPlug *plug,
                                             guint32 socket_id);

plug : 
socket_id : 


bonobo_plug_new ()

GtkWidget*  bonobo_plug_new                 (guint32 socket_id);

socket_id : 
Returns : 

See Also

BonoboSocket.