Name
BonoboWidget -- Simplified embedding of widgets in Bonobo.
Description
Bonobo component embedding for hydrocephalic imbeciles.
Pure cane sugar.
This purpose of BonoboWidget is to make container-side use of Bonobo
as easy as pie. This widget has two functions:
Provide a simple wrapper for embedding a single-view
subdocument. In this case, BonoboWidget handles creating the
embeddable, binding it to a local BonoboClientSite, creating a
view for it, and displaying the view. You can use the
accessor functions (bonobo_widget_get_view_frame, etc) to get
at the actual Bonobo objects which underlie the whole process.
In order to do this, just call:
And then insert the 'bw' widget into the widget tree of your application like so:
You are free to make the UIContainer argument to
bonobo_widget_new_subdoc() be CORBA_OBJECT_NIL.
Provide a simple wrapper for embedding Controls. Embedding
controls is already really easy, but BonoboWidget reduces the
work from about 5 lines to 1. To embed a given control, just
do:
There are also functions for fetching and setting values in the
Control PropertyBag, but the use of these functions is
discouraged.
Details
BONOBO_WIDGET_TYPE
#define BONOBO_WIDGET_TYPE (bonobo_widget_get_type ()) |
BONOBO_WIDGET()
#define BONOBO_WIDGET(o) (GTK_CHECK_CAST ((o), BONOBO_WIDGET_TYPE, BonoboWidget)) |
BONOBO_WIDGET_CLASS()
#define BONOBO_WIDGET_CLASS(k) (GTK_CHECK_CLASS_CAST((k), BONOBO_WIDGET_TYPE, BonoboWidgetClass)) |
BONOBO_IS_WIDGET()
#define BONOBO_IS_WIDGET(o) (GTK_CHECK_TYPE ((o), BONOBO_WIDGET_TYPE)) |
BONOBO_IS_WIDGET_CLASS()
#define BONOBO_IS_WIDGET_CLASS(k) (GTK_CHECK_CLASS_TYPE ((k), BONOBO_WIDGET_TYPE)) |
BonoboWidgetClass
typedef struct {
GtkBinClass bin_class;
} BonoboWidgetClass; |
bonobo_widget_get_server ()
bonobo_widget_new_control ()
GtkWidget* bonobo_widget_new_control (const char *goad_id,
Bonobo_UIContainer uih); |
bonobo_widget_new_control_from_objref ()
GtkWidget* bonobo_widget_new_control_from_objref
(Bonobo_Control control,
Bonobo_UIContainer uih); |
bonobo_widget_get_control_frame ()
bonobo_widget_new_subdoc ()
GtkWidget* bonobo_widget_new_subdoc (const char *object_desc,
Bonobo_UIContainer uih); |
bonobo_widget_get_container ()
bonobo_widget_get_client_site ()
BonoboClientSite* bonobo_widget_get_client_site
(BonoboWidget *bw); |
bonobo_widget_get_view_frame ()
BonoboViewFrame* bonobo_widget_get_view_frame
(BonoboWidget *bw); |
bonobo_widget_get_uih ()
Bonobo_UIContainer bonobo_widget_get_uih (BonoboWidget *bw); |
bonobo_widget_set_property ()
void bonobo_widget_set_property (BonoboWidget *control,
const char *first_prop,
...); |
bonobo_widget_get_property ()
void bonobo_widget_get_property (BonoboWidget *control,
const char *first_prop,
...); |