~awn-core/awn/0.2.4

« back to all changes in this revision

Viewing changes to bindings/python/awn.defs

  • Committer: Neil J Patel
  • Date: 2008-02-14 17:14:00 UTC
  • mfrom: (155.1.34 awn-core-testing)
  • Revision ID: njp@neils-mbp-20080214171400-f2dikd9ivke2jhje
2008-02-14  Neil J. Patel  <njpatel@gmail.com>

        * .bzrignore:
        * CC.COPYING:
        * ChangeLog:
        * Makefile.am:
        * acinclude.m4:
        * applets/wscript_build:
        * autogen.sh:
        * awn-applet-activation/Makefile.am:
        * awn-applet-activation/main.c:
        * awn-applet-activation/wscript_build:
        * awn-manager/.directory:
        * awn-manager/Makefile.am:
        * awn-manager/awn-launcher-editor.in:
        * awn-manager/awnApplet.py:
        * awn-manager/awnDefs.py.in:
        * awn-manager/awnLauncher.py:
        * awn-manager/awnLauncherEditor.py:
        * awn-manager/awnManager.py.in:
        * awn-manager/awnPreferences.py:
        * awn-manager/awnTheme.py:
        * awn-manager/launcher-editor.glade:
        * awn-manager/window.glade:
        * awn-manager/wscript_build:
        * awn.pc.in:
        * bindings/Makefile.am:
        * bindings/python/Makefile.am:
        * bindings/python/__init__.py:
        * bindings/python/awn.defs:
        * bindings/python/awn.override:
        * bindings/python/awnmodule.c:
        * bindings/vala/Makefile.am:
        * bindings/vala/awn.deps:
        * bindings/vala/awn.files:
        * bindings/vala/awn.gi:
        * bindings/vala/awn.metadata:
        * bindings/vala/awn.namespace:
        * bindings/vala/awn.vapi:
        * config.h.in:
        * configure.in:
        * data/Makefile.am:
        * data/awn-schema-to-gconf:
        * data/awn.schema-ini:
        * data/wscript_build:
        * doc/Makefile.am:
        * doc/reference/Makefile.am:
        * doc/reference/libawn-docs.sgml:
        * doc/reference/libawn-sections.txt:
        * doc/reference/libawn.types:
        * docs/PPA_autoppa:
        * docs/waf:
        * libawn/Makefile.am:
        * libawn/awn-applet-dialog.c:
        * libawn/awn-applet-dialog.h:
        * libawn/awn-applet-gconf.c:
        * libawn/awn-applet-gconf.h:
        * libawn/awn-applet-simple.c:
        * libawn/awn-applet.c:
        * libawn/awn-applet.h:
        * libawn/awn-config-client-gconf.c:
        * libawn/awn-config-client-gkeyfile.c:
        * libawn/awn-config-client-shared.c:
        * libawn/awn-config-client.h:
        * libawn/awn-defines.h:
        * libawn/awn-desktop-item-egg.c:
        * libawn/awn-desktop-item-gnome.c:
        * libawn/awn-desktop-item.h:
        * libawn/awn-effects.c:
        * libawn/awn-effects.h:
        * libawn/awn-enum-types.c.in:
        * libawn/awn-settings.c:
        * libawn/awn-settings.h:
        * libawn/awn-title.c:
        * libawn/awn-vfs.c:
        * libawn/awn-vfs.h:
        * libawn/egg/Makefile.am:
        * libawn/egg/egg-enum-types.c.in:
        * libawn/egg/egg-enum-types.h.in:
        * libawn/egg/eggchecksum.c:
        * libawn/egg/eggchecksum.h:
        * libawn/egg/eggdesktopfile.c:
        * libawn/egg/eggdesktopfile.h:
        * libawn/egg/tests/checksum-test.c:
        * libawn/wscript_build:
        * po/wscript_build:
        * src/Makefile.am:
        * src/awn-applet-manager.c:
        * src/awn-applet-manager.h:
        * src/awn-bar.h:
        * src/awn-hotspot.h:
        * src/awn-task-manager.c:
        * src/awn-task-manager.h:
        * src/awn-task.c:
        * src/awn-task.h:
        * src/awn-utils.h:
        * src/awn-window.h:
        * src/awn-x.c:
        * src/awn-x.h:
        * src/main.c:
        * test/Makefile.am:
        * test/test-config-client.c:
        * test/test-config-client.py:
        * test/test.vala:
        * waf:
        * wscript:
        Merged awn-core-testing branch by malept, moonbeem & gilir.
        Abstracts configuration backends; Add support for GKeyfile backend.
        Abstracts Desktop File implementation; Adds support for libegg backend.
        Abstracts VFS backends; Adds support for Tunar & GVFS backend.
        Updated python bindings.
        Adds support for Vala bindings.
        Removes gnome-panel dependancy.
        Updated awn-manager interface.
        

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
  (gtype-id "AWN_TYPE_TITLE")
