~ubuntu-branches/ubuntu/trusty/libbonobo/trusty-proposed

« back to all changes in this revision

Viewing changes to doc/api/html/properties.html

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2007-09-17 16:38:13 UTC
  • mfrom: (1.1.16 upstream)
  • Revision ID: james.westby@ubuntu.com-20070917163813-sg2l3nt1q6s3lybq
Tags: 2.20.0-0ubuntu1
* New upstream version:
  - Add unit test for bug 427992.
  - Align configure switches
  - Updated translations

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
<head>
4
4
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
5
5
<title>Properties</title>
6
 
<meta name="generator" content="DocBook XSL Stylesheets V1.72.0">
 
6
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7
7
<link rel="start" href="index.html" title="Libbonobo Reference Manual">
8
8
<link rel="up" href="property-bags.html" title="Property Bags, Events, Listeners">
9
9
<link rel="prev" href="property-bags.html" title="Property Bags, Events, Listeners">
30
30
<div class="refentry" lang="en">
31
31
<a name="properties"></a><div class="titlepage"></div>
32
32
<div class="refsect1" lang="en">
33
 
<a name="id2592382"></a><h2>Properties</h2>
 
33
<a name="id3075102"></a><h2>Properties</h2>
34
34
<p>Bonobo component properties, version 0.1 by Michael
35
35
            Meeks &lt;mmeeks@gnu.org&gt;</p>
36
36
<p>A brief discussion of how to use the property API to add
37
37
            a simple to use configuration mechanism to your bonobo
38
38
            component.</p>
39
39
<div class="refsect2" lang="en">
40
 
<a name="id2592399"></a><h3>Properties and bags</h3>
 
40
<a name="id3075118"></a><h3>Properties and bags</h3>
41
41
<p>A property is an attribute that is attached to a
42
42
                Bonobo object.  It can have any type, although the
43
43
                standard types <span class="type">boolean</span>,
49
49
</div>
50
50
<hr>
51
51
<div class="refsect2" lang="en">
52
 
<a name="id2593530"></a><h3>BonoboArgs</h3>
 
52
<a name="id3076249"></a><h3>BonoboArgs</h3>
53
53
<p>A bonobo arg contains the value of a property whilst
54
54
                it is 'in flight' between a property and a
55
55
                requestor. The bonobo arg system is designed to make
76
76
</div>
77
77
<hr>
78
78
<div class="refsect2" lang="en">
79
 
<a name="id2593620"></a><h3>PropertyBag creation</h3>
 
79
<a name="id3076340"></a><h3>PropertyBag creation</h3>
80
80
<p>To add properties to an object first we must create
81
81
                a property bag hence:</p>
82
82
<pre class="synopsis">
99
99
</div>
100
100
<hr>
101
101
<div class="refsect2" lang="en">
102
 
<a name="id2593656"></a><h3>Property Creation</h3>
 
102
<a name="id3076376"></a><h3>Property Creation</h3>
103
103
<p> Each basic property is created by this function: </p>
104
104
<pre class="synopsis">
105
105
void bonobo_property_bag_add (BonoboPropertyBag   *pb,
132
132
</div>
133
133
<hr>
134
134
<div class="refsect2" lang="en">
135
 
<a name="id2593714"></a><h3>Wrapping GObjects</h3>
 
135
<a name="id3076433"></a><h3>Wrapping GObjects</h3>
136
136
<p> If you have already implemented a GObject that
137
137
                has the set of properties that you wish to export as
138
138
                Bonobo properties then it is trivial to add them to
153
153
</div>
154
154
<hr>
155
155
<div class="refsect2" lang="en">
156
 
<a name="id2593738"></a><h3>Using properties in your client application</h3>
 
156
<a name="id3076457"></a><h3>Using properties in your client application</h3>
157
157
<p>There are some fairly typesafe but convenient vararg
158
158
                ways to get remote properties. Example:</p>
159
159
<div class="informalexample"><pre class="programlisting">