~ubuntu-branches/ubuntu/jaunty/gimp/jaunty-security

« back to all changes in this revision

Viewing changes to plug-ins/pygimp/gimpthumb.defs

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2007-05-02 16:33:03 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070502163303-bvzhjzbpw8qglc4y
Tags: 2.3.16-1ubuntu1
* Resynchronized with Debian, remaining Ubuntu changes:
  - debian/rules: i18n magic.
* debian/control.in:
  - Maintainer: Ubuntu Core Developers <ubuntu-devel@lists.ubuntu.com>
* debian/patches/02_help-message.patch,
  debian/patches/03_gimp.desktop.in.in.patch,
  debian/patches/10_dont_show_wizard.patch: updated.
* debian/patches/04_composite-signedness.patch,
  debian/patches/05_add-letter-spacing.patch: dropped, used upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
;; -*- scheme -*-
 
2
; object definitions ...
 
3
(define-object Thumbnail
 
4
  (in-module "Gimp")
 
5
  (parent "GObject")
 
6
  (c-name "GimpThumbnail")
 
7
  (gtype-id "GIMP_TYPE_THUMBNAIL")
 
8
)
 
9
 
 
10
;; Enumerations and flags ...
 
11
 
 
12
(define-enum ThumbFileType
 
13
  (in-module "Gimp")
 
14
  (c-name "GimpThumbFileType")
 
15
  (gtype-id "GIMP_TYPE_THUMB_FILE_TYPE")
 
16
  (values
 
17
    '("none" "GIMP_THUMB_FILE_TYPE_NONE")
 
18
    '("regular" "GIMP_THUMB_FILE_TYPE_REGULAR")
 
19
    '("folder" "GIMP_THUMB_FILE_TYPE_FOLDER")
 
20
    '("special" "GIMP_THUMB_FILE_TYPE_SPECIAL")
 
21
  )
 
22
)
 
23
 
 
24
(define-enum ThumbSize
 
25
  (in-module "Gimp")
 
26
  (c-name "GimpThumbSize")
 
27
  (gtype-id "GIMP_TYPE_THUMB_SIZE")
 
28
  (values
 
29
    '("fail" "GIMP_THUMB_SIZE_FAIL")
 
30
    '("normal" "GIMP_THUMB_SIZE_NORMAL")
 
31
    '("large" "GIMP_THUMB_SIZE_LARGE")
 
32
  )
 
33
)
 
34
 
 
35
(define-enum ThumbState
 
36
  (in-module "Gimp")
 
37
  (c-name "GimpThumbState")
 
38
  (gtype-id "GIMP_TYPE_THUMB_STATE")
 
39
  (values
 
40
    '("unknown" "GIMP_THUMB_STATE_UNKNOWN")
 
41
    '("remote" "GIMP_THUMB_STATE_REMOTE")
 
42
    '("folder" "GIMP_THUMB_STATE_FOLDER")
 
43
    '("special" "GIMP_THUMB_STATE_SPECIAL")
 
44
    '("not-found" "GIMP_THUMB_STATE_NOT_FOUND")
 
45
    '("exists" "GIMP_THUMB_STATE_EXISTS")
 
46
    '("old" "GIMP_THUMB_STATE_OLD")
 
47
    '("failed" "GIMP_THUMB_STATE_FAILED")
 
48
    '("ok" "GIMP_THUMB_STATE_OK")
 
49
  )
 
50
)
 
51
 
 
52
 
 
53
;; From ../../libgimpthumb/gimpthumb-enums.h
 
54
 
 
55
(define-function gimp_thumb_file_type_get_type
 
56
  (c-name "gimp_thumb_file_type_get_type")
 
57
  (return-type "GType")
 
58
)
 
59
 
 
60
(define-function gimp_thumb_size_get_type
 
61
  (c-name "gimp_thumb_size_get_type")
 
62
  (return-type "GType")
 
63
)
 
64
 
 
65
(define-function gimp_thumb_state_get_type
 
66
  (c-name "gimp_thumb_state_get_type")
 
67
  (return-type "GType")
 
68
)
 
69
 
 
70
 
 
71
 
 
72
;; From ../../libgimpthumb/gimpthumb-types.h
 