36
36
)
37
37
 
 
38
;; Boxed types ...
 
39
(define-boxed Config
 
40
  (in-module "Awn")
 
41
  (c-name "AwnConfigClient")
 
42
  (gtype-id "AWN_TYPE_CONFIG_CLIENT")
 
43
)
 
44
 
 
45
(define-boxed DesktopItem
 
46
  (in-module "Awn")
 
47
  (c-name "AwnDesktopItem")
 
48
  (gtype-id "AWN_TYPE_DESKTOP_ITEM")
 
49
  (copy-func "awn_desktop_item_copy")
 
50
  (release-func "awn_desktop_item_free")
 
51
)
 
52
 
38
53
;; Enumerations and flags ...
39
54
 
40
55
(define-enum CairoRoundCorners
82
97
  )
83
98
)
84
99
 
 
100
(define-enum ConfigListType
 
101
  (in-module "Awn")
 
102
  (c-name "AwnConfigListType")
 
103
  (gtype-id "AWN_TYPE_CONFIG_LIST_TYPE")
 
104
  (values
 
105
    '("boolean" "AWN_CONFIG_LIST_TYPE_BOOL")
 
106
    '("float" "AWN_CONFIG_LIST_TYPE_FLOAT")
 
107
    '("integer" "AWN_CONFIG_LIST_TYPE_INT")
 
108
    '("string" "AWN_CONFIG_LIST_TYPE_STRING")
 
109
  )
 
110
)
 
111
 
 
112
(define-enum ConfigValueType
 
113
  (in-module "Awn")
 
114
  (c-name "AwnConfigValueType")
 
115
  (gtype-id "AWN_TYPE_CONFIG_VALUE_TYPE")
 
116
  (values
 
117
    '("null" "AWN_CONFIG_VALUE_TYPE_NULL")
 
118
    '("boolean" "AWN_CONFIG_VALUE_TYPE_BOOL")
 
119
    '("float" "AWN_CONFIG_VALUE_TYPE_FLOAT")
 
120
    '("integer" "AWN_CONFIG_VALUE_TYPE_INT")
 
121
    '("string" "AWN_CONFIG_VALUE_TYPE_STRING")
 
122
    '("list_boolean" "AWN_CONFIG_VALUE_TYPE_LIST_BOOL")
 
123
    '("list_float" "AWN_CONFIG_VALUE_TYPE_LIST_FLOAT")
 
124
    '("list_integer" "AWN_CONFIG_VALUE_TYPE_LIST_INT")
 
125
    '("list_string" "AWN_CONFIG_VALUE_TYPE_LIST_STRING")
 
126
  )
 
127
)
85
128
 
86
129
;; From awn-applet-dialog.h
87
130
 
110
153
 
111
154
 
112
155
 
113
 
;; From awn-applet-gconf.h
114
 
 
115
 
