~ubuntu-branches/ubuntu/oneiric/gnome-panel/oneiric

« back to all changes in this revision

Viewing changes to doc/reference/panel-applet/tmpl/panel-applet-gconf.sgml

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2011-05-30 11:04:49 UTC
  • mfrom: (1.3.4 upstream)
  • mto: This revision was merged to the branch mainline in revision 204.
  • Revision ID: james.westby@ubuntu.com-20110530110449-ut1tc5t61rpvf9e3
Tags: upstream-3.0.2
ImportĀ upstreamĀ versionĀ 3.0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!-- ##### SECTION Title ##### -->
2
 
Panel Applet GConf Utilities
3
 
 
4
 
<!-- ##### SECTION Short_Description ##### -->
5
 
Utility methods for manipulating per-applet GConf preferences.
6
 
 
7
 
<!-- ##### SECTION Long_Description ##### -->
8
 
<para>
9
 
Applets typically define a set of preferences using a schemas
10
 
file and panel_applet_add_preferences(). Such preferences apply
11
 
only to an individual applet instance. For example, you may add
12
 
two clock applets to the panel and configure them differently.
13
 
</para>
14
 
 
15
 
<para>
16
 
In order for the preferences to only apply to a single applet,
17
 
each applet must have a seperate GConf key for each of these
18
 
preferences. The methods described below provide convient wrappers
19
 
around the usual #GConfClient functions and operate on these
20
 
per-applet keys.
21
 
</para>
22
 
 
23
 
<!-- ##### SECTION See_Also ##### -->
24
 
<para>
25
 
</para>
26
 
 
27
 
<!-- ##### SECTION Stability_Level ##### -->
28
 
 
29
 
 
30
 
<!-- ##### SECTION Image ##### -->
31
 
 
32
 
 
33
 
<!-- ##### FUNCTION panel_applet_gconf_get_full_key ##### -->
34
 
<para>
35
 
Access the full path for an individual per-applet GConf key. Using
36
 
the returned path you may directly modify the preference using
37
 
the usual GConf functions without using any of the convenience
38
 
wrappers described below.
39
 
</para>
40
 
 
41
 
@applet: The #PanelApplet.
42
 
@key: The key name of the preference.
43
 
@Returns: The full GConf key - free using g_free().
44
 
 
45
 
 
46
 
<!-- ##### FUNCTION panel_applet_gconf_get_bool ##### -->
47
 
<para>
48
 
Convience wrapper for gconf_client_get_bool() which operates
49
 
on the individual per-applet key.
50
 
</para>
51
 
 
52
 
<para>
53
 
If you pass %NULL for @opt_error, this function will print
54
 
a warning message from any #GError which gconf_client_get_bool()
55
 
returns.
56
 
</para>
57
 
 
58
 
@applet: The #PanelApplet.
59
 
@key: The key name of the preference.
60
 
@opt_error: Optional #GError**.
61
 
@Returns: The bool value of the key.
62
 
 
63
 
 
64
 
<!-- ##### FUNCTION panel_applet_gconf_get_int ##### -->
65
 
<para>
66
 
Convience wrapper for gconf_client_get_int() which operates
67
 
on the individual per-applet key.
68
 
</para>
69
 
 
70
 
<para>
71
 
If you pass %NULL for @opt_error, this function will print
72
 
a warning message from any #GError which gconf_client_get_int()
73
 
returns.
74
 
</para>
75
 
 
76
 
@applet: The #PanelApplet.
77
 
@key: The key name of the preference.
78
 
@opt_error: Optional #GError**.
79
 
@Returns: The integer value of the key.
80
 
 
81
 
 
82
 
<!-- ##### FUNCTION panel_applet_gconf_get_string ##### -->
83
 
<para>
84
 
Convience wrapper for gconf_client_get_string() which operates
85
 
on the individual per-applet key.
86
 
</para>
87
 
 
88
 
<para>
89
 
If you pass %NULL for @opt_error, this function will print
90
 
a warning message from any #GError which gconf_client_get_string()
91
 
returns.
92
 
</para>
93
 
 
94
 
@applet: The #PanelApplet.
95
 
@key: The key name of the preference.
96
 
@opt_error: Optional #GError**.
97
 
@Returns: The string value of the key, or %NULL if unset.
98
 
 
99
 
 
100
 
<!-- ##### FUNCTION panel_applet_gconf_get_float ##### -->
101
 
<para>
102
 
Convience wrapper for gconf_client_get_float() which operates
103
 
on the individual per-applet key.
104
 
</para>
105
 
 
106
 
<para>
107
 
If you pass %NULL for @opt_error, this function will print
108
 
a warning message from any #GError which gconf_client_get_float()
109
 
returns.
110
 
</para>
111
 
 
112
 
@applet: The #PanelApplet.
113
 
@key: The key name of the preference.
114
 
@opt_error: Optional #GError**.
115
 
@Returns: The floating point value of the key.
116
 
 
117
 
 
118
 
<!-- ##### FUNCTION panel_applet_gconf_get_list ##### -->
119
 
<para>
120
 
Convience wrapper for gconf_client_get_list() which operates
121
 
on the individual per-applet key.
122
 