73
 
 
74
 
 
75
 
 
76
;; From ../../libgimpthumb/gimpthumb-utils.h
 
77
 
 
78
(define-function init
 
79
  (c-name "gimp_thumb_init")
 
80
  (return-type "gboolean")
 
81
  (parameters
 
82
    '("const-gchar*" "creator")
 
83
    '("const-gchar*" "thumb_basedir")
 
84
  )
 
85
)
 
86
 
 
87
(define-function find_thumb
 
88
  (c-name "gimp_thumb_find_thumb")
 
89
  (return-type "gchar*")
 
90
  (parameters
 
91
    '("const-gchar*" "uri")
 
92
    '("GimpThumbSize*" "size")
 
93
  )
 
94
)
 
95
 
 
96
(define-function file_test
 
97
  (c-name "gimp_thumb_file_test")
 
98
  (return-type "GimpThumbFileType")
 
99
  (parameters
 
100
    '("const-gchar*" "filename")
 
101
    '("gint64*" "mtime")
 
102
    '("gint64*" "size")
 
103
    '("gint*" "err_no")
 
104
  )
 
105
)
 
106
 
 
107
(define-function name_from_uri
 
108
  (c-name "gimp_thumb_name_from_uri")
 
109
  (return-type "gchar*")
 
110
  (parameters
 
111
    '("const-gchar*" "uri")
 
112
    '("GimpThumbSize" "size")
 
113
  )
 
114
)
 
115
 
 
116
(define-function get_thumb_dir
 
117
  (c-name "gimp_thumb_get_thumb_dir")
 
118
  (return-type "const-gchar*")
 
119
  (parameters
 
120
    '("GimpThumbSize" "size")
 
121
  )
 
122
)
 
123
 
 
124
(define-function ensure_thumb_dir
 
125
  (c-name "gimp_thumb_ensure_thumb_dir")
 
126
  (return-type "gboolean")
 
127
  (parameters
 
128
    '("GimpThumbSize" "size")
 
129
    '("GError**" "error")
 
130
  )
 
131
)
 
132
 
 
133
(define-function delete_for_uri
 
134
  (c-name "gimp_thumbs_delete_for_uri")
 
135
  (return-type "none")
 
136
  (parameters
 
137
    '("const-gchar*" "uri")
 
138
  )
 
139
)
 
140
 
 
141
(define-function name_from_uri_local
 
142
  (c-name "gimp_thumb_name_from_uri_local")
 
143
  (return-type "gchar*")
 
144
  (parameters
 
145
    '("const-gchar*" "uri")
 
146
    '("GimpThumbSize" "size")
 
147
  )
 
148
)
 
149
 
 
150
(define-function get_thumb_dir_local
 
151
  (c-name "gimp_thumb_get_thumb_dir_local")
 
152
  (return-type "gchar*")
 
153
  (parameters
 
154
    '("const-gchar*" "dirname")
 
155
    '("GimpThumbSize" "size")
 
156
  )
 
157
)
 
158
 
 
159
(define-function ensure_thumb_dir_local
 
160
  (c-name "gimp_thumb_ensure_thumb_dir_local")
 
161
  (return-type "gboolean")
 
162
  (parameters
 
163
    '("const-gchar*" "dirname")
 
164
    '("GimpThumbSize" "size")
 
165
    '("GError**" "error")
 
166
  )
 
167
)
 
168
 
 
169
(define-function delete_for_uri_local
 
170
  (c-name "gimp_thumbs_delete_for_uri_local")
 
171
  (return-type "none")
 
172
  (parameters
 
173
    '("const-gchar*" "uri")
 
174
  )
 
175
)
 
176
 
 
177
 
 
178
 
 
179
;; From ../../libgimpthumb/gimpthumb.h
 
180
 
 
181
 
 
182
 
 
183
;; From ../../libgimpthumb/gimpthumbnail.h
 
184
 
 
185
(define-function gimp_thumbnail_get_type
 
186
  (c-name "gimp_thumbnail_get_type")
 
187
  (return-type "GType")
 
188
)
 
189
 
 
190
(define-function gimp_thumbnail_new
 
191
  (c-name "gimp_thumbnail_new")
 
192
  (is-constructor-of "GimpThumbnail")
 
193
  (return-type "GimpThumbnail*")
 
194
)
 