(define-method gconf_get_full_key
116
 
  (of-object "AwnApplet")
117
 
  (c-name "awn_applet_gconf_get_full_key")
118
 
  (return-type "gchar*")
119
 
  (parameters
120
 
    '("const-gchar*" "key")
121
 
  )
122
 
)
123
 
 
124
 
(define-method gconf_set_bool
125
 
  (of-object "AwnApplet")
126
 
  (c-name "awn_applet_gconf_set_bool")
127
 
  (return-type "none")
128
 
  (parameters
 
156
;; From awn-config-client.h
 
157
 
 
158
(define-function config_client_new
 
159
  (c-name "awn_config_client_new")
 
160
  (is-constructor-of "AwnConfigClient")
 
161
  (return-type "AwnConfigClient*")
 
162
)
 
163
 
 
164
(define-method clear
 
165
  (of-object "AwnConfigClient")
 
166
  (c-name "awn_config_client_clear")
 
167
  (return-type "none")
 
168
  (parameters
 
169
    '("GError**" "opt_error")
 
170
  )
 
171
)
 
172
 
 
173
(define-method ensure_group
 
174
  (of-object "AwnConfigClient")
 
175
  (c-name "awn_config_client_ensure_group")
 
176
  (return-type "none")
 
177
  (parameters
 
178
    '("const-gchar*" "group")
 
179
  )
 
180
)
 
181
 
 
182
(define-method notify_add
 
183
  (of-object "AwnConfigClient")
 
184
  (c-name "awn_config_client_notify_add")
 
185
  (return-type "none")
 
186
  (parameters
 
187
    '("const-gchar*" "group")
 
188
    '("const-gchar*" "key")
 
189
    '("AwnConfigClientNotifyFunc" "callback")
 
190
    '("gpointer" "data")
 
191
  )
 
192
)
 
193
 
 
194
(define-method exists
 
195
  (of-object "AwnConfigClient")
 
196
  (c-name "awn_config_client_entry_exists")
 
197
  (return-type "gboolean")
 
198
  (parameters
 
199
    '("const-gchar*" "group")
 
200
    '("const-gchar*" "key")
 
201
  )
 
202
)
 
203
 
 
204
(define-method get_value_type
 
205
  (of-object "AwnConfigClient")
 
206
  (c-name "awn_config_client_get_value_type")
 
207
  (return-type "AwnConfigValueType")
 
208
  (parameters
 
209
    '("const-gchar*" "group")
 
210
    '("const-gchar*" "key")
 
211
    '("GError**" "opt_error")
 
212
  )
 
213
)
 
214
 
 
215
(define-method set_bool
 
216
  (of-object "AwnConfigClient")
 
217
  (c-name "awn_config_client_set_bool")
 
218
  (return-type "none")
 
219
  (parameters
 
220
    '("const-gchar*" "group")
129
221
    '("const-gchar*" "key")
130
222
    '("gboolean" "the_bool")
131
223
    '("GError**" "opt_error")
132
224
  )
133
225
)
134
226
 
135
 
(define-method gconf_set_int
136
 
  (of-object "AwnApplet")
137
 
  (c-name "awn_applet_gconf_set_int")
 
227
(define-method set_int
 
228
  (of-object "AwnConfigClient")
 
229
  (c-name "awn_config_client_set_int")
138
230
  (return-type "none")
139
231
  (parameters
 
232
    '("const-gchar*" "group")
140
233
    '("const-gchar*" "key")
141
234
    '("gint" "the_int")
142
235
    '("GError**" "opt_error")
143
236
  )
144
237
)
145
238
 
146
 
(define-method gconf_set_string
147
 
  (of-object "AwnApplet")
148
 
  (c-name "awn_applet_gconf_set_string")
 
239
(define-method set_string
 
240
  (of-object "AwnConfigClient")
 
241
  (c-name "awn_config_client_set_string")
149
242
  (return-type "none")
150
243
  (parameters
 
244
    '("const-gchar*" "group")
151
245
    '("const-gchar*" "key")
152
246
    '("const-gchar*" "the_string")
153
247
    '("GError**" "opt_error")
154
248
  )
155
249
)
156
250
 
157
 
(define-method gconf_set_float
158
 
  (of-object "AwnApplet")
159
 
  (c-name "awn_applet_gconf_set_float")
 
251
(define-method set_float
 
252
  (of-object "AwnConfigClient")
 
253
  (c-name "awn_config_client_set_float")
160
254
  (return-type "none")
161
255
  (parameters
 
256
    '("const-gchar*" "group")
162
257
    '("const-gchar*" "key")
163
258
    '("gdouble" "the_float")
164
259
    '("GError**" "opt_error")
165
260
  )
166
261
)
167
262
 
168
 
(define-method gconf_set_list
169
 
  (of-object "AwnApplet")
170
 
  (c-name "awn_applet_gconf_set_list")
 
263
(define-method set_list
 
264
  (of-object "AwnConfigClient")
 
265
  (c-name "awn_config_client_set_list")
171
266
  (return-type "none")
172
267
  (parameters
 
268
    '("const-gchar*" "group")
173
269
    '("const-gchar*" "key")
174
270
    '("GConfValueType" "list_type")
175
271
    '("GSList*" "list")
177
273
  )
178
274
)
179
275
 
180
 
(define-method gconf_get_bool
181
 
  (of-object "AwnApplet")
182
 
  (c-name "awn_applet_gconf_get_bool")
 
276
(define-method get_bool
 
277
  (of-object "AwnConfigClient")
 
278
  (c-name "awn_config_client_get_bool")
183
279
  (return-type "gboolean")
184
280
  (parameters
 
281
    '("const-gchar*" "group")
185
282
    '("const-gchar*" "key")
186
283
    '("GError**" "opt_error")
187
284
  )
188
285
)
189
286
 
190
 
(define-method gconf_get_int
191
 
  (of-object "AwnApplet")
192
 
  (c-name "awn_applet_gconf_get_int")
 
287
(define-method get_int
 
288
  (of-object "AwnConfigClient")
 
289
  (c-name "awn_config_client_get_int")
193
290
  (return-type "gint")
194
291
  (parameters
 
292
    '("const-gchar*" "group")
195
293
    '("const-gchar*" "key")
196
294
    '("GError**" "opt_error")
197
295
  )
198
296
)
199
297
 
200
 
(define-method gconf_get_string
201
 
  (of-object "AwnApplet")
202
 
  (c-name "awn_applet_gconf_get_string")
 
298
(define-method get_string
 
299
  (of-object "AwnConfigClient")
 
300
  (c-name "awn_config_client_get_string")
203
301
  (return-type "gchar*")
204
302
  (parameters
 
303
    '("const-gchar*" "group")
205
304
    '("const-gchar*" "key")
206
305
    '("GError**" "opt_error")
207
306
  )
208
307
)
209
308
 
210
 
(define-method gconf_get_float
211
 
  (of-object "AwnApplet")
212
 
  (c-name "awn_applet_gconf_get_float")
213
 
  (return-type "gdouble")
 
309
(define-method get_float
 
310
  (of-object "AwnConfigClient")
 
311
  (c-name "awn_config_client_get_float")
 
312
  (return-type "gfloat")
214
313
  (parameters
 
314
    '("const-gchar*" "group")
215
315
    '("const-gchar*" "key")
216
316
    '("GError**" "opt_error")
217
317
  )
218
318
)
219
319
 
220
 
(define-method gconf_get_list
221
 
  (of-object "AwnApplet")
222
 
  (c-name "awn_applet_gconf_get_list")
 
320
(define-method get_list
 
321
  (of-object "AwnConfigClient")
 
322
  (c-name "awn_config_client_get_list")
223
323
  (return-type "GSList*")
224
324
  (parameters
 
325
    '("const-gchar*" "group")
225
326
    '("const-gchar*" "key")
226
 
    '("GConfValueType" "list_type")
 
327
    '("AwnConfigListType" "list_type")
227
328
    '("GError**" "opt_error")
228
329
  )
229
330
)
230
331
 
 
332
(define-function config_key_lock_open
 
333
  (c-name "awn_config_client_key_lock_open")
 
334
  (return-type "int")
 
335
  (parameters
 
336
    '("const-gchar*" "group")
 
337
    '("const-gchar*" "key")
 
338
  )
 
339
)
 
340
 
 
341
(define-function config_key_lock
 
342
  (c-name "awn_config_client_key_lock")
 
343
  (return-type "none")
 
344
  (parameters
 
345
    '("int" "fd")
 
346
    '("int" "operation")
 
347
  )
 
348
)
 
349
 
 
350
(define-function config_key_lock_close
 
351
  (c-name "awn_config_client_key_lock_close")
 
352
  (return-type "none")
 
353
  (parameters
 
354
    '("int" "fd")
 
355
  )
 
356
)
 
357
 
231
358
 
232
359
 
233
360
;; From awn-applet.h
260
387
  (return-type "guint")
261
388
)
262
389
 
263
 
(define-method get_preferences_key
264
 
  (of-object "AwnApplet")
265
 
  (c-name "awn_applet_get_preferences_key")
266
 
  (return-type "gchar*")
267
 
)
268
 
 
269
390
(define-method add_preferences
270
391
  (of-object "AwnApplet")
271
392
  (c-name "awn_applet_add_preferences")
352
473
  )
353
474
)
354
475
 
355
 
(define-function awn_cairo_string_to_color
 
476
(define-function rgba_string_to_dict
356
477
  (c-name "awn_cairo_string_to_color")
357
 
  (return-type "none")
 
478
  (return-type "AwnColor*")
358
479
  (parameters
359
480
    '("const-gchar*" "string")
360
 
    '("AwnColor*" "color")
361
481
  )
362
482
)
363
483
 
367
487
 
368
488
 
369
489
 
 
490
;; From awn-desktop-item.h
 
491
 
 
492
(define-function awn_desktop_item_get_type
 
493
  (c-name "awn_desktop_item_get_type")
 
494
  (return-type "GType")
 
495
)
 
496
 
 
497
(define-function awn_desktop_item_new
 
498
  (c-name "awn_desktop_item_new")
 
499
  (is-constructor-of "AwnDesktopItem")
 
500
  (return-type "AwnDesktopItem*")
 
501
  (parameters
 
502
    '("gchar*" "filename")
 
503
  )
 
504
)
 
505
 
 
506
(define-method get_filename
 
507
  (c-name "awn_desktop_item_get_filename")
 
508
  (of-object "AwnDesktopItem")
 
509
  (return-type "gchar*")
 
510
)
 
511
 
 
512
(define-method get_item_type
 
513
  (c-name "awn_desktop_item_get_item_type")
 
514
  (of-object "AwnDesktopItem")
 
515
  (return-type "gchar*")
 
516
)
 
517
 
 
518
(define-method set_item_type
 
519
  (c-name "awn_desktop_item_set_item_type")
 
520
  (of-object "AwnDesktopItem")
 
521
  (return-type "none")
 
522
  (parameters
 
523
    '("gchar*" "item_type")
 
524
  )
 
525
)
 
526
 
 
527
(define-method get_icon
 
528
  (c-name "awn_desktop_item_get_icon")
 
529
  (of-object "AwnDesktopItem")
 
530
  (return-type "gchar*")
 
531
  (parameters
 
532
    '("GtkIconTheme*" "icon_theme")
 
533
  )
 
534
)
 
535
 
 
536
(define-method set_icon
 
537
  (c-name "awn_desktop_item_set_icon")
 
538
  (of-object "AwnDesktopItem")
 
539
  (return-type "none")
 
540
  (parameters
 
541
    '("gchar*" "icon")
 
542
  )
 
543
)
 
544
 
 
545
(define-method get_name
 
546
  (c-name "awn_desktop_item_get_name")
 
547
  (of-object "AwnDesktopItem")
 
548
  (return-type "gchar*")
 
549
)
 
550
 
 
551
(define-method set_name
 
552
  (c-name "awn_desktop_item_set_name")
 
553
  (of-object "AwnDesktopItem")
 
554
  (return-type "none")
 
555
  (parameters
 
556
    '("gchar*" "name")
 
557
  )
 
558
)
 
559
 
 
560
(define-method get_exec
 
561
  (c-name "awn_desktop_item_get_exec")
 
562
  (of-object "AwnDesktopItem")
 
563
  (return-type "gchar*")
 
564
)
 
565
 
 
566
(define-method set_exec
 
567
  (c-name "awn_desktop_item_set_exec")
 
568
  (of-object "AwnDesktopItem")
 
569
  (return-type "none")
 
570
  (parameters
 
571
    '("gchar*" "exec")
 
572
  )
 
573
)
 
574
 
 
575
(define-method get_string
 
576
  (c-name "awn_desktop_item_get_string")
 
577
  (of-object "AwnDesktopItem")
 
578
  (return-type "gchar*")
 
579
  (parameters
 
580
    '("gchar*" "key")
 
581
  )
 
582
)
 
583
 
 
584
(define-method set_string
 
585
  (c-name "awn_desktop_item_set_string")
 
586
  (of-object "AwnDesktopItem")
 
587
  (return-type "none")
 
588
  (parameters
 
589
    '("gchar*" "key")
 
590
    '("gchar*" "value")
 
591
  )
 
592
)
 
593
 
 
594
(define-method get_localestring
 
595
  (c-name "awn_desktop_item_get_localestring")
 
596
  (of-object "AwnDesktopItem")
 
597
  (return-type "gchar*")
 
598
  (parameters
 
599
    '("gchar*" "key")
 
600
  )
 
601
)
 
602
 
 
603
(define-method set_localestring
 
604
  (c-name "awn_desktop_item_set_localestring")
 
605
  (of-object "AwnDesktopItem")
 
606
  (return-type "none")
 
607
  (parameters
 
608
    '("gchar*" "key")
 
609
    '("gchar*" "locale")
 
610
    '("gchar*" "value")
 
611
  )
 
612
)
 
613
 
 
614
(define-method exists
 
615
  (c-name "awn_desktop_item_exists")
 
616
  (of-object "AwnDesktopItem")
 
617
  (return-type "gboolean")
 
618
)
 
619
 
 
620
(define-method launch
 
621
  (c-name "awn_desktop_item_launch")
 
622
  (of-object "AwnDesktopItem")
 
623
  (return-type "gint")
 
624
  (parameters
 
625
    '("GSList*" "documents")
 
626
    '("GError**" "err")
 
627
  )
 
628
)
 
629
 
 
630
(define-method save
 
631
  (c-name "awn_desktop_item_save")
 
632
  (of-object "AwnDesktopItem")
 
633
  (return-type "none")
 
634
  (parameters
 
635
    '("gchar*" "new_filename")
 
636
    '("GError**" "err")
 
637
  )
 
638
)
 
639
 
370
640
;; From awn-effects.h
371
641
 
372
642
(define-function awn_effect_start
501
771
 
502
772
 
503
773
 
 
774
;; From awn-vfs.h
 
775
 
 
776
(define-function vfs_init
 
777
  (c-name "awn_vfs_init")
 
778
  (return-type "none")
 
779
)
 
780
 
 
781
 
 
782
 
504
783
;; From stamp-awn-enum-types.h
505
784
 
506
785