</para>
123
 
 
124
 
<para>
125
 
If you pass %NULL for @opt_error, this function will print
126
 
a warning message from any #GError which gconf_client_get_list()
127
 
returns.
128
 
</para>
129
 
 
130
 
@applet: The #PanelApplet.
131
 
@key: The key name of the preference.
132
 
@list_type: The GConf value type of the list elements.
133
 
@opt_error: Optional #GError**.
134
 
@Returns: The list of values set for the key.
135
 
 
136
 
 
137
 
<!-- ##### FUNCTION panel_applet_gconf_get_value ##### -->
138
 
<para>
139
 
Convience wrapper for gconf_client_get_value() which operates
140
 
on the individual per-applet key.
141
 
</para>
142
 
 
143
 
<para>
144
 
If you pass %NULL for @opt_error, this function will print
145
 
a warning message from any #GError which gconf_client_get_value()
146
 
returns.
147
 
</para>
148
 
 
149
 
@applet: The #PanelApplet.
150
 
@key: The key name of the preference.
151
 
@opt_error: Optional #GError**.
152
 
@Returns: The GConf value set for the key.
153
 
 
154
 
 
155
 
<!-- ##### FUNCTION panel_applet_gconf_set_bool ##### -->
156
 
<para>
157
 
Convience wrapper for gconf_client_set_bool() which operates
158
 
on the individual per-applet key.
159
 
</para>
160
 
 
161
 
<para>
162
 
If you pass %NULL for @opt_error, this function will print
163
 
a warning message from any #GError which gconf_client_set_bool()
164
 
returns.
165
 
</para>
166
 
 
167
 
@applet: The #PanelApplet.
168
 
@key: The key name of the preference.
169
 
@the_bool: The boolean value to set the key with.
170
 
@opt_error: Optional #GError**.
171
 
 
172
 
 
173
 
<!-- ##### FUNCTION panel_applet_gconf_set_int ##### -->
174
 
<para>
175
 
Convience wrapper for gconf_client_set_int() which operates
176
 
on the individual per-applet key.
177
 
</para>
178
 
 
179
 
<para>
180
 
If you pass %NULL for @opt_error, this function will print
181
 
a warning message from any #GError which gconf_client_set_int()
182
 
returns.
183
 
</para>
184
 
 
185
 
@applet: The #PanelApplet.
186
 
@key: The key name of the preference.
187
 
@the_int: The integer value to set the key with.
188
 
@opt_error: Optional #GError**.
189
 
 
190
 
 
191
 
<!-- ##### FUNCTION panel_applet_gconf_set_string ##### -->
192
 
<para>
193
 
Convience wrapper for gconf_client_set_string() which operates
194
 
on the individual per-applet key.
195
 
</para>
196
 
 
197
 
<para>
198
 
If you pass %NULL for @opt_error, this function will print
199
 
a warning message from any #GError which gconf_client_set_string()
200
 
returns.
201
 
</para>
202
 
 
203
 
@applet: The #PanelApplet.
204
 
@key: The key name of the preference.
205
 
@the_string: The string value to set the key with.
206
 
@opt_error: Optional #GError**.
207
 
 
208
 
 
209
 
<!-- ##### FUNCTION panel_applet_gconf_set_float ##### -->
210
 
<para>
211
 
Convience wrapper for gconf_client_set_float() which operates
212
 
on the individual per-applet key.
213
 
</para>
214
 
 
215
 
<para>
216
 
If you pass %NULL for @opt_error, this function will print
217
 
a warning message from any #GError which gconf_client_set_float()
218
 
returns.
219
 
</para>
220
 
 
221
 
@applet: The #PanelApplet.
222
 
@key: The key name of the preference.
223
 
@the_float: The floating point value to set the key with.
224
 
@opt_error: Optional #GError**.
225
 
 
226
 
 
227
 
<!-- ##### FUNCTION panel_applet_gconf_set_list ##### -->
228
 
<para>
229
 
Convience wrapper for gconf_client_set_list() which operates
230
 
on the individual per-applet key.
231
 
</para>
232
 
 
233
 
<para>
234
 
If you pass %NULL for @opt_error, this function will print
235
 
a warning message from any #GError which gconf_client_set_list()
236
 
returns.
237
 
</para>
238
 
 
239
 
@applet: The #PanelApplet.
240
 
@key: The key name of the preference.
241
 
@list_type: The GConf value type of the list items.
242
 
@list: The list of values to set the key with.
243
 
@opt_error: Optional #GError**.
244
 
 
245
 
 
246
 
<!-- ##### FUNCTION panel_applet_gconf_set_value ##### -->
247
 
<para>
248
 
Convience wrapper for gconf_client_set_value() which operates
249
 
on the individual per-applet key.
250
 
</para>
251
 
 
252
 
<para>
253
 
If you pass %NULL for @opt_error, this function will print
254
 
a warning message from any #GError which gconf_client_set_value()
255
 
returns.
256
 
</para>
257
 
 
258
 
@applet: The #PanelApplet.
259
 
@key: The key name of the preference.
260
 
@value: The GConf value to set the key with.
261
 
@opt_error: Optional #GError**.
262
 
 
263