195
 
 
196
(define-method set_uri
 
197
  (of-object "GimpThumbnail")
 
198
  (c-name "gimp_thumbnail_set_uri")
 
199
  (return-type "none")
 
200
  (parameters
 
201
    '("const-gchar*" "uri")
 
202
  )
 
203
)
 
204
 
 
205
(define-method set_filename
 
206
  (of-object "GimpThumbnail")
 
207
  (c-name "gimp_thumbnail_set_filename")
 
208
  (return-type "gboolean")
 
209
  (parameters
 
210
    '("const-gchar*" "filename")
 
211
    '("GError**" "error")
 
212
  )
 
213
)
 
214
 
 
215
(define-method set_from_thumb
 
216
  (of-object "GimpThumbnail")
 
217
  (c-name "gimp_thumbnail_set_from_thumb")
 
218
  (return-type "gboolean")
 
219
  (parameters
 
220
    '("const-gchar*" "filename")
 
221
    '("GError**" "error")
 
222
  )
 
223
)
 
224
 
 
225
(define-method peek_image
 
226
  (of-object "GimpThumbnail")
 
227
  (c-name "gimp_thumbnail_peek_image")
 
228
  (return-type "GimpThumbState")
 
229
)
 
230
 
 
231
(define-method peek_thumb
 
232
  (of-object "GimpThumbnail")
 
233
  (c-name "gimp_thumbnail_peek_thumb")
 
234
  (return-type "GimpThumbState")
 
235
  (parameters
 
236
    '("GimpThumbSize" "size")
 
237
  )
 
238
)
 
239
 
 
240
(define-method check_thumb
 
241
  (of-object "GimpThumbnail")
 
242
  (c-name "gimp_thumbnail_check_thumb")
 
243
  (return-type "GimpThumbState")
 
244
  (parameters
 
245
    '("GimpThumbSize" "size")
 
246
  )
 
247
)
 
248
 
 
249
(define-method load_thumb
 
250
  (of-object "GimpThumbnail")
 
251
  (c-name "gimp_thumbnail_load_thumb")
 
252
  (return-type "GdkPixbuf*")
 
253
  (parameters
 
254
    '("GimpThumbSize" "size")
 
255
    '("GError**" "error")
 
256
  )
 
257
)
 
258
 
 
259
(define-method save_thumb
 
260
  (of-object "GimpThumbnail")
 
261
  (c-name "gimp_thumbnail_save_thumb")
 
262
  (return-type "gboolean")
 
263
  (parameters
 
264
    '("GdkPixbuf*" "pixbuf")
 
265
    '("const-gchar*" "software")
 
266
    '("GError**" "error")
 
267
  )
 
268
)
 
269
 
 
270
(define-method save_thumb_local
 
271
  (of-object "GimpThumbnail")
 
272
  (c-name "gimp_thumbnail_save_thumb_local")
 
273
  (return-type "gboolean")
 
274
  (parameters
 
275
    '("GdkPixbuf*" "pixbuf")
 
276
    '("const-gchar*" "software")
 
277
    '("GError**" "error")
 
278
  )
 
279
)
 
280
 
 
281
(define-method save_failure
 
282
  (of-object "GimpThumbnail")
 
283
  (c-name "gimp_thumbnail_save_failure")
 
284
  (return-type "gboolean")
 
285
  (parameters
 
286
    '("const-gchar*" "software")
 
287
    '("GError**" "error")
 
288
  )
 
289
)
 
290
 
 
291
(define-method delete_failure
 
292
  (of-object "GimpThumbnail")
 
293
  (c-name "gimp_thumbnail_delete_failure")
 
294
  (return-type "none")
 
295
)
 
296
 
 
297
(define-method delete_others
 
298
  (of-object "GimpThumbnail")
 
299
  (c-name "gimp_thumbnail_delete_others")
 
300
  (return-type "none")
 
301
  (parameters
 
302
    '("GimpThumbSize" "size")
 
303
  )
 
304
)
 
305
 
 
306
(define-method has_failed
 
307
  (of-object "GimpThumbnail")
 
308
  (c-name "gimp_thumbnail_has_failed")
 
309
  (return-type "gboolean")
 
310
)
 
311
 
 
312