~ubuntu-branches/ubuntu/quantal/libgweather/quantal

« back to all changes in this revision

Viewing changes to python/gweather.defs

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2011-05-17 15:26:05 UTC
  • mfrom: (1.1.28 upstream) (5.1.9 experimental)
  • Revision ID: james.westby@ubuntu.com-20110517152605-anf9c03d1ny7yn54
Tags: 3.0.0-0ubuntu1
* Resynchronize on Debian and update to the current version, remaining diff:
* debian/control.in:
  - Build-depend on dh-autoreconf, gnome-common
  - use Conflicts on the ppa binaries names differently for easier upgrades
* debian/rules:
  - Run autotools on build
  - Generate POT files on build
* debian/patches/01_gettext_not_xml.patch: 
  - using gettext rather than add translations to the xml databases
* debian/watch: 
  - Watch unstable series  

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
;; -*- scheme -*-
2
 
; boxed definitions ...
3
 
 
4
 
(define-boxed Location
5
 
  (in-module "GWeather")
6
 
  (c-name "GWeatherLocation")
7
 
  (gtype-id "GWEATHER_TYPE_LOCATION")
8
 
)
9
 
 
10
 
(define-boxed Timezone
11
 
  (in-module "GWeather")
12
 
  (c-name "GWeatherTimezone")
13
 
  (gtype-id "GWEATHER_TYPE_TIMEZONE")
14
 
)
15
 
 
16
 
; interface definitions ...
17
 
 
18
 
; object definitions ...
19
 
 
20
 
(define-object LocationEntry
21
 
  (in-module "GWeather")
22
 
  (parent "GtkEntry")
23
 
  (c-name "GWeatherLocationEntry")
24
 
  (gtype-id "GWEATHER_TYPE_LOCATION_ENTRY")
25
 
)
26
 
 
27
 
(define-object TimezoneMenu
28
 
  (in-module "GWeather")
29
 
  (parent "GtkComboBox")
30
 
  (c-name "GWeatherTimezoneMenu")
31
 
  (gtype-id "GWEATHER_TYPE_TIMEZONE_MENU")
32
 
)
33
 
 
34
 
; pointer definitions ...
35
 
 
36
 
;; Enumerations and Flags ...
37
 
 
38
 
(define-enum LocationLevel
39
 
  (in-module "GWeather")
40
 
  (c-name "GWeatherLocationLevel")
41
 
  (gtype-id "GWEATHER_TYPE_LOCATION_LEVEL")
42
 
  (values
43
 
    '("world" "GWEATHER_LOCATION_WORLD")
44
 
    '("region" "GWEATHER_LOCATION_REGION")
45
 
    '("country" "GWEATHER_LOCATION_COUNTRY")
46
 
    '("adm1" "GWEATHER_LOCATION_ADM1")
47
 
    '("adm2" "GWEATHER_LOCATION_ADM2")
48
 
    '("city" "GWEATHER_LOCATION_CITY")
49
 
    '("weather-station" "GWEATHER_LOCATION_WEATHER_STATION")
50
 
  )
51
 
)
52
 
 
53
 
 
54
 
;; From gweather-enum-types.h
55
 
 
56
 
(define-function g_weather_location_level_get_type
57
 
  (c-name "g_weather_location_level_get_type")
58
 
  (return-type "GType")
59
 
)
60
 
 
61
 
 
62
 
 
63
 
;; From gweather-location.h
64
 
 
65
 
(define-function location_get_type
66
 
  (c-name "gweather_location_get_type")
67
 
  (return-type "GType")
68
 
)
69
 
 
70
 
(define-function location_new_world
71
 
  (c-name "gweather_location_new_world")
72
 
  (return-type "GWeatherLocation*")
73
 
  (parameters
74
 
    '("gboolean" "use_regions")
75
 
  )
76
 
)
77
 
 
78
 
(define-method ref
79
 
  (of-object "GWeatherLocation")
80
 
  (c-name "gweather_location_ref")
81
 
  (return-type "GWeatherLocation*")
82
 
)
83
 
 
84
 
