46
46
</tr></table></div>
47
47
<div class="refsynopsisdiv" title="Synopsis">
48
48
<a name="libbonoboui-bonobo-ui-component.synopsis"></a><h2>Synopsis</h2>
49
<a name="BonoboUIComponent"></a><pre class="synopsis">
50
<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent-struct" title="BonoboUIComponent">BonoboUIComponent</a>;
49
<a name="BonoboUIComponent"></a><pre class="synopsis"> <a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent-struct" title="BonoboUIComponent">BonoboUIComponent</a>;
51
50
<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponentPrivate" title="BonoboUIComponentPrivate">BonoboUIComponentPrivate</a>;
52
void (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIListenerFn" title="BonoboUIListenerFn ()">*BonoboUIListenerFn</a>) (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent">BonoboUIComponent</a> *component,
54
Bonobo_UIComponent_EventType type,
57
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
58
>gpointer</a> user_data);
59
void (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIVerbFn" title="BonoboUIVerbFn ()">*BonoboUIVerbFn</a>) (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent">BonoboUIComponent</a> *component,
61
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
62
>gpointer</a> user_data,
51
<span class="returnvalue">void</span> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIListenerFn" title="BonoboUIListenerFn ()">*BonoboUIListenerFn</a>) (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent"><span class="returnvalue">BonoboUIComponent</span></a> *component,
52
const <span class="returnvalue">char</span> *path,
53
<span class="returnvalue">Bonobo_UIComponent_EventType</span> type,
54
const <span class="returnvalue">char</span> *state,
55
<span class="returnvalue">gpointer</span> user_data);
56
<span class="returnvalue">void</span> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIVerbFn" title="BonoboUIVerbFn ()">*BonoboUIVerbFn</a>) (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent"><span class="returnvalue">BonoboUIComponent</span></a> *component,
57
<span class="returnvalue">gpointer</span> user_data,
58
const <span class="returnvalue">char</span> *cname);
64
59
<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponentClass" title="BonoboUIComponentClass">BonoboUIComponentClass</a>;
65
<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent">BonoboUIComponent</a> * <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-construct" title="bonobo_ui_component_construct ()">bonobo_ui_component_construct</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent">BonoboUIComponent</a> *component,
67
<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent">BonoboUIComponent</a> * <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-new" title="bonobo_ui_component_new ()">bonobo_ui_component_new</a> (const char *name);
68
<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent">BonoboUIComponent</a> * <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-new-default" title="bonobo_ui_component_new_default ()">bonobo_ui_component_new_default</a> (void);
69
void <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-set-name" title="bonobo_ui_component_set_name ()">bonobo_ui_component_set_name</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent">BonoboUIComponent</a> *component,
71
const char * <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-get-name" title="bonobo_ui_component_get_name ()">bonobo_ui_component_get_name</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent">BonoboUIComponent</a> *component);
72
void <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-set-container" title="bonobo_ui_component_set_container ()">bonobo_ui_component_set_container</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent">BonoboUIComponent</a> *component,
73
Bonobo_UIContainer container,
74
CORBA_Environment *opt_ev);
75
void <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-unset-container" title="bonobo_ui_component_unset_container ()">bonobo_ui_component_unset_container</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent">BonoboUIComponent</a> *component,
76
CORBA_Environment *opt_ev);
77
Bonobo_UIContainer <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-get-container" title="bonobo_ui_component_get_container ()">bonobo_ui_component_get_container</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent">BonoboUIComponent</a> *component);
78
void <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-add-verb" title="bonobo_ui_component_add_verb ()">bonobo_ui_component_add_verb</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent">BonoboUIComponent</a> *component,
80
<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIVerbFn" title="BonoboUIVerbFn ()">BonoboUIVerbFn</a> fn,
82
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
83
>gpointer</a> user_data);
84
void <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-add-verb-full" title="bonobo_ui_component_add_verb_full ()">bonobo_ui_component_add_verb_full</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent">BonoboUIComponent</a> *component,
87
href="http://library.gnome.org/devel/gobject/unstable/gobject-Closures.html#GClosure"
88
>GClosure</a> *closure);
89
void <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-remove-verb" title="bonobo_ui_component_remove_verb ()">bonobo_ui_component_remove_verb</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent">BonoboUIComponent</a> *component,
91
void <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-remove-verb-by-closure" title="bonobo_ui_component_remove_verb_by_closure ()">bonobo_ui_component_remove_verb_by_closure</a>
92
(<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent">BonoboUIComponent</a> *component,
94
href="http://library.gnome.org/devel/gobject/unstable/gobject-Closures.html#GClosure"
95
>GClosure</a> *closure);
96
void <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-add-listener" title="bonobo_ui_component_add_listener ()">bonobo_ui_component_add_listener</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent">BonoboUIComponent</a> *component,
98
<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIListenerFn" title="BonoboUIListenerFn ()">BonoboUIListenerFn</a> fn,
100
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
101
>gpointer</a> user_data);
102
void <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-add-listener-full" title="bonobo_ui_component_add_listener_full ()">bonobo_ui_component_add_listener_full</a>
103
(<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent">BonoboUIComponent</a> *component,
106
href="http://library.gnome.org/devel/gobject/unstable/gobject-Closures.html#GClosure"
107
>GClosure</a> *closure);
108
void <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-remove-listener" title="bonobo_ui_component_remove_listener ()">bonobo_ui_component_remove_listener</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent">BonoboUIComponent</a> *component,
110
void <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-remove-listener-by-closure" title="bonobo_ui_component_remove_listener_by_closure ()">bonobo_ui_component_remove_listener_by_closure</a>
111
(<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent">BonoboUIComponent</a> *component,
113
href="http://library.gnome.org/devel/gobject/unstable/gobject-Closures.html#GClosure"
114
>GClosure</a> *closure);
115
void <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-set" title="bonobo_ui_component_set ()">bonobo_ui_component_set</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent">BonoboUIComponent</a> *component,
118
CORBA_Environment *opt_ev);
119
void <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-set-translate" title="bonobo_ui_component_set_translate ()">bonobo_ui_component_set_translate</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent">BonoboUIComponent</a> *component,
122
CORBA_Environment *opt_ev);
123
void <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-set-tree" title="bonobo_ui_component_set_tree ()">bonobo_ui_component_set_tree</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent">BonoboUIComponent</a> *component,
125
<a class="link" href="libbonoboui-bonobo-ui-node.html#BonoboUINode" title="BonoboUINode">BonoboUINode</a> *node,
126
CORBA_Environment *ev);
127
void <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-rm" title="bonobo_ui_component_rm ()">bonobo_ui_component_rm</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent">BonoboUIComponent</a> *component,
129
CORBA_Environment *ev);
131
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
132
>gboolean</a> <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-path-exists" title="bonobo_ui_component_path_exists ()">bonobo_ui_component_path_exists</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent">BonoboUIComponent</a> *component,
134
CORBA_Environment *ev);
135
CORBA_char * <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-get" title="bonobo_ui_component_get ()">bonobo_ui_component_get</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent">BonoboUIComponent</a> *component,
138
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
139
>gboolean</a> recurse,
140
CORBA_Environment *opt_ev);
141
<a class="link" href="libbonoboui-bonobo-ui-node.html#BonoboUINode" title="BonoboUINode">BonoboUINode</a> * <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-get-tree" title="bonobo_ui_component_get_tree ()">bonobo_ui_component_get_tree</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent">BonoboUIComponent</a> *component,
144
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"
145
>gboolean</a> recurse,
146
CORBA_Environment *opt_ev);
147
void <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-object-set" title="bonobo_ui_component_object_set ()">bonobo_ui_component_object_set</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent">BonoboUIComponent</a> *component,
149
Bonobo_Unknown control,
150
CORBA_Environment *opt_ev);
151
Bonobo_Unknown <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-object-get" title="bonobo_ui_component_object_get ()">bonobo_ui_component_object_get</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent">BonoboUIComponent</a> *component,
153
CORBA_Environment *opt_ev);
154
void <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-widget-set" title="bonobo_ui_component_widget_set ()">bonobo_ui_component_widget_set</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent">BonoboUIComponent</a> *component,
157
href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"
158
>GtkWidget</a> *widget,
159
CORBA_Environment *opt_ev);
160
void <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-freeze" title="bonobo_ui_component_freeze ()">bonobo_ui_component_freeze</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent">BonoboUIComponent</a> *component,
161
CORBA_Environment *opt_ev);
162
void <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-thaw" title="bonobo_ui_component_thaw ()">bonobo_ui_component_thaw</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent">BonoboUIComponent</a> *component,
163
CORBA_Environment *opt_ev);
164
void <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-set-prop" title="bonobo_ui_component_set_prop ()">bonobo_ui_component_set_prop</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent">BonoboUIComponent</a> *component,
168
CORBA_Environment *opt_ev);
170
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"
171
>gchar</a> * <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-get-prop" title="bonobo_ui_component_get_prop ()">bonobo_ui_component_get_prop</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent">BonoboUIComponent</a> *component,
174
CORBA_Environment *opt_ev);
175
void <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-set-status" title="bonobo_ui_component_set_status ()">bonobo_ui_component_set_status</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent">BonoboUIComponent</a> *component,
177
CORBA_Environment *opt_ev);
60
<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent"><span class="returnvalue">BonoboUIComponent</span></a> * <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-construct" title="bonobo_ui_component_construct ()">bonobo_ui_component_construct</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent"><span class="returnvalue">BonoboUIComponent</span></a> *component,
61
const <span class="returnvalue">char</span> *name);
62
<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent"><span class="returnvalue">BonoboUIComponent</span></a> * <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-new" title="bonobo_ui_component_new ()">bonobo_ui_component_new</a> (const <span class="returnvalue">char</span> *name);
63
<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent"><span class="returnvalue">BonoboUIComponent</span></a> * <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-new-default" title="bonobo_ui_component_new_default ()">bonobo_ui_component_new_default</a> (void);
64
<span class="returnvalue">void</span> <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-set-name" title="bonobo_ui_component_set_name ()">bonobo_ui_component_set_name</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent"><span class="returnvalue">BonoboUIComponent</span></a> *component,
65
const <span class="returnvalue">char</span> *name);
66
const <span class="returnvalue">char</span> * <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-get-name" title="bonobo_ui_component_get_name ()">bonobo_ui_component_get_name</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent"><span class="returnvalue">BonoboUIComponent</span></a> *component);
67
<span class="returnvalue">void</span> <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-set-container" title="bonobo_ui_component_set_container ()">bonobo_ui_component_set_container</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent"><span class="returnvalue">BonoboUIComponent</span></a> *component,
68
<span class="returnvalue">Bonobo_UIContainer</span> container,
69
<span class="returnvalue">CORBA_Environment</span> *opt_ev);
70
<span class="returnvalue">void</span> <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-unset-container" title="bonobo_ui_component_unset_container ()">bonobo_ui_component_unset_container</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent"><span class="returnvalue">BonoboUIComponent</span></a> *component,
71
<span class="returnvalue">CORBA_Environment</span> *opt_ev);
72
<span class="returnvalue">Bonobo_UIContainer</span> <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-get-container" title="bonobo_ui_component_get_container ()">bonobo_ui_component_get_container</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent"><span class="returnvalue">BonoboUIComponent</span></a> *component);
73
<span class="returnvalue">void</span> <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-add-verb" title="bonobo_ui_component_add_verb ()">bonobo_ui_component_add_verb</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent"><span class="returnvalue">BonoboUIComponent</span></a> *component,
74
const <span class="returnvalue">char</span> *cname,
75
<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIVerbFn" title="BonoboUIVerbFn ()"><span class="returnvalue">BonoboUIVerbFn</span></a> fn,
76
<span class="returnvalue">gpointer</span> user_data);
77
<span class="returnvalue">void</span> <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-add-verb-full" title="bonobo_ui_component_add_verb_full ()">bonobo_ui_component_add_verb_full</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent"><span class="returnvalue">BonoboUIComponent</span></a> *component,
78
const <span class="returnvalue">char</span> *cname,
79
<span class="returnvalue">GClosure</span> *closure);
80
<span class="returnvalue">void</span> <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-remove-verb" title="bonobo_ui_component_remove_verb ()">bonobo_ui_component_remove_verb</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent"><span class="returnvalue">BonoboUIComponent</span></a> *component,
81
const <span class="returnvalue">char</span> *cname);
82
<span class="returnvalue">void</span> <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-remove-verb-by-closure" title="bonobo_ui_component_remove_verb_by_closure ()">bonobo_ui_component_remove_verb_by_closure</a>
83
(<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent"><span class="returnvalue">BonoboUIComponent</span></a> *component,
84
<span class="returnvalue">GClosure</span> *closure);
85
<span class="returnvalue">void</span> <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-add-listener" title="bonobo_ui_component_add_listener ()">bonobo_ui_component_add_listener</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent"><span class="returnvalue">BonoboUIComponent</span></a> *component,
86
const <span class="returnvalue">char</span> *id,
87
<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIListenerFn" title="BonoboUIListenerFn ()"><span class="returnvalue">BonoboUIListenerFn</span></a> fn,
88
<span class="returnvalue">gpointer</span> user_data);
89
<span class="returnvalue">void</span> <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-add-listener-full" title="bonobo_ui_component_add_listener_full ()">bonobo_ui_component_add_listener_full</a>
90
(<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent"><span class="returnvalue">BonoboUIComponent</span></a> *component,
91
const <span class="returnvalue">char</span> *id,
92
<span class="returnvalue">GClosure</span> *closure);
93
<span class="returnvalue">void</span> <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-remove-listener" title="bonobo_ui_component_remove_listener ()">bonobo_ui_component_remove_listener</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent"><span class="returnvalue">BonoboUIComponent</span></a> *component,
94
const <span class="returnvalue">char</span> *cname);
95
<span class="returnvalue">void</span> <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-remove-listener-by-closure" title="bonobo_ui_component_remove_listener_by_closure ()">bonobo_ui_component_remove_listener_by_closure</a>
96
(<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent"><span class="returnvalue">BonoboUIComponent</span></a> *component,
97
<span class="returnvalue">GClosure</span> *closure);
98
<span class="returnvalue">void</span> <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-set" title="bonobo_ui_component_set ()">bonobo_ui_component_set</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent"><span class="returnvalue">BonoboUIComponent</span></a> *component,
99
const <span class="returnvalue">char</span> *path,
100
const <span class="returnvalue">char</span> *xml,
101
<span class="returnvalue">CORBA_Environment</span> *opt_ev);
102
<span class="returnvalue">void</span> <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-set-translate" title="bonobo_ui_component_set_translate ()">bonobo_ui_component_set_translate</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent"><span class="returnvalue">BonoboUIComponent</span></a> *component,
103
const <span class="returnvalue">char</span> *path,
104
const <span class="returnvalue">char</span> *xml,
105
<span class="returnvalue">CORBA_Environment</span> *opt_ev);
106
<span class="returnvalue">void</span> <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-set-tree" title="bonobo_ui_component_set_tree ()">bonobo_ui_component_set_tree</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent"><span class="returnvalue">BonoboUIComponent</span></a> *component,
107
const <span class="returnvalue">char</span> *path,
108
<a class="link" href="libbonoboui-bonobo-ui-node.html#BonoboUINode" title="BonoboUINode"><span class="returnvalue">BonoboUINode</span></a> *node,
109
<span class="returnvalue">CORBA_Environment</span> *ev);
110
<span class="returnvalue">void</span> <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-rm" title="bonobo_ui_component_rm ()">bonobo_ui_component_rm</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent"><span class="returnvalue">BonoboUIComponent</span></a> *component,
111
const <span class="returnvalue">char</span> *path,
112
<span class="returnvalue">CORBA_Environment</span> *ev);
113
<span class="returnvalue">gboolean</span> <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-path-exists" title="bonobo_ui_component_path_exists ()">bonobo_ui_component_path_exists</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent"><span class="returnvalue">BonoboUIComponent</span></a> *component,
114
const <span class="returnvalue">char</span> *path,
115
<span class="returnvalue">CORBA_Environment</span> *ev);
116
<span class="returnvalue">CORBA_char</span> * <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-get" title="bonobo_ui_component_get ()">bonobo_ui_component_get</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent"><span class="returnvalue">BonoboUIComponent</span></a> *component,
117
const <span class="returnvalue">char</span> *path,
118
<span class="returnvalue">gboolean</span> recurse,
119
<span class="returnvalue">CORBA_Environment</span> *opt_ev);
120
<a class="link" href="libbonoboui-bonobo-ui-node.html#BonoboUINode" title="BonoboUINode"><span class="returnvalue">BonoboUINode</span></a> * <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-get-tree" title="bonobo_ui_component_get_tree ()">bonobo_ui_component_get_tree</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent"><span class="returnvalue">BonoboUIComponent</span></a> *component,
121
const <span class="returnvalue">char</span> *path,
122
<span class="returnvalue">gboolean</span> recurse,
123
<span class="returnvalue">CORBA_Environment</span> *opt_ev);
124
<span class="returnvalue">void</span> <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-object-set" title="bonobo_ui_component_object_set ()">bonobo_ui_component_object_set</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent"><span class="returnvalue">BonoboUIComponent</span></a> *component,
125
const <span class="returnvalue">char</span> *path,
126
<span class="returnvalue">Bonobo_Unknown</span> control,
127
<span class="returnvalue">CORBA_Environment</span> *opt_ev);
128
<span class="returnvalue">Bonobo_Unknown</span> <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-object-get" title="bonobo_ui_component_object_get ()">bonobo_ui_component_object_get</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent"><span class="returnvalue">BonoboUIComponent</span></a> *component,
129
const <span class="returnvalue">char</span> *path,
130
<span class="returnvalue">CORBA_Environment</span> *opt_ev);
131
<span class="returnvalue">void</span> <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-widget-set" title="bonobo_ui_component_widget_set ()">bonobo_ui_component_widget_set</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent"><span class="returnvalue">BonoboUIComponent</span></a> *component,
132
const <span class="returnvalue">char</span> *path,
133
<span class="returnvalue">GtkWidget</span> *widget,
134
<span class="returnvalue">CORBA_Environment</span> *opt_ev);
135
<span class="returnvalue">void</span> <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-freeze" title="bonobo_ui_component_freeze ()">bonobo_ui_component_freeze</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent"><span class="returnvalue">BonoboUIComponent</span></a> *component,
136
<span class="returnvalue">CORBA_Environment</span> *opt_ev);
137
<span class="returnvalue">void</span> <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-thaw" title="bonobo_ui_component_thaw ()">bonobo_ui_component_thaw</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent"><span class="returnvalue">BonoboUIComponent</span></a> *component,
138
<span class="returnvalue">CORBA_Environment</span> *opt_ev);
139
<span class="returnvalue">void</span> <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-set-prop" title="bonobo_ui_component_set_prop ()">bonobo_ui_component_set_prop</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent"><span class="returnvalue">BonoboUIComponent</span></a> *component,
140
const <span class="returnvalue">char</span> *path,
141
const <span class="returnvalue">char</span> *prop,
142
const <span class="returnvalue">char</span> *value,
143
<span class="returnvalue">CORBA_Environment</span> *opt_ev);
144
<span class="returnvalue">gchar</span> * <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-get-prop" title="bonobo_ui_component_get_prop ()">bonobo_ui_component_get_prop</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent"><span class="returnvalue">BonoboUIComponent</span></a> *component,
145
const <span class="returnvalue">char</span> *path,
146
const <span class="returnvalue">char</span> *prop,
147
<span class="returnvalue">CORBA_Environment</span> *opt_ev);
148
<span class="returnvalue">void</span> <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-set-status" title="bonobo_ui_component_set_status ()">bonobo_ui_component_set_status</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent"><span class="returnvalue">BonoboUIComponent</span></a> *component,
149
const <span class="returnvalue">char</span> *text,
150
<span class="returnvalue">CORBA_Environment</span> *opt_ev);
178
151
<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIVerb" title="BonoboUIVerb">BonoboUIVerb</a>;
179
#define <a class="link" href="libbonoboui-bonobo-ui-component.html#BONOBO-UI-VERB--CAPS" title="BONOBO_UI_VERB()">BONOBO_UI_VERB</a> (name,cb)
180
#define <a class="link" href="libbonoboui-bonobo-ui-component.html#BONOBO-UI-VERB-DATA--CAPS" title="BONOBO_UI_VERB_DATA()">BONOBO_UI_VERB_DATA</a> (name,cb,data)
181
#define <a class="link" href="libbonoboui-bonobo-ui-component.html#BONOBO-UI-UNSAFE-VERB--CAPS" title="BONOBO_UI_UNSAFE_VERB()">BONOBO_UI_UNSAFE_VERB</a> (name,cb)
182
#define <a class="link" href="libbonoboui-bonobo-ui-component.html#BONOBO-UI-UNSAFE-VERB-DATA--CAPS" title="BONOBO_UI_UNSAFE_VERB_DATA()">BONOBO_UI_UNSAFE_VERB_DATA</a> (name,cb,data)
183
#define <a class="link" href="libbonoboui-bonobo-ui-component.html#BONOBO-UI-VERB-END--CAPS" title="BONOBO_UI_VERB_END">BONOBO_UI_VERB_END</a>
184
void <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-add-verb-list" title="bonobo_ui_component_add_verb_list ()">bonobo_ui_component_add_verb_list</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent">BonoboUIComponent</a> *component,
185
const <a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIVerb" title="BonoboUIVerb">BonoboUIVerb</a> *list);
186
void <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-add-verb-list-with-data" title="bonobo_ui_component_add_verb_list_with_data ()">bonobo_ui_component_add_verb_list_with_data</a>
187
(<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent">BonoboUIComponent</a> *component,
188
const <a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIVerb" title="BonoboUIVerb">BonoboUIVerb</a> *list,
190
href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"
191
>gpointer</a> user_data);
152
#define <a class="link" href="libbonoboui-bonobo-ui-component.html#BONOBO-UI-VERB:CAPS" title="BONOBO_UI_VERB()">BONOBO_UI_VERB</a> (name,cb)
153
#define <a class="link" href="libbonoboui-bonobo-ui-component.html#BONOBO-UI-VERB-DATA:CAPS" title="BONOBO_UI_VERB_DATA()">BONOBO_UI_VERB_DATA</a> (name,cb,data)
154
#define <a class="link" href="libbonoboui-bonobo-ui-component.html#BONOBO-UI-UNSAFE-VERB:CAPS" title="BONOBO_UI_UNSAFE_VERB()">BONOBO_UI_UNSAFE_VERB</a> (name,cb)
155
#define <a class="link" href="libbonoboui-bonobo-ui-component.html#BONOBO-UI-UNSAFE-VERB-DATA:CAPS" title="BONOBO_UI_UNSAFE_VERB_DATA()">BONOBO_UI_UNSAFE_VERB_DATA</a> (name,cb,data)
156
#define <a class="link" href="libbonoboui-bonobo-ui-component.html#BONOBO-UI-VERB-END:CAPS" title="BONOBO_UI_VERB_END">BONOBO_UI_VERB_END</a>
157
<span class="returnvalue">void</span> <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-add-verb-list" title="bonobo_ui_component_add_verb_list ()">bonobo_ui_component_add_verb_list</a> (<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent"><span class="returnvalue">BonoboUIComponent</span></a> *component,
158
const <a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIVerb" title="BonoboUIVerb"><span class="returnvalue">BonoboUIVerb</span></a> *list);
159
<span class="returnvalue">void</span> <a class="link" href="libbonoboui-bonobo-ui-component.html#bonobo-ui-component-add-verb-list-with-data" title="bonobo_ui_component_add_verb_list_with_data ()">bonobo_ui_component_add_verb_list_with_data</a>
160
(<a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIComponent"><span class="returnvalue">BonoboUIComponent</span></a> *component,
161
const <a class="link" href="libbonoboui-bonobo-ui-component.html#BonoboUIVerb" title="BonoboUIVerb"><span class="returnvalue">BonoboUIVerb</span></a> *list,
162
<span class="returnvalue">gpointer</span> user_data);
194
165
<div class="refsect1" title="Object Hierarchy">
195
166
<a name="libbonoboui-bonobo-ui-component.object-hierarchy"></a><h2>Object Hierarchy</h2>
196
167
<pre class="synopsis">
198
href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject"
201
href="/usr/share/gtk-doc/html/libbonobo/libbonobo-bonobo-object.html#BonoboObject"
169
+----<a href="/gnome/usr/share/gtk-doc/html/libbonobo/libbonobo-bonobo-object.html#BonoboObject">BonoboObject</a>
203
170
+----BonoboUIComponent
228
195
construction time and can be accessed thus:
230
197
<div class="example">
231
<a name="id2742908"></a><p class="title"><b>Example 4. Using the UI Component associated with a control</b></p>
232
<div class="example-contents"><pre class="programlisting">
234
* For the format of the XML see bonobo/doc/xml-ui.txt
235
* For a standard template to base your UI on see bonobo/doc/std-ui.xml
237
const char my_ui_elements [] =
238
">placeholder name=\"FileOps\"<"
239
" >menuitem name=\"Foo\" verb=\"FileFoo\" _label=\"Foo!\""
240
" _tip=\"do some foo thing\"/<"
241
">/placeholder<";
198
<a name="id2610490"></a><p class="title"><b>Example 4. Using the UI Component associated with a control</b></p>
199
<div class="example-contents">
200
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
203
<td class="listing_lines" align="right"><pre>1
256
<td class="listing_code"><pre class="programlisting"><span class="comment">/*</span>
257
<span class="comment"> * For the format of the XML see bonobo/doc/xml-ui.txt</span>
258
<span class="comment"> * For a standard template to base your UI on see bonobo/doc/std-ui.xml</span>
259
<span class="comment"> </span><span class="comment">*/</span>
260
<span class="type">const</span> <span class="type">char</span> my_ui_elements [] =
261
<span class="number">">placeholder name=</span><span class="symbol">\"</span><span class="number">FileOps</span><span class="symbol">\"</span><span class="number"><"</span>
262
<span class="number">" >menuitem name=</span><span class="symbol">\"</span><span class="number">Foo</span><span class="symbol">\"</span><span class="number"> verb=</span><span class="symbol">\"</span><span class="number">FileFoo</span><span class="symbol">\"</span><span class="number"> _label=</span><span class="symbol">\"</span><span class="number">Foo!</span><span class="symbol">\"</span><span class="number">"</span>
263
<span class="number">" _tip=</span><span class="symbol">\"</span><span class="number">do some foo thing</span><span class="symbol">\"</span><span class="number">/<"</span>
264
<span class="number">">/placeholder<"</span>;
265
<span class="type">static</span> <span class="type">void</span>
243
266
control_activate_cb (BonoboControl *object,
247
BonoboUIComponent *ui_component;
248
/* Get UIComponent from control */
249
ui_component = bonobo_control_get_ui_component (control);
250
if (state) /* Activate */
251
bonobo_ui_component_set_translate (
252
ui_component, "/menu/File", my_ui_elements, NULL);
253
else /* De-activate */
254
bonobo_ui_component_unset_container (ui_component);
270
BonoboUIComponent *ui_component;
271
<span class="comment">/*</span><span class="comment"> Get UIComponent from control </span><span class="comment">*/</span>
272
ui_component = bonobo_control_get_ui_component (control);
273
<span class="keyword">if</span> (state) <span class="comment">/*</span><span class="comment"> Activate </span><span class="comment">*/</span>
274
bonobo_ui_component_set_translate (
275
ui_component, <span class="number">"/menu/File"</span>, my_ui_elements, <span class="number">NULL</span>);
276
<span class="keyword">else</span> <span class="comment">/*</span><span class="comment"> De-activate </span><span class="comment">*/</span>
277
bonobo_ui_component_unset_container (ui_component);
279
<span class="type">static</span> <span class="type">void</span>
257
280
verb_foo_cb (BonoboUIComponent *ui_container,
258
281
gpointer user_data,
282
<span class="type">const</span> <span class="type">char</span> *cname)
261
BonoboControl *control = user_data;
262
g_print ("FileFoo !\n");
284
BonoboControl *control = user_data;
285
g_print (<span class="number">"FileFoo !</span><span class="symbol">\n</span><span class="number">"</span>);
264
static BonoboUIVerb my_ui_verbs[] = {
265
BONOBO_UI_VERB ("FileFoo", verb_foo_cb),
287
<span class="type">static</span> BonoboUIVerb my_ui_verbs[] = {
288
BONOBO_UI_VERB (<span class="number">"FileFoo"</span>, verb_foo_cb),
269
create_ui_control (void)
292
create_ui_control (<span class="type">void</span>)
271
BonoboControl *control;
272
BonoboUIComponent *ui_component;
274
control = bonobo_control_new ((widget = gtk_widget_new_label ("Hello World")));
275
/* Automaticaly associate the remote UIContainer for us on activate */
276
bonobo_control_set_automerge (control, TRUE);
277
ui_component = bonobo_control_get_ui_component (control);
278
/* Register the verbs with the UI Component */
279
bonobo_ui_component_add_verb_list_with_data (
280
ui_component, my_ui_verbs, control);
281
gtk_signal_connect (GTK_OBJECT (control), "activate",
282
GTK_SIGNAL_FUNC (control_activate_cb), NULL);
283
gtk_widget_show (widget);
284
return BONOBO_OBJECT (control);
294
BonoboControl *control;
295
BonoboUIComponent *ui_component;
297
control = bonobo_control_new ((widget = gtk_widget_new_label (<span class="number">"Hello World"</span>)));
298
<span class="comment">/*</span><span class="comment"> Automaticaly associate the remote UIContainer for us on activate </span><span class="comment">*/</span>
299
bonobo_control_set_automerge (control, TRUE);
300
ui_component = bonobo_control_get_ui_component (control);
301
<span class="comment">/*</span><span class="comment"> Register the verbs with the UI Component </span><span class="comment">*/</span>
302
bonobo_ui_component_add_verb_list_with_data (
303
ui_component, my_ui_verbs, control);
304
gtk_signal_connect (GTK_OBJECT (control), <span class="number">"activate"</span>,
305
GTK_SIGNAL_FUNC (control_activate_cb), <span class="number">NULL</span>);
306
gtk_widget_show (widget);
307
<span class="keyword">return</span> BONOBO_OBJECT (control);
288
315
<p><br class="example-break">
289
316
This sets up the UI, associates a 'FileFoo' verb with a callback, and