forked from SawfishWM/rep-gtk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gtkfilechooser.defs
325 lines (250 loc) · 7.16 KB
/
gtkfilechooser.defs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
;; -*- lisp -*-
;; Enums
(define-enum GtkFileChooserAction
(open GTK_FILE_CHOOSER_ACTION_OPEN)
(save GTK_FILE_CHOOSER_ACTION_SAVE)
(select-folder GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER)
(create-folder GTK_FILE_CHOOSER_ACTION_CREATE_FOLDER))
(define-enum GtkFileChooserConfirmation
(confirm GTK_FILE_CHOOSER_CONFIRMATION_CONFIRM)
(accept-filename GTK_FILE_CHOOSER_CONFIRMATION_ACCEPT_FILENAME)
(select-again GTK_FILE_CHOOSER_CONFIRMATION_SELECT_AGAIN))
(define-enum GtkFileChooserError
(nonexistent GTK_FILE_CHOOSER_ERROR_NONEXISTENT)
(bad-filename GTK_FILE_CHOOSER_ERROR_BAD_FILENAME)
(already-exists GTK_FILE_CHOOSER_ERROR_ALREADY_EXISTS))
(define-enum GtkFileFilterFlags
(filename GTK_FILE_FILTER_FILENAME)
(uri GTK_FILE_FILTER_URI)
(display-name GTK_FILE_FILTER_DISPLAY_NAME)
(mime-type GTK_FILE_FILTER_MIME_TYPE))
;; GtkFileChooser [Base]
(define-object GtkFileChooser (GObject))
(define-func gtk_file_chooser_set_action
none
((GtkFileChooser chooser)
(GtkFileChooserAction action)))
(define-func gtk_file_chooser_get_action
GtkFileChooserAction
((GtkFileChooser chooser)))
(define-func gtk_file_chooser_set_local_only
none
((GtkFileChooser chooser)
(bool local_only)))
(define-func gtk_file_chooser_get_local_only
bool
((GtkFileChooser chooser)))
(define-func gtk_file_chooser_set_select_multiple
none
((GtkFileChooser chooser)
(bool select_multiple)))
(define-func gtk_file_chooser_get_select_multiple
bool
((GtkFileChooser chooser)))
(define-func gtk_file_chooser_set_show_hidden
none
((GtkFileChooser chooser)
(bool show_hidden)))
(define-func gtk_file_chooser_get_show_hidden
bool
((GtkFileChooser chooser)))
(define-func gtk_file_chooser_set_do_overwrite_confirmation
none
((GtkFileChooser chooser)
(bool confirm)))
(define-func gtk_file_chooser_get_do_overwrite_confirmation
bool
((GtkFileChooser chooser)))
;; GtkFileChooser [Filenames]
(define-func gtk_file_chooser_set_filename
none
((GtkFileChooser chooser)
(string filename)))
(define-func gtk_file_chooser_get_filename
string
((GtkFileChooser chooser)))
(define-func gtk_file_chooser_select_filename
bool
((GtkFileChooser chooser)
(string filename)))
(define-func gtk_file_chooser_unselect_filename
none
((GtkFileChooser chooser)
(string filename)))
(define-func gtk_file_chooser_select_all
none
((GtkFileChooser chooser)))
(define-func gtk_file_chooser_unselect_all
none
((GtkFileChooser chooser)))
;;; XXX need GSList return type support
;;(define-func gtk_file_chooser_get_filenames
;; GSList
;; ((GtkFileChooser chooser)))
(define-func gtk_file_chooser_set_current_folder
bool
((GtkFileChooser chooser)
(string folder)))
(define-func gtk_file_chooser_get_current_folder
string
((GtkFileChooser chooser)))
;; GtkFileChooser [URI]
(define-func gtk_file_chooser_set_uri
bool
((GtkFileChooser chooser)
(string uri)))
(define-func gtk_file_chooser_get_uri
string
((GtkFileChooser chooser)))
(define-func gtk_file_chooser_select_uri
bool
((GtkFileChooser chooser)
(string uri)))
(define-func gtk_file_chooser_unselect_uri
none
((GtkFileChooser chooser)
(string uri)))
;;; XXX need GSList return type support
;;(define-func gtk_file_chooser_get_uris
;; GSList
;; ((GtkFileChooser chooser)))
(define-func gtk_file_chooser_set_current_folder_uri
bool
((GtkFileChooser chooser)
(string uri)))
(define-func gtk_file_chooser_get_current_folder_uri
string
((GtkFileChooser chooser)))
;; GtkFileChooser [Preview]
(define-func gtk_file_chooser_set_preview_widget
none
((GtkFileChooser chooser)
(GtkWidget widget)))
(define-func gtk_file_chooser_get_preview_widget
GtkWidget
((GtkFileChooser chooser)))
(define-func gtk_file_chooser_set_preview_widget_active
none
((GtkFileChooser chooser)
(bool active)))
(define-func gtk_file_chooser_get_preview_widget_active
bool
((GtkFileChooser chooser)))
(define-func gtk_file_chooser_set_use_preview_label
none
((GtkFileChooser chooser)
(bool use_label)))
(define-func gtk_file_chooser_get_use_preview_label
bool
((GtkFileChooser chooser)))
(define-func gtk_file_chooser_get_preview_filename
string
((GtkFileChooser chooser)))
(define-func gtk_file_chooser_get_preview_uri
string
((GtkFileChooser chooser)))
;; GtkFileChooser [Extra]
(define-func gtk_file_chooser_set_extra_widget
none
((GtkFileChooser chooser)
(GtkWidget widget)))
(define-func gtk_file_chooser_get_extra_widget
GtkWidget
((GtkFileChooser chooser)))
;; GtkFileFilter
(define-object GtkFileFilter (GObject))
(define-func gtk_file_filter_new
GtkFileFilter
())
(define-func gtk_file_filter_set_name
none
((GtkFileFilter filter)
(string name)))
(define-func gtk_file_filter_get_name
string
((GtkFileFilter filter)))
(define-func gtk_file_filter_add_mime_type
none
((GtkFileFilter filter)
(string mimetype)))
(define-func gtk_file_filter_add_pattern
none
((GtkFileFilter filter)
(string pattern)))
(define-func gtk_file_filter_add_pixbuf_formats
none
((GtkFileFilter filter)))
;;; XXX Need GtkFileFilterFunc
;; (define-func gtk_file_filter_add_custom
;; none
;; ((GtkFileFilter filter)
;; (GtkFileFilterFlags flags)
;; (GtkFileFilterFunc func)
;; (GPointer data)
;; (GDestroyNotify notify)))
(define-func gtk_file_filter_get_needed
GtkFileFilterFlags
((GtkFileFilter filter)))
;;; XXX Need GtkFileFilterInfo
;; (define-func gtk_file_filter_filter
;; bool
;; ((GtkFileFilter filter)
;; (GtkFileFilterInfo info)))
;; GtkFileChooser [Filter]
(define-func gtk_file_chooser_add_filter
none
((GtkFileChooser chooser)
(GtkFileFilter filter)))
(define-func gtk_file_chooser_remove_filter
none
((GtkFileChooser chooser)
(GtkFileFilter filter)))
;; XXX Need GSList Returntype support
;; (define-func gtk_file_chooser_list_filters
;; GSList
;; ((GtkFileChooser chooser)))
(define-func gtk_file_chooser_set_filter
none
((GtkFileChooser chooser)
(GtkFileFilter filter)))
(define-func gtk_file_chooser_get_filter
GtkFileFilter
((GtkFileChooser chooser)))
;; GtkFileChooser [Shortcuts]
(define-func gtk_file_chooser_add_shortcut_folder
bool
((GtkFileChooser chooser)
(string folder)
(GPointer gerror error)))
(define-func gtk_file_chooser_remove_shortcut_folder
bool
((GtkFileChooser chooser)
(string folder)
(GPointer gerror error)))
;; XXX Need GSList Returntype support
;; (define-func gtk_file_chooser_list_shortcut_folders
;; GSList
;; ((GtkFileChooser chooser)))
(define-func gtk_file_chooser_add_shortcut_folder_uri
bool
((GtkFileChooser chooser)
(string folder)
(GPointer gerror error)))
(define-func gtk_file_chooser_remove_shortcut_folder_uri
bool
((GtkFileChooser chooser)
(string folder)
(GPointer gerror error)))
;; XXX Need GSList Returntype support
;; (define-func gtk_file_chooser_list_shortcut_folder_uris
;; GSList
;; ((GtkFileChooser chooser)))
;; GtkFileChooserWidget
(define-object GtkFileChooserWidget (GtkVBox))
(define-func gtk_file_chooser_widget_new
GtkWidget
((GtkFileChooserAction action)))
(define-func gtk_file_chooser_widget_new_with_backend
GtkWidget
((GtkFileChooserAction action)
(string backend)))