(define-method unref
85
 
  (of-object "GWeatherLocation")
86
 
  (c-name "gweather_location_unref")
87
 
  (return-type "none")
88
 
)
89
 
 
90
 
(define-method get_name
91
 
  (of-object "GWeatherLocation")
92
 
  (c-name "gweather_location_get_name")
93
 
  (return-type "const-char*")
94
 
)
95
 
 
96
 
(define-method get_sort_name
97
 
  (of-object "GWeatherLocation")
98
 
  (c-name "gweather_location_get_sort_name")
99
 
  (return-type "const-char*")
100
 
)
101
 
 
102
 
(define-method get_level
103
 
  (of-object "GWeatherLocation")
104
 
  (c-name "gweather_location_get_level")
105
 
  (return-type "GWeatherLocationLevel")
106
 
)
107
 
 
108
 
(define-method get_parent
109
 
  (of-object "GWeatherLocation")
110
 
  (c-name "gweather_location_get_parent")
111
 
  (return-type "GWeatherLocation*")
112
 
)
113
 
 
114
 
(define-method get_children
115
 
  (of-object "GWeatherLocation")
116
 
  (c-name "gweather_location_get_children")
117
 
  (return-type "GWeatherLocation**")
118
 
)
119
 
 
120
 
(define-method free_children
121
 
  (of-object "GWeatherLocation")
122
 
  (c-name "gweather_location_free_children")
123
 
  (return-type "none")
124
 
  (parameters
125
 
    '("GWeatherLocation**" "children")
126
 
  )
127
 
)
128
 
 
129
 
(define-method has_coords
130
 
  (of-object "GWeatherLocation")
131
 
  (c-name "gweather_location_has_coords")
132
 
  (return-type "gboolean")
133
 
)
134
 
 
135
 
(define-method get_coords
136
 
  (of-object "GWeatherLocation")
137
 
  (c-name "gweather_location_get_coords")
138
 
  (return-type "none")
139
 
  (parameters
140
 
    '("double*" "latitude")
141
 
    '("double*" "longitude")
142
 
  )
143
 
)
144
 
 
145
 
(define-method get_distance
146
 
  (of-object "GWeatherLocation")
147
 
  (c-name "gweather_location_get_distance")
148
 
  (return-type "double")
149
 
  (parameters
150
 
    '("GWeatherLocation*" "loc2")
151
 
  )
152
 
)
153
 
 
154
 
(define-method get_country
155
 
  (of-object "GWeatherLocation")
156
 
  (c-name "gweather_location_get_country")
157
 
  (return-type "const-char*")
158
 
)
159
 
 
160
 
(define-method get_timezone
161
 
  (of-object "GWeatherLocation")
162
 
  (c-name "gweather_location_get_timezone")
163
 
  (return-type "GWeatherTimezone*")
164
 
)
165
 
 
166
 
(define-method get_timezones
167
 
  (of-object "GWeatherLocation")
168
 
  (c-name "gweather_location_get_timezones")
169
 
  (return-type "GWeatherTimezone**")
170
 
)
171
 
 
172
 
(define-method free_timezones
173
 
  (of-object "GWeatherLocation")
174
 
  (c-name "gweather_location_free_timezones")
175
 
  (return-type "none")
176
 
  (parameters
177
 
    '("GWeatherTimezone**" "zones")
178
 
  )
179
 
)
180
 
 
181
 
(define-method get_code
182
 
  (of-object "GWeatherLocation")
183
 
  (c-name "gweather_location_get_code")
184
 
  (return-type "const-char*")
185
 
)
186
 
 
187
 
(define-method get_city_name
188
 
  (of-object "GWeatherLocation")
189
 
  (c-name "gweather_location_get_city_name")
190
 
  (return-type "char*")
191
 
)
192
 
 
193
 
(define-method get_weather
194
 
  (of-object "GWeatherLocation")
195
 
  (c-name "gweather_location_get_weather")
196
 
  (return-type "WeatherInfo*")
197
 
)
198
 
 
199
 
 
200
 
 
201
 
;; From gweather-timezone.h
202
 
 
203
 
(define-function timezone_get_type
204
 
  (c-name "gweather_timezone_get_type")
205
 
  (return-type "GType")
206
 
)
207
 
 
208
 
