/usr/share/gtk-doc/html/libbonoboui/libbonoboui-bonobo-widget.html is in libbonoboui2-dev 2.24.5-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>BonoboWidget</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="index.html" title="LibBonoboUI API Reference Manual">
<link rel="up" href="bonobo-ui.html" title="Bonobo UI">
<link rel="prev" href="bonobo-ui.html" title="Bonobo UI">
<link rel="next" href="libbonoboui-bonobo-window.html" title="bonobo-window">
<meta name="generator" content="GTK-Doc V1.15.1 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="bonobo-ui.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="bonobo-ui.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">LibBonoboUI API Reference Manual</th>
<td><a accesskey="n" href="libbonoboui-bonobo-window.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#libbonoboui-bonobo-widget.synopsis" class="shortcut">Top</a>
|
<a href="#libbonoboui-bonobo-widget.description" class="shortcut">Description</a>
|
<a href="#libbonoboui-bonobo-widget.object-hierarchy" class="shortcut">Object Hierarchy</a>
|
<a href="#libbonoboui-bonobo-widget.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
</td></tr>
</table>
<div class="refentry">
<a name="libbonoboui-bonobo-widget"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="libbonoboui-bonobo-widget.top_of_page"></a>BonoboWidget</span></h2>
<p>BonoboWidget — Simplified embedding of widgets in Bonobo.</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="libbonoboui-bonobo-widget.synopsis"></a><h2>Synopsis</h2>
<a name="BonoboWidget"></a><pre class="synopsis"> <a class="link" href="libbonoboui-bonobo-widget.html#BonoboWidget-struct" title="BonoboWidget">BonoboWidget</a>;
<a class="link" href="libbonoboui-bonobo-widget.html#BonoboWidgetPrivate" title="BonoboWidgetPrivate">BonoboWidgetPrivate</a>;
<a class="link" href="libbonoboui-bonobo-widget.html#BonoboWidgetClass" title="BonoboWidgetClass">BonoboWidgetClass</a>;
<span class="returnvalue">Bonobo_Unknown</span> <a class="link" href="libbonoboui-bonobo-widget.html#bonobo-widget-get-objref" title="bonobo_widget_get_objref ()">bonobo_widget_get_objref</a> (<em class="parameter"><code><a class="link" href="libbonoboui-bonobo-widget.html#BonoboWidget"><span class="type">BonoboWidget</span></a> *bw</code></em>);
<span class="returnvalue">GtkWidget</span> * <a class="link" href="libbonoboui-bonobo-widget.html#bonobo-widget-new-control" title="bonobo_widget_new_control ()">bonobo_widget_new_control</a> (<em class="parameter"><code>const <span class="type">char</span> *moniker</code></em>,
<em class="parameter"><code><span class="type">Bonobo_UIContainer</span> uic</code></em>);
<span class="returnvalue">GtkWidget</span> * <a class="link" href="libbonoboui-bonobo-widget.html#bonobo-widget-new-control-from-objref" title="bonobo_widget_new_control_from_objref ()">bonobo_widget_new_control_from_objref</a>
(<em class="parameter"><code><span class="type">Bonobo_Control</span> control</code></em>,
<em class="parameter"><code><span class="type">Bonobo_UIContainer</span> uic</code></em>);
<a class="link" href="libbonoboui-bonobo-control-frame.html#BonoboControlFrame"><span class="returnvalue">BonoboControlFrame</span></a> * <a class="link" href="libbonoboui-bonobo-widget.html#bonobo-widget-get-control-frame" title="bonobo_widget_get_control_frame ()">bonobo_widget_get_control_frame</a> (<em class="parameter"><code><a class="link" href="libbonoboui-bonobo-widget.html#BonoboWidget"><span class="type">BonoboWidget</span></a> *bw</code></em>);
<span class="returnvalue">Bonobo_UIContainer</span> <a class="link" href="libbonoboui-bonobo-widget.html#bonobo-widget-get-ui-container" title="bonobo_widget_get_ui_container ()">bonobo_widget_get_ui_container</a> (<em class="parameter"><code><a class="link" href="libbonoboui-bonobo-widget.html#BonoboWidget"><span class="type">BonoboWidget</span></a> *bw</code></em>);
<span class="returnvalue">void</span> (<a class="link" href="libbonoboui-bonobo-widget.html#BonoboWidgetAsyncFn" title="BonoboWidgetAsyncFn ()">*BonoboWidgetAsyncFn</a>) (<em class="parameter"><code><a class="link" href="libbonoboui-bonobo-widget.html#BonoboWidget"><span class="type">BonoboWidget</span></a> *widget</code></em>,
<em class="parameter"><code><span class="type">CORBA_Environment</span> *ev</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);
<span class="returnvalue">GtkWidget</span> * <a class="link" href="libbonoboui-bonobo-widget.html#bonobo-widget-new-control-async" title="bonobo_widget_new_control_async ()">bonobo_widget_new_control_async</a> (<em class="parameter"><code>const <span class="type">char</span> *moniker</code></em>,
<em class="parameter"><code><span class="type">Bonobo_UIContainer</span> uic</code></em>,
<em class="parameter"><code><a class="link" href="libbonoboui-bonobo-widget.html#BonoboWidgetAsyncFn" title="BonoboWidgetAsyncFn ()"><span class="type">BonoboWidgetAsyncFn</span></a> fn</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);
<a class="link" href="libbonoboui-bonobo-widget.html#BonoboWidget"><span class="returnvalue">BonoboWidget</span></a> * <a class="link" href="libbonoboui-bonobo-widget.html#bonobo-widget-construct-control-from-objref" title="bonobo_widget_construct_control_from_objref ()">bonobo_widget_construct_control_from_objref</a>
(<em class="parameter"><code><a class="link" href="libbonoboui-bonobo-widget.html#BonoboWidget"><span class="type">BonoboWidget</span></a> *bw</code></em>,
<em class="parameter"><code><span class="type">Bonobo_Control</span> control</code></em>,
<em class="parameter"><code><span class="type">Bonobo_UIContainer</span> uic</code></em>,
<em class="parameter"><code><span class="type">CORBA_Environment</span> *ev</code></em>);
<a class="link" href="libbonoboui-bonobo-widget.html#BonoboWidget"><span class="returnvalue">BonoboWidget</span></a> * <a class="link" href="libbonoboui-bonobo-widget.html#bonobo-widget-construct-control" title="bonobo_widget_construct_control ()">bonobo_widget_construct_control</a> (<em class="parameter"><code><a class="link" href="libbonoboui-bonobo-widget.html#BonoboWidget"><span class="type">BonoboWidget</span></a> *bw</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *moniker</code></em>,
<em class="parameter"><code><span class="type">Bonobo_UIContainer</span> uic</code></em>,
<em class="parameter"><code><span class="type">CORBA_Environment</span> *ev</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libbonoboui-bonobo-widget.html#bonobo-widget-set-property" title="bonobo_widget_set_property ()">bonobo_widget_set_property</a> (<em class="parameter"><code><a class="link" href="libbonoboui-bonobo-widget.html#BonoboWidget"><span class="type">BonoboWidget</span></a> *control</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *first_prop</code></em>,
<em class="parameter"><code>...</code></em>);
<span class="returnvalue">void</span> <a class="link" href="libbonoboui-bonobo-widget.html#bonobo-widget-get-property" title="bonobo_widget_get_property ()">bonobo_widget_get_property</a> (<em class="parameter"><code><a class="link" href="libbonoboui-bonobo-widget.html#BonoboWidget"><span class="type">BonoboWidget</span></a> *control</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *first_prop</code></em>,
<em class="parameter"><code>...</code></em>);
#define <a class="link" href="libbonoboui-bonobo-widget.html#bonobo-widget-get-uih" title="bonobo_widget_get_uih()">bonobo_widget_get_uih</a> (w)
</pre>
</div>
<div class="refsect1">
<a name="libbonoboui-bonobo-widget.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
+----<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
+----GtkObject
+----GtkWidget
+----GtkContainer
+----GtkBin
+----BonoboWidget
</pre>
</div>
<div class="refsect1">
<a name="libbonoboui-bonobo-widget.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
<p>
BonoboWidget implements
AtkImplementorIface and GtkBuildable.</p>
</div>
<div class="refsect1">
<a name="libbonoboui-bonobo-widget.description"></a><h2>Description</h2>
<p>
Bonobo component embedding for hydrocephalic imbeciles.
</p>
<p>
Pure cane sugar.
</p>
<p>
This purpose of BonoboWidget is to make container-side use of Bonobo
as easy as pie. This widget has two functions:
</p>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
<p>
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:
</p>
<div class="informalexample">
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td class="listing_lines" align="right"><pre>1
2</pre></td>
<td class="listing_code"><pre class="programlisting"><span class="normal">bw </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="libbonoboui-bonobo-widget.html#bonobo-widget-new-control">bonobo_widget_new_control</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"id for control"</span><span class="symbol">,</span><span class="normal"> toplevel_ui_handler</span><span class="symbol">);</span>
<span class="function">gtk_container_add</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">some_container</span><span class="symbol">,</span><span class="normal"> bw</span><span class="symbol">);</span></pre></td>
</tr>
</tbody>
</table>
</div>
<p>
</p>
<p>
You are free to make the 2nd (UIContainer) argument to
<a class="link" href="libbonoboui-bonobo-widget.html#bonobo-widget-new-control" title="bonobo_widget_new_control ()"><code class="function">bonobo_widget_new_control()</code></a> be CORBA_OBJECT_NIL.
</p>
</li>
<li class="listitem">
<p>
To provide an extremely simple wrapper for using Monikers. In
fact all BonoboWidget use uses the OAFIID: moniker to activate
its sub-components. However monikers (<span class="type">bonobo-moniker-util</span>) are
far more powerful than this:
</p>
<div class="informalexample">
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td class="listing_lines" align="right"><pre>1</pre></td>
<td class="listing_code"><pre class="programlisting"><span class="normal">bw </span><span class="symbol">=</span><span class="normal"> </span><span class="function"><a href="libbonoboui-bonobo-widget.html#bonobo-widget-new-control">bonobo_widget_new_control</a></span><span class="normal"> </span><span class="symbol">(</span><span class="string">"file:/demo/a.jpeg"</span><span class="symbol">,</span><span class="normal"> toplevel_ui_handler</span><span class="symbol">);</span></pre></td>
</tr>
</tbody>
</table>
</div>
<p>
will launch an application that can render a jpeg as a control,
usualy the Eye Of Gnome (EOG), and embed it as a control.
</p>
</li>
</ol></div>
<p>
</p>
<p>
There are also functions for fetching and setting values in the
Control PropertyBag, but the use of these functions is
discouraged.
</p>
</div>
<div class="refsect1">
<a name="libbonoboui-bonobo-widget.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="BonoboWidget-struct"></a><h3>BonoboWidget</h3>
<pre class="programlisting">typedef struct _BonoboWidget BonoboWidget;</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="BonoboWidgetPrivate"></a><h3>BonoboWidgetPrivate</h3>
<pre class="programlisting">typedef struct _BonoboWidgetPrivate BonoboWidgetPrivate;</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="BonoboWidgetClass"></a><h3>BonoboWidgetClass</h3>
<pre class="programlisting">typedef struct {
GtkBinClass bin_class;
gpointer dummy[4];
} BonoboWidgetClass;
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="bonobo-widget-get-objref"></a><h3>bonobo_widget_get_objref ()</h3>
<pre class="programlisting"><span class="returnvalue">Bonobo_Unknown</span> bonobo_widget_get_objref (<em class="parameter"><code><a class="link" href="libbonoboui-bonobo-widget.html#BonoboWidget"><span class="type">BonoboWidget</span></a> *bw</code></em>);</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>bw</code></em> :</span></p></td>
<td>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="bonobo-widget-new-control"></a><h3>bonobo_widget_new_control ()</h3>
<pre class="programlisting"><span class="returnvalue">GtkWidget</span> * bonobo_widget_new_control (<em class="parameter"><code>const <span class="type">char</span> *moniker</code></em>,
<em class="parameter"><code><span class="type">Bonobo_UIContainer</span> uic</code></em>);</pre>
<p>
This function is a simple wrapper for easily embedding controls
into applications. It will launch the component identified by <em class="parameter"><code>id</code></em>
and will return it as a GtkWidget.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>moniker</code></em> :</span></p></td>
<td>A Moniker describing the object to be activated
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uic</code></em> :</span></p></td>
<td>Bonobo_UIContainer for the launched object or CORBA_OBJECT_NIL
if there is no need of menu / toolbar merging.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> A <span class="type">GtkWidget</span> that is bound to the Bonobo Control.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="bonobo-widget-new-control-from-objref"></a><h3>bonobo_widget_new_control_from_objref ()</h3>
<pre class="programlisting"><span class="returnvalue">GtkWidget</span> * bonobo_widget_new_control_from_objref
(<em class="parameter"><code><span class="type">Bonobo_Control</span> control</code></em>,
<em class="parameter"><code><span class="type">Bonobo_UIContainer</span> uic</code></em>);</pre>
<p>
This function is a simple wrapper for easily embedding controls
into applications. This function is used when you have already
a CORBA object reference to an IDL:Bonobo/Control:1.0 (the
<em class="parameter"><code>control</code></em>) argument.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>control</code></em> :</span></p></td>
<td>A CORBA Object reference to an IDL:Bonobo/Control:1.0
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uic</code></em> :</span></p></td>
<td>Bonobo_UIContainer for the launched object or CORBA_OBJECT_NIL
if there is no need of menu / toolbar merging.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the <em class="parameter"><code>control</code></em> wrapped as a <span class="type">GtkWidget</span>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="bonobo-widget-get-control-frame"></a><h3>bonobo_widget_get_control_frame ()</h3>
<pre class="programlisting"><a class="link" href="libbonoboui-bonobo-control-frame.html#BonoboControlFrame"><span class="returnvalue">BonoboControlFrame</span></a> * bonobo_widget_get_control_frame (<em class="parameter"><code><a class="link" href="libbonoboui-bonobo-widget.html#BonoboWidget"><span class="type">BonoboWidget</span></a> *bw</code></em>);</pre>
<p>
Every IDL:Bonobo/Control:1.0 needs to be placed inside an
IDL:Bonobo/ControlFrame:1.0. This returns the BonoboControlFrame
object that wraps the Control in the <em class="parameter"><code>bonobo_widget</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>bw</code></em> :</span></p></td>
<td>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> The BonoboControlFrame associated with the <em class="parameter"><code>bonobo_widget</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="bonobo-widget-get-ui-container"></a><h3>bonobo_widget_get_ui_container ()</h3>
<pre class="programlisting"><span class="returnvalue">Bonobo_UIContainer</span> bonobo_widget_get_ui_container (<em class="parameter"><code><a class="link" href="libbonoboui-bonobo-widget.html#BonoboWidget"><span class="type">BonoboWidget</span></a> *bw</code></em>);</pre>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>bw</code></em> :</span></p></td>
<td>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the CORBA object reference to the Bonobo_UIContainer
associated with the <em class="parameter"><code>bonobo_widget</code></em>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="BonoboWidgetAsyncFn"></a><h3>BonoboWidgetAsyncFn ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> (*BonoboWidgetAsyncFn) (<em class="parameter"><code><a class="link" href="libbonoboui-bonobo-widget.html#BonoboWidget"><span class="type">BonoboWidget</span></a> *widget</code></em>,
<em class="parameter"><code><span class="type">CORBA_Environment</span> *ev</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>widget</code></em> :</span></p></td>
<td>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>ev</code></em> :</span></p></td>
<td>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="bonobo-widget-new-control-async"></a><h3>bonobo_widget_new_control_async ()</h3>
<pre class="programlisting"><span class="returnvalue">GtkWidget</span> * bonobo_widget_new_control_async (<em class="parameter"><code>const <span class="type">char</span> *moniker</code></em>,
<em class="parameter"><code><span class="type">Bonobo_UIContainer</span> uic</code></em>,
<em class="parameter"><code><a class="link" href="libbonoboui-bonobo-widget.html#BonoboWidgetAsyncFn" title="BonoboWidgetAsyncFn ()"><span class="type">BonoboWidgetAsyncFn</span></a> fn</code></em>,
<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data</code></em>);</pre>
<p>
This method creates a widget, returns it to the user, and
asynchronously activates a control to insert into the widget.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>moniker</code></em> :</span></p></td>
<td>A Moniker describing the object to be activated
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uic</code></em> :</span></p></td>
<td>Bonobo_UIContainer for the launched object or CORBA_OBJECT_NIL
if there is no need of menu / toolbar merging.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>fn</code></em> :</span></p></td>
<td>a callback function called when the activation has happend
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data to be passed back to the callback.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> a (temporarily) empty Widget to be filled with the
control later
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="bonobo-widget-construct-control-from-objref"></a><h3>bonobo_widget_construct_control_from_objref ()</h3>
<pre class="programlisting"><a class="link" href="libbonoboui-bonobo-widget.html#BonoboWidget"><span class="returnvalue">BonoboWidget</span></a> * bonobo_widget_construct_control_from_objref
(<em class="parameter"><code><a class="link" href="libbonoboui-bonobo-widget.html#BonoboWidget"><span class="type">BonoboWidget</span></a> *bw</code></em>,
<em class="parameter"><code><span class="type">Bonobo_Control</span> control</code></em>,
<em class="parameter"><code><span class="type">Bonobo_UIContainer</span> uic</code></em>,
<em class="parameter"><code><span class="type">CORBA_Environment</span> *ev</code></em>);</pre>
<p>
This is a constructor function. Only usable for wrapping and
derivation of new objects. For normal use, please refer to
<a class="link" href="libbonoboui-bonobo-widget.html#bonobo-widget-new-control-from-objref" title="bonobo_widget_new_control_from_objref ()"><span class="type">bonobo_widget_new_control_from_objref</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>bw</code></em> :</span></p></td>
<td>A BonoboWidget to construct
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>control</code></em> :</span></p></td>
<td>A CORBA Object reference to an IDL:Bonobo/Control:1.0
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uic</code></em> :</span></p></td>
<td>Bonobo_UIContainer for the launched object or CORBA_OBJECT_NIL
if there is no need of menu / toolbar merging.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>ev</code></em> :</span></p></td>
<td>a CORBA exception environment
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> A <a class="link" href="libbonoboui-bonobo-widget.html#BonoboWidget"><span class="type">BonoboWidget</span></a> (the <em class="parameter"><code>bw</code></em>)
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="bonobo-widget-construct-control"></a><h3>bonobo_widget_construct_control ()</h3>
<pre class="programlisting"><a class="link" href="libbonoboui-bonobo-widget.html#BonoboWidget"><span class="returnvalue">BonoboWidget</span></a> * bonobo_widget_construct_control (<em class="parameter"><code><a class="link" href="libbonoboui-bonobo-widget.html#BonoboWidget"><span class="type">BonoboWidget</span></a> *bw</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *moniker</code></em>,
<em class="parameter"><code><span class="type">Bonobo_UIContainer</span> uic</code></em>,
<em class="parameter"><code><span class="type">CORBA_Environment</span> *ev</code></em>);</pre>
<p>
This is a constructor function. Only usable for wrapping and
derivation of new objects. For normal use, please refer to
<a class="link" href="libbonoboui-bonobo-widget.html#bonobo-widget-new-control" title="bonobo_widget_new_control ()"><span class="type">bonobo_widget_new_control</span></a>.
</p>
<p>
This function will unref the passed in <em class="parameter"><code>bw</code></em> in case it cannot launch
the component and return <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> in such a case. Otherwise it returns
the <em class="parameter"><code>bw</code></em> itself.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>bw</code></em> :</span></p></td>
<td>A BonoboWidget to construct
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>moniker</code></em> :</span></p></td>
<td>A Moniker describing the object to be activated
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uic</code></em> :</span></p></td>
<td>Bonobo_UIContainer for the launched object or CORBA_OBJECT_NIL
if there is no need of menu / toolbar merging.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>ev</code></em> :</span></p></td>
<td>a CORBA exception environment
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> A <a class="link" href="libbonoboui-bonobo-widget.html#BonoboWidget"><span class="type">BonoboWidget</span></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="bonobo-widget-set-property"></a><h3>bonobo_widget_set_property ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> bonobo_widget_set_property (<em class="parameter"><code><a class="link" href="libbonoboui-bonobo-widget.html#BonoboWidget"><span class="type">BonoboWidget</span></a> *control</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *first_prop</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>
This is a utility function used to set a number of properties
in the Bonobo Control in <em class="parameter"><code>control</code></em>.
</p>
<p>
This function takes a variable list of arguments that must be NULL
terminated. Arguments come in tuples: a string (for the argument
name) and the data type that is to be transfered. The
implementation of the actual setting of the PropertyBag values is
done by the <a href="/opt/gnome/share/gtk-doc/html/libbonobo/libbonobo-bonobo-property-bag-client.html#bonobo-property-bag-client-setv"><code class="function">bonobo_property_bag_client_setv()</code></a> function).
</p>
<p>
This only works for BonoboWidgets that represent controls (ie,
that were returned by <a class="link" href="libbonoboui-bonobo-widget.html#bonobo-widget-new-control-from-objref" title="bonobo_widget_new_control_from_objref ()"><code class="function">bonobo_widget_new_control_from_objref()</code></a> or
<a class="link" href="libbonoboui-bonobo-widget.html#bonobo-widget-new-control" title="bonobo_widget_new_control ()"><code class="function">bonobo_widget_new_control()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>control</code></em> :</span></p></td>
<td>A <a class="link" href="libbonoboui-bonobo-widget.html#BonoboWidget"><span class="type">BonoboWidget</span></a> that represents an IDL:Bonobo/Control:1.0
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>first_prop</code></em> :</span></p></td>
<td>first property name to set.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
<td>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="bonobo-widget-get-property"></a><h3>bonobo_widget_get_property ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span> bonobo_widget_get_property (<em class="parameter"><code><a class="link" href="libbonoboui-bonobo-widget.html#BonoboWidget"><span class="type">BonoboWidget</span></a> *control</code></em>,
<em class="parameter"><code>const <span class="type">char</span> *first_prop</code></em>,
<em class="parameter"><code>...</code></em>);</pre>
<p>
This is a utility function used to get a number of properties
in the Bonobo Control in <em class="parameter"><code>control</code></em>.
</p>
<p>
This function takes a variable list of arguments that must be NULL
terminated. Arguments come in tuples: a string (for the argument
name) and a pointer where the data will be stored. The
implementation of the actual setting of the PropertyBag values is
done by the <a href="/opt/gnome/share/gtk-doc/html/libbonobo/libbonobo-bonobo-property-bag-client.html#bonobo-property-bag-client-setv"><code class="function">bonobo_property_bag_client_setv()</code></a> function).
</p>
<p>
This only works for BonoboWidgets that represent controls (ie,
that were returned by <a class="link" href="libbonoboui-bonobo-widget.html#bonobo-widget-new-control-from-objref" title="bonobo_widget_new_control_from_objref ()"><code class="function">bonobo_widget_new_control_from_objref()</code></a> or
<a class="link" href="libbonoboui-bonobo-widget.html#bonobo-widget-new-control" title="bonobo_widget_new_control ()"><code class="function">bonobo_widget_new_control()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>control</code></em> :</span></p></td>
<td>A <a class="link" href="libbonoboui-bonobo-widget.html#BonoboWidget"><span class="type">BonoboWidget</span></a> that represents an IDL:Bonobo/Control:1.0
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>first_prop</code></em> :</span></p></td>
<td>first property name to set.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>...</code></em> :</span></p></td>
<td>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="bonobo-widget-get-uih"></a><h3>bonobo_widget_get_uih()</h3>
<pre class="programlisting">#define bonobo_widget_get_uih(w) bonobo_widget_get_ui_container (w)
</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>w</code></em> :</span></p></td>
<td>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1">
<a name="libbonoboui-bonobo-widget.see-also"></a><h2>See Also</h2>
<p>
Object activation happens with <a href="/opt/gnome/share/gtk-doc/html/libbonobo/libbonobo-bonobo-moniker-util.html#bonobo-get-object"><code class="function">bonobo_get_object()</code></a>.
</p>
<p>
<a class="link" href="libbonoboui-bonobo-control.html#BonoboControl"><span class="type">BonoboControl</span></a>, <a class="link" href="libbonoboui-bonobo-control-frame.html#BonoboControlFrame"><span class="type">BonoboControlFrame</span></a>, <a href="/opt/gnome/share/gtk-doc/html/libbonobo/libbonobo-bonobo-object.html#BonoboObject"><span class="type">BonoboObject</span></a>, <span class="type">BonoboView</span>,
<span class="type">BonoboEmbeddable</span>, <a class="link" href="libbonoboui-bonobo-ui-container.html#BonoboUIContainer"><span class="type">BonoboUIContainer</span></a>, <a href="/opt/gnome/share/gtk-doc/html/libbonobo/libbonobo-bonobo-item-container.html#BonoboItemContainer"><span class="type">BonoboItemContainer</span></a>.
</p>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.15.1</div>
</body>
</html>
|