(define-method get_name
209
 
  (of-object "GWeatherTimezone")
210
 
  (c-name "gweather_timezone_get_name")
211
 
  (return-type "const-char*")
212
 
)
213
 
 
214
 
(define-method get_tzid
215
 
  (of-object "GWeatherTimezone")
216
 
  (c-name "gweather_timezone_get_tzid")
217
 
  (return-type "const-char*")
218
 
)
219
 
 
220
 
(define-method get_offset
221
 
  (of-object "GWeatherTimezone")
222
 
  (c-name "gweather_timezone_get_offset")
223
 
  (return-type "int")
224
 
)
225
 
 
226
 
(define-method has_dst
227
 
  (of-object "GWeatherTimezone")
228
 
  (c-name "gweather_timezone_has_dst")
229
 
  (return-type "gboolean")
230
 
)
231
 
 
232
 
(define-method get_dst_offset
233
 
  (of-object "GWeatherTimezone")
234
 
  (c-name "gweather_timezone_get_dst_offset")
235
 
  (return-type "int")
236
 
)
237
 
 
238
 
(define-method ref
239
 
  (of-object "GWeatherTimezone")
240
 
  (c-name "gweather_timezone_ref")
241
 
  (return-type "GWeatherTimezone*")
242
 
)
243
 
 
244
 
(define-method unref
245
 
  (of-object "GWeatherTimezone")
246
 
  (c-name "gweather_timezone_unref")
247
 
  (return-type "none")
248
 
)
249
 
 
250
 
 
251
 
 
252
 
;; From location-entry.h
253
 
 
254
 
(define-function location_entry_get_type
255
 
  (c-name "gweather_location_entry_get_type")
256
 
  (return-type "GType")
257
 
)
258
 
 
259
 
(define-function location_entry_new
260
 
  (c-name "gweather_location_entry_new")
261
 
  (is-constructor-of "GWeatherLocationEntry")
262
 
  (return-type "GtkWidget*")
263
 
  (properties
264
 
    '("top")
265
 
  )
266
 
)
267
 
 
268
 
(define-method set_location
269
 
  (of-object "GWeatherLocationEntry")
270
 
  (c-name "gweather_location_entry_set_location")
271
 
  (return-type "none")
272
 
  (parameters
273
 
    '("GWeatherLocation*" "loc")
274
 
  )
275
 
)
276
 
 
277
 
(define-method get_location
278
 
  (of-object "GWeatherLocationEntry")
279
 
  (c-name "gweather_location_entry_get_location")
280
 
  (return-type "GWeatherLocation*")
281
 
)
282
 
 
283
 
(define-method set_city
284
 
  (of-object "GWeatherLocationEntry")
285
 
  (c-name "gweather_location_entry_set_city")
286
 
  (return-type "none")
287
 
  (parameters
288
 
    '("const-char*" "city_name")
289
 
    '("const-char*" "code")
290
 
  )
291
 
)
292
 
 
293
 
 
294
 
 
295
 
;; From timezone-menu.h
296
 
 
297
 
(define-function timezone_menu_get_type
298
 
  (c-name "gweather_timezone_menu_get_type")
299
 
  (return-type "GType")
300
 
)
301
 
 
302
 
(define-function timezone_menu_new
303
 
  (c-name "gweather_timezone_menu_new")
304
 
  (is-constructor-of "GWeatherTimezoneMenu")
305
 
  (return-type "GtkWidget*")
306
 
  (properties
307
 
    '("top")
308
 
  )
309
 
)
310
 
 
311
 
(define-method set_tzid
312
 
  (of-object "GWeatherTimezoneMenu")
313
 
  (c-name "gweather_timezone_menu_set_tzid")
314
 
  (return-type "none")
315
 
  (parameters
316
 
    '("const-char*" "tzid")
317
 
  )
318
 
)
319
 
 
320
 
(define-method get_tzid
321
 
  (of-object "GWeatherTimezoneMenu")
322
 
  (c-name "gweather_timezone_menu_get_tzid")
323
 
  (return-type "const-char*")
324
 
)
325
 
 
326