1 | ;;; -*- lisp -*- |
---|
2 | ;;; gnomeui.defs - Export Gnome interfaces to Guile. |
---|
3 | ;;; |
---|
4 | ;;; Copyright (C) 1998 Tom Tromey |
---|
5 | ;;; Copyright (C) 2000 John Harper |
---|
6 | ;;; |
---|
7 | ;;; This program is free software; you can redistribute it and/or modify |
---|
8 | ;;; it under the terms of the GNU General Public License as published by |
---|
9 | ;;; the Free Software Foundation; either version 2, or (at your option) |
---|
10 | ;;; any later version. |
---|
11 | ;;; |
---|
12 | ;;; This program is distributed in the hope that it will be useful, |
---|
13 | ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
14 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
15 | ;;; GNU General Public License for more details. |
---|
16 | ;;; |
---|
17 | ;;; You should have received a copy of the GNU General Public License |
---|
18 | ;;; along with this program; if not, write to the Free Software |
---|
19 | ;;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
---|
20 | ;;; 02111-1307, USA. */ |
---|
21 | |
---|
22 | (import "gtk.defs") |
---|
23 | |
---|
24 | (define-enum GnomePreferencesType |
---|
25 | (never GNOME_PREFERENCES_NEVER) |
---|
26 | (user GNOME_PREFERENCES_USER) |
---|
27 | (always GNOME_PREFERENCES_ALWAYS)) |
---|
28 | |
---|
29 | ;; ugh, kludge of the highest order.. |
---|
30 | |
---|
31 | (define-type 'GnomeStringCallback "sgtk_protshell*" output-rep-to-full-callback |
---|
32 | nil "sgtk_valid_function" |
---|
33 | (cons 'c2args |
---|
34 | (lambda (output type var options) |
---|
35 | (@ "sgtk_gnome_string_callback, (gpointer) %s" var))) |
---|
36 | (cons 'finish output-full-callback-finish)) |
---|
37 | |
---|
38 | (define-type 'GnomeReplyCallback "sgtk_protshell*" output-rep-to-full-callback |
---|
39 | nil "sgtk_valid_function" |
---|
40 | (cons 'c2args |
---|
41 | (lambda (output type var options) |
---|
42 | (@ "sgtk_gnome_reply_callback, (gpointer) %s" var))) |
---|
43 | (cons 'finish output-full-callback-finish)) |
---|
44 | |
---|
45 | |
---|
46 | ;; gnome-app-helper |
---|
47 | |
---|
48 | (define-func gnome_app_message |
---|
49 | GtkWidget |
---|
50 | ((GnomeApp app) |
---|
51 | (string message))) |
---|
52 | |
---|
53 | (define-func gnome_app_flash |
---|
54 | none |
---|
55 | ((GnomeApp app) |
---|
56 | (string flash))) |
---|
57 | |
---|
58 | (define-func gnome_app_error |
---|
59 | GtkWidget |
---|
60 | ((GnomeApp app) |
---|
61 | (string error))) |
---|
62 | |
---|
63 | (define-func gnome_app_warning |
---|
64 | GtkWidget |
---|
65 | ((GnomeApp app) |
---|
66 | (string warning))) |
---|
67 | |
---|
68 | (define-func gnome_app_question |
---|
69 | GtkWidget |
---|
70 | ((GnomeApp app) |
---|
71 | (string question) |
---|
72 | (GnomeReplyCallback callback)) |
---|
73 | (protection *result*)) |
---|
74 | |
---|
75 | (define-func gnome_app_question_modal |
---|
76 | GtkWidget |
---|
77 | ((GnomeApp app) |
---|
78 | (string question) |
---|
79 | (GnomeReplyCallback callback)) |
---|
80 | (protection *result*)) |
---|
81 | |
---|
82 | (define-func gnome_app_ok_cancel |
---|
83 | GtkWidget |
---|
84 | ((GnomeApp app) |
---|
85 | (string message) |
---|
86 | (GnomeReplyCallback callback)) |
---|
87 | (protection *result*)) |
---|
88 | |
---|
89 | (define-func gnome_app_ok_cancel_modal |
---|
90 | GtkWidget |
---|
91 | ((GnomeApp app) |
---|
92 | (string message) |
---|
93 | (GnomeReplyCallback callback)) |
---|
94 | (protection *result*)) |
---|
95 | |
---|
96 | (define-func gnome_app_request_string |
---|
97 | GtkWidget |
---|
98 | ((GnomeApp app) |
---|
99 | (string prompt) |
---|
100 | (GnomeStringCallback callback)) |
---|
101 | (protection *result*)) |
---|
102 | |
---|
103 | (define-func gnome_app_request_password |
---|
104 | GtkWidget |
---|
105 | ((GnomeApp app) |
---|
106 | (string prompt) |
---|
107 | (GnomeStringCallback callback)) |
---|
108 | (protection *result*)) |
---|
109 | |
---|
110 | |
---|
111 | ;; gnome-dialog-util |
---|
112 | |
---|
113 | (define-func gnome_ok_dialog |
---|
114 | GtkWidget |
---|
115 | ((string message))) |
---|
116 | |
---|
117 | (define-func gnome_ok_dialog_parented |
---|
118 | GtkWidget |
---|
119 | ((string message) |
---|
120 | (GtkWindow parent))) |
---|
121 | |
---|
122 | (define-func gnome_error_dialog |
---|
123 | GtkWidget |
---|
124 | ((string error))) |
---|
125 | |
---|
126 | (define-func gnome_error_dialog_parented |
---|
127 | GtkWidget |
---|
128 | ((string error) |
---|
129 | (GtkWindow parent))) |
---|
130 | |
---|
131 | (define-func gnome_warning_dialog |
---|
132 | GtkWidget |
---|
133 | ((string warning))) |
---|
134 | |
---|
135 | (define-func gnome_warning_dialog_parented |
---|
136 | GtkWidget |
---|
137 | ((string warning) |
---|
138 | (GtkWindow parent))) |
---|
139 | |
---|
140 | (define-func gnome_question_dialog |
---|
141 | GtkWidget |
---|
142 | ((string question) |
---|
143 | (GnomeReplyCallback callback)) |
---|
144 | (protection *result*)) |
---|
145 | |
---|
146 | (define-func gnome_question_dialog_parented |
---|
147 | GtkWidget |
---|
148 | ((string question) |
---|
149 | (GnomeReplyCallback callback) |
---|
150 | (GtkWindow parent)) |
---|
151 | (protection *result*)) |
---|
152 | |
---|
153 | (define-func gnome_question_dialog_modal |
---|
154 | GtkWidget |
---|
155 | ((string question) |
---|
156 | (GnomeReplyCallback callback)) |
---|
157 | (protection *result*)) |
---|
158 | |
---|
159 | (define-func gnome_question_dialog_modal_parented |
---|
160 | GtkWidget |
---|
161 | ((string question) |
---|
162 | (GnomeReplyCallback callback) |
---|
163 | (GtkWindow parent)) |
---|
164 | (protection *result*)) |
---|
165 | |
---|
166 | (define-func gnome_ok_cancel_dialog |
---|
167 | GtkWidget |
---|
168 | ((string question) |
---|
169 | (GnomeReplyCallback callback)) |
---|
170 | (protection *result*)) |
---|
171 | |
---|
172 | (define-func gnome_ok_cancel_dialog_parented |
---|
173 | GtkWidget |
---|
174 | ((string question) |
---|
175 | (GnomeReplyCallback callback) |
---|
176 | (GtkWindow parent)) |
---|
177 | (protection *result*)) |
---|
178 | |
---|
179 | (define-func gnome_ok_cancel_dialog_modal |
---|
180 | GtkWidget |
---|
181 | ((string question) |
---|
182 | (GnomeReplyCallback callback)) |
---|
183 | (protection *result*)) |
---|
184 | |
---|
185 | (define-func gnome_ok_cancel_dialog_modal_parented |
---|
186 | GtkWidget |
---|
187 | ((string question) |
---|
188 | (GnomeReplyCallback callback) |
---|
189 | (GtkWindow parent)) |
---|
190 | (protection *result*)) |
---|
191 | |
---|
192 | (define-func gnome_request_string_dialog |
---|
193 | GtkWidget |
---|
194 | ((string prompt) |
---|
195 | (GnomeStringCallback callback)) |
---|
196 | (protection *result*)) |
---|
197 | |
---|
198 | (define-func gnome_request_string_dialog_parented |
---|
199 | GtkWidget |
---|
200 | ((string prompt) |
---|
201 | (GnomeStringCallback callback) |
---|
202 | (GtkWindow parent)) |
---|
203 | (protection *result*)) |
---|
204 | |
---|
205 | (define-func gnome_request_password_dialog |
---|
206 | GtkWidget |
---|
207 | ((string prompt) |
---|
208 | (GnomeStringCallback callback)) |
---|
209 | (protection *result*)) |
---|
210 | |
---|
211 | (define-func gnome_request_password_dialog_parented |
---|
212 | GtkWidget |
---|
213 | ((string prompt) |
---|
214 | (GnomeStringCallback callback) |
---|
215 | (GtkWindow parent)) |
---|
216 | (protection *result*)) |
---|
217 | |
---|
218 | (define-func gnome_request_dialog |
---|
219 | GtkWidget |
---|
220 | ((bool password) |
---|
221 | (string prompt) |
---|
222 | (string default_text (null-ok)) |
---|
223 | (int max_length) |
---|
224 | (GnomeStringCallback callback) |
---|
225 | (GtkWindow parent (null-ok))) |
---|
226 | (protection *result*)) |
---|
227 | |
---|
228 | |
---|
229 | ;; gnome-geometry |
---|
230 | |
---|
231 | (define-func gnome_parse_geometry |
---|
232 | bool |
---|
233 | ((string geom) |
---|
234 | ((ret int) xpos) |
---|
235 | ((ret int) ypos) |
---|
236 | ((ret int) width) |
---|
237 | ((ret int) height))) |
---|
238 | |
---|
239 | (define-func gnome_geometry_string |
---|
240 | string |
---|
241 | ((GdkWindow window))) |
---|
242 | |
---|
243 | |
---|
244 | ;; gtkcauldron |
---|
245 | |
---|
246 | ;; [the interface isn't suited to lisp anyway..] |
---|
247 | |
---|
248 | |
---|
249 | ;; GnomeAbout |
---|
250 | |
---|
251 | (define-object GnomeAbout (GnomeDialog)) |
---|
252 | |
---|
253 | (define-func gnome_about_new |
---|
254 | GtkWidget |
---|
255 | ((string title) |
---|
256 | (string version) |
---|
257 | (string copyright) |
---|
258 | ((tvec string) authors) |
---|
259 | (string comments) |
---|
260 | (string logo (null-ok)))) |
---|
261 | |
---|
262 | |
---|
263 | ;; GnomeApp |
---|
264 | |
---|
265 | (define-object GnomeApp (GtkWindow)) |
---|
266 | |
---|
267 | (define-func gnome_app_new |
---|
268 | GtkWidget |
---|
269 | ((string appname) |
---|
270 | (string title))) |
---|
271 | |
---|
272 | (define-func gnome_app_set_menus |
---|
273 | none |
---|
274 | ((GnomeApp app) |
---|
275 | (GtkMenuBar menubar))) |
---|
276 | |
---|
277 | (define-func gnome_app_set_toolbar |
---|
278 | none |
---|
279 | ((GnomeApp app) |
---|
280 | (GtkToolbar toolbar))) |
---|
281 | |
---|
282 | (define-func gnome_app_set_statusbar |
---|
283 | none |
---|
284 | ((GnomeApp app) |
---|
285 | (GtkWidget statusbar))) |
---|
286 | |
---|
287 | (define-func gnome_app_set_contents |
---|
288 | none |
---|
289 | ((GnomeApp app) |
---|
290 | (GtkWidget contents))) |
---|
291 | |
---|
292 | |
---|
293 | ;; GnomeAppBar |
---|
294 | |
---|
295 | (define-object GnomeAppBar (GtkHBox)) |
---|
296 | |
---|
297 | (define-func gnome_appbar_new |
---|
298 | GtkWidget |
---|
299 | ((bool has_progress) |
---|
300 | (bool has_status) |
---|
301 | (GnomePreferencesType interactivity))) |
---|
302 | |
---|
303 | (define-func gnome_appbar_set_status |
---|
304 | none |
---|
305 | ((GnomeAppBar appbar) |
---|
306 | (string status))) |
---|
307 | |
---|
308 | (define-func gnome_appbar_set_default |
---|
309 | none |
---|
310 | ((GnomeAppBar appbar) |
---|
311 | (string default_status))) |
---|
312 | |
---|
313 | (define-func gnome_appbar_push |
---|
314 | none |
---|
315 | ((GnomeAppBar appbar) |
---|
316 | (string status))) |
---|
317 | |
---|
318 | (define-func gnome_appbar_pop |
---|
319 | none |
---|
320 | ((GnomeAppBar appbar))) |
---|
321 | |
---|
322 | (define-func gnome_appbar_clear_stack |
---|
323 | none |
---|
324 | ((GnomeAppBar appbar))) |
---|
325 | |
---|
326 | (define-func gnome_appbar_set_progress |
---|
327 | none |
---|
328 | ((GnomeAppBar appbar) |
---|
329 | (float percentage))) |
---|
330 | |
---|
331 | (define-func gnome_appbar_get_progress |
---|
332 | GtkProgress |
---|
333 | ((GnomeAppBar appbar))) |
---|
334 | |
---|
335 | (define-func gnome_appbar_refresh |
---|
336 | none |
---|
337 | ((GnomeAppBar appbar))) |
---|
338 | |
---|
339 | (define-func gnome_appbar_set_prompt |
---|
340 | none |
---|
341 | ((GnomeAppBar appbar) |
---|
342 | (string prompt) |
---|
343 | (bool modal))) |
---|
344 | |
---|
345 | (define-func gnome_appbar_clear_prompt |
---|
346 | none |
---|
347 | ((GnomeAppBar appbar))) |
---|
348 | |
---|
349 | (define-func gnome_appbar_get_response |
---|
350 | string |
---|
351 | ((GnomeAppBar appbar))) |
---|
352 | |
---|
353 | |
---|
354 | ;; GnomeCalculator |
---|
355 | |
---|
356 | (define-object GnomeCalculator (GtkVBox)) |
---|
357 | |
---|
358 | (define-func gnome_calculator_new |
---|
359 | GnomeCalculator |
---|
360 | ()) |
---|
361 | |
---|
362 | (define-func gnome_calculator_clear |
---|
363 | none |
---|
364 | ((GnomeCalculator gc) |
---|
365 | (bool reset))) |
---|
366 | |
---|
367 | (define-func gnome_calculator_set |
---|
368 | none |
---|
369 | ((GnomeCalculator gc) |
---|
370 | (double result))) |
---|
371 | |
---|
372 | (define-func gnome_calculator_get_result |
---|
373 | double |
---|
374 | ((GnomeCalculator gc))) |
---|
375 | |
---|
376 | |
---|
377 | ;; GnomeClient |
---|
378 | |
---|
379 | ;; FIXME: Some functions still live in client.c, until argc/argv supported. |
---|
380 | |
---|
381 | (define-enum GnomeInteractStyle |
---|
382 | (none GNOME_INTERACT_NONE) |
---|
383 | (errors GNOME_INTERACT_ERRORS) |
---|
384 | (any GNOME_INTERACT_ANY)) |
---|
385 | |
---|
386 | (define-enum GnomeDialogType |
---|
387 | (error GNOME_DIALOG_ERROR) |
---|
388 | (normal GNOME_DIALOG_NORMAL)) |
---|
389 | |
---|
390 | (define-enum GnomeSaveStyle |
---|
391 | (global GNOME_SAVE_GLOBAL) |
---|
392 | (local GNOME_SAVE_LOCAL) |
---|
393 | (both GNOME_SAVE_BOTH)) |
---|
394 | |
---|
395 | (define-enum GnomeRestartStyle |
---|
396 | (if-running GNOME_RESTART_IF_RUNNING) |
---|
397 | (anyway GNOME_RESTART_ANYWAY) |
---|
398 | (immediately GNOME_RESTART_IMMEDIATELY) |
---|
399 | (never GNOME_RESTART_NEVER)) |
---|
400 | |
---|
401 | (define-object GnomeClient (GtkObject)) |
---|
402 | |
---|
403 | (define-func gnome_client_disable_master_connection |
---|
404 | none |
---|
405 | ()) |
---|
406 | |
---|
407 | (define-func gnome_master_client |
---|
408 | GnomeClient |
---|
409 | ()) |
---|
410 | |
---|
411 | (define-func gnome_cloned_client |
---|
412 | GnomeClient |
---|
413 | ()) |
---|
414 | |
---|
415 | (define-func gnome_client_new |
---|
416 | GnomeClient |
---|
417 | ()) |
---|
418 | |
---|
419 | (define-func gnome_client_new_without_connection |
---|
420 | GnomeClient |
---|
421 | ()) |
---|
422 | |
---|
423 | (define-func gnome_client_connect |
---|
424 | none |
---|
425 | ((GnomeClient client))) |
---|
426 | |
---|
427 | (define-func gnome_client_disconnect |
---|
428 | none |
---|
429 | ((GnomeClient client))) |
---|
430 | |
---|
431 | (define-func gnome_client_flush |
---|
432 | none |
---|
433 | ((GnomeClient client))) |
---|
434 | |
---|
435 | (define-func gnome_client_set_id |
---|
436 | none |
---|
437 | ((GnomeClient client) |
---|
438 | (string id))) |
---|
439 | |
---|
440 | (define-func gnome_client_get_config_prefix |
---|
441 | string |
---|
442 | ((GnomeClient client))) |
---|
443 | |
---|
444 | ; gnome_client_set_clone_command |
---|
445 | |
---|
446 | (define-func gnome_client_set_current_directory |
---|
447 | none |
---|
448 | ((GnomeClient client) |
---|
449 | (string dir))) |
---|
450 | |
---|
451 | ; gnome_client_set_environment |
---|
452 | |
---|
453 | (define-func gnome_client_set_process_id |
---|
454 | none |
---|
455 | ((GnomeClient client) |
---|
456 | (int id))) |
---|
457 | |
---|
458 | (define-func gnome_client_set_program |
---|
459 | none |
---|
460 | ((GnomeClient client) |
---|
461 | (string program))) |
---|
462 | |
---|
463 | ; gnome_client_set_restart_command |
---|
464 | |
---|
465 | ; gnome_client_set_resign_command |
---|
466 | |
---|
467 | (define-func gnome_client_set_restart_style |
---|
468 | none |
---|
469 | ((GnomeClient client) |
---|
470 | (GnomeRestartStyle style))) |
---|
471 | |
---|
472 | ; gnome_client_set_shutdown_command |
---|
473 | |
---|
474 | (define-func gnome_client_set_user_id |
---|
475 | none |
---|
476 | ((GnomeClient client) |
---|
477 | (string id))) |
---|
478 | |
---|
479 | (define-func gnome_client_request_phase_2 |
---|
480 | none |
---|
481 | ((GnomeClient client))) |
---|
482 | |
---|
483 | (define-func gnome_client_request_save |
---|
484 | none |
---|
485 | ((GnomeClient client) |
---|
486 | (GnomeSaveStyle save_style) |
---|
487 | (bool shutdown) |
---|
488 | (GnomeInteractStyle interact_style) |
---|
489 | (bool fast) |
---|
490 | (bool global))) |
---|
491 | |
---|
492 | ; XXX can't handle callbacks, only full-callbacks |
---|
493 | ;(define-func gnome_client_request_interaction_interp |
---|
494 | ; none |
---|
495 | ; ((GnomeClient client) |
---|
496 | ; (GnomeDialogType dialog_type) |
---|
497 | ; (callback function)) |
---|
498 | ; (protection client)) |
---|
499 | |
---|
500 | (define-func gnome_interaction_key_return |
---|
501 | none |
---|
502 | ((int key) |
---|
503 | (bool cancel_shutdown))) |
---|
504 | |
---|
505 | |
---|
506 | ;; GnomeColorPicker |
---|
507 | |
---|
508 | (define-object GnomeColorPicker (GtkButton)) |
---|
509 | |
---|
510 | (define-func gnome_color_picker_new |
---|
511 | GnomeColorPicker |
---|
512 | ()) |
---|
513 | |
---|
514 | (define-func gnome_color_picker_set_i16 |
---|
515 | none |
---|
516 | ((GnomeColorPicker cp) |
---|
517 | (char r) |
---|
518 | (char g) |
---|
519 | (char b) |
---|
520 | (char a))) |
---|
521 | |
---|
522 | (define-func gnome_color_picker_get_i16 |
---|
523 | none |
---|
524 | ((GnomeColorPicker cp) |
---|
525 | ((ret char) r) |
---|
526 | ((ret char) g) |
---|
527 | ((ret char) b) |
---|
528 | ((ret char) a))) |
---|
529 | |
---|
530 | (define-func gnome_color_picker_set_dither |
---|
531 | none |
---|
532 | ((GnomeColorPicker cp) |
---|
533 | (bool dither))) |
---|
534 | |
---|
535 | (define-func gnome_color_picker_set_use_alpha |
---|
536 | none |
---|
537 | ((GnomeColorPicker cp) |
---|
538 | (bool use_alpha))) |
---|
539 | |
---|
540 | (define-func gnome_color_picker_set_title |
---|
541 | none |
---|
542 | ((GnomeColorPicker cp) |
---|
543 | (string title))) |
---|
544 | |
---|
545 | |
---|
546 | ;; GnomeDateEdit |
---|
547 | |
---|
548 | (define-object GnomeDateEdit (GtkHBox)) |
---|
549 | |
---|
550 | (define-func gnome_date_edit_new |
---|
551 | GtkWidget |
---|
552 | ((ulong the_time) ;actually time_t |
---|
553 | (bool show_time) |
---|
554 | (bool use_24))) |
---|
555 | |
---|
556 | (define-func gnome_date_edit_set_time |
---|
557 | none |
---|
558 | ((GnomeDateEdit de) |
---|
559 | (ulong the_time))) ;actually time_t |
---|
560 | |
---|
561 | (define-func gnome_date_edit_set_popup_range |
---|
562 | none |
---|
563 | ((GnomeDateEdit de) |
---|
564 | (int low_hour) |
---|
565 | (int high_hour))) |
---|
566 | |
---|
567 | (define-func gnome_date_edit_get_date |
---|
568 | ulong ;actually time_t |
---|
569 | ((GnomeDateEdit de))) |
---|
570 | |
---|
571 | |
---|
572 | ;; GnomeDEntryEdit |
---|
573 | |
---|
574 | |
---|
575 | ;; GnomeDialog |
---|
576 | |
---|
577 | (define-object GnomeDialog (GtkWindow) |
---|
578 | (fields |
---|
579 | (GtkWidget vbox))) |
---|
580 | |
---|
581 | (define-func gnome_dialog_newv |
---|
582 | GtkWidget |
---|
583 | ((string title) |
---|
584 | ((tvec GnomeStockButtonNameType) buttons)) |
---|
585 | (scm-name "gnome-dialog-new")) |
---|
586 | |
---|
587 | (define-func gnome_dialog_set_parent |
---|
588 | none |
---|
589 | ((GnomeDialog d) |
---|
590 | (GtkWindow parent))) |
---|
591 | |
---|
592 | (define-func gnome_dialog_run |
---|
593 | int |
---|
594 | ((GnomeDialog d))) |
---|
595 | |
---|
596 | (define-func gnome_dialog_run_and_close |
---|
597 | int |
---|
598 | ((GnomeDialog d))) |
---|
599 | |
---|
600 | (define-func gnome_dialog_set_default |
---|
601 | none |
---|
602 | ((GnomeDialog d) |
---|
603 | (int button))) |
---|
604 | |
---|
605 | (define-func gnome_dialog_set_sensitive |
---|
606 | none |
---|
607 | ((GnomeDialog d) |
---|
608 | (int button) |
---|
609 | (bool setting))) |
---|
610 | |
---|
611 | (define-func gnome_dialog_set_accelerator |
---|
612 | none |
---|
613 | ((GnomeDialog d) |
---|
614 | (int button) |
---|
615 | (char accel_key) |
---|
616 | (uint accel_mods))) ;uint8 |
---|
617 | |
---|
618 | (define-func gnome_dialog_close |
---|
619 | none |
---|
620 | ((GnomeDialog d))) |
---|
621 | |
---|
622 | (define-func gnome_dialog_close_hides |
---|
623 | none |
---|
624 | ((GnomeDialog d) |
---|
625 | (bool just_hide))) |
---|
626 | |
---|
627 | (define-func gnome_dialog_set_close |
---|
628 | none |
---|
629 | ((GnomeDialog d) |
---|
630 | (bool click_closes))) |
---|
631 | |
---|
632 | (define-func gnome_dialog_editable_enters |
---|
633 | none |
---|
634 | ((GnomeDialog d) |
---|
635 | (GtkEditable editable))) |
---|
636 | |
---|
637 | (define-func gnome_dialog_append_button |
---|
638 | none |
---|
639 | ((GnomeDialog d) |
---|
640 | (GnomeStockButtonNameType name))) |
---|
641 | |
---|
642 | (define-func gnome_dialog_append_buttonsv |
---|
643 | none |
---|
644 | ((GnomeDialog d) |
---|
645 | ((tvec GnomeStockButtonNameType) buttons)) |
---|
646 | (scm-name "gnome-dialog-append-buttons")) |
---|
647 | |
---|
648 | (define-func gnome_dialog_append_button_with_pixmap |
---|
649 | none |
---|
650 | ((GnomeDialog d) |
---|
651 | (GnomeStockButtonNameType name) |
---|
652 | (string pixmap))) |
---|
653 | |
---|
654 | (define-func gnome_dialog_append_buttons_with_pixmaps |
---|
655 | none |
---|
656 | ((GnomeDialog d) |
---|
657 | ((tvec GnomeStockButtonNameType) names) |
---|
658 | ((tvec string) pixmaps))) |
---|
659 | |
---|
660 | |
---|
661 | ;; GnomeDockBand |
---|
662 | ;; GnomeDockItem |
---|
663 | ;; GnomeDock |
---|
664 | ;; GnomeDockLayout |
---|
665 | |
---|
666 | ;; GnomeDruid |
---|
667 | ;; GnomeDruidPage |
---|
668 | ;; GnomeDruidPageStart |
---|
669 | ;; GnomeDruidPageStandard |
---|
670 | ;; GnomeDruidPageFinish |
---|
671 | |
---|
672 | |
---|
673 | ;; GnomeEntry |
---|
674 | |
---|
675 | (define-object GnomeEntry (GtkCombo)) |
---|
676 | |
---|
677 | (define-func gnome_entry_new |
---|
678 | GtkWidget |
---|
679 | ((string history_id (null-ok)))) |
---|
680 | |
---|
681 | (define-func gnome_entry_gtk_entry |
---|
682 | GtkWidget |
---|
683 | ((GnomeEntry ge))) |
---|
684 | |
---|
685 | (define-func gnome_entry_set_history_id |
---|
686 | none |
---|
687 | ((GnomeEntry ge) |
---|
688 | (string history_id))) |
---|
689 | |
---|
690 | (define-func gnome_entry_prepend_history |
---|
691 | none |
---|
692 | ((GnomeEntry ge) |
---|
693 | (int save) |
---|
694 | (string text))) |
---|
695 | |
---|
696 | (define-func gnome_entry_append_history |
---|
697 | none |
---|
698 | ((GnomeEntry ge) |
---|
699 | (int save) |
---|
700 | (string text))) |
---|
701 | |
---|
702 | (define-func gnome_entry_load_history |
---|
703 | none |
---|
704 | ((GnomeEntry ge))) |
---|
705 | |
---|
706 | (define-func gnome_entry_save_history |
---|
707 | none |
---|
708 | ((GnomeEntry ge))) |
---|
709 | |
---|
710 | |
---|
711 | ;; GnomeFileEntry |
---|
712 | |
---|
713 | (define-object GnomeFileEntry (GtkHBox)) |
---|
714 | |
---|
715 | (define-func gnome_file_entry_new |
---|
716 | GtkWidget |
---|
717 | ((string history_id) |
---|
718 | (string browse_dialog_title))) |
---|
719 | |
---|
720 | (define-func gnome_file_entry_gnome_entry |
---|
721 | GtkWidget |
---|
722 | ((GnomeFileEntry fe))) |
---|
723 | |
---|
724 | (define-func gnome_file_entry_gtk_entry |
---|
725 | GtkWidget |
---|
726 | ((GnomeFileEntry fe))) |
---|
727 | |
---|
728 | (define-func gnome_file_entry_set_title |
---|
729 | none |
---|
730 | ((GnomeFileEntry fe) |
---|
731 | (string browse_dialog_title))) |
---|
732 | |
---|
733 | (define-func gnome_file_entry_set_default_path |
---|
734 | none |
---|
735 | ((GnomeFileEntry fe) |
---|
736 | (string path))) |
---|
737 | |
---|
738 | (define-func gnome_file_entry_set_directory |
---|
739 | none |
---|
740 | ((GnomeFileEntry fe) |
---|
741 | (bool directory_only))) |
---|
742 | |
---|
743 | (define-func gnome_file_entry_get_full_path |
---|
744 | string |
---|
745 | ((GnomeFileEntry fe) |
---|
746 | (bool file_must_exist))) |
---|
747 | |
---|
748 | (define-func gnome_file_entry_set_modal |
---|
749 | none |
---|
750 | ((GnomeFileEntry fe) |
---|
751 | (bool is_modal))) |
---|
752 | |
---|
753 | |
---|
754 | ;; GnomeFontPicker |
---|
755 | |
---|
756 | |
---|
757 | ;; GnomeHRef |
---|
758 | |
---|
759 | (define-object GnomeHRef (GtkButton)) |
---|
760 | |
---|
761 | (define-func gnome_href_new |
---|
762 | GtkWidget |
---|
763 | ((string url) |
---|
764 | (string label))) |
---|
765 | |
---|
766 | (define-func gnome_href_set_url |
---|
767 | none |
---|
768 | ((GnomeHRef href) |
---|
769 | (string url))) |
---|
770 | |
---|
771 | (define-func gnome_href_set_label |
---|
772 | none |
---|
773 | ((GnomeHRef href) |
---|
774 | (string label))) |
---|
775 | |
---|
776 | (define-func gnome_href_get_url |
---|
777 | string |
---|
778 | ((GnomeHRef href))) |
---|
779 | |
---|
780 | (define-func gnome_href_get_label |
---|
781 | string |
---|
782 | ((GnomeHRef href))) |
---|
783 | |
---|
784 | |
---|
785 | ;; GnomeIconEntry |
---|
786 | |
---|
787 | (define-object GnomeIconEntry (GtkVBox)) |
---|
788 | |
---|
789 | (define-func gnome_icon_entry_new |
---|
790 | GtkWidget |
---|
791 | ((string history_id) |
---|
792 | (string browse_dialog_title))) |
---|
793 | |
---|
794 | (define-func gnome_icon_entry_set_pixmap_subdir |
---|
795 | none |
---|
796 | ((GnomeIconEntry ie) |
---|
797 | (string subdir))) |
---|
798 | |
---|
799 | (define-func gnome_icon_entry_set_icon |
---|
800 | none |
---|
801 | ((GnomeIconEntry ie) |
---|
802 | (string filename))) |
---|
803 | |
---|
804 | (define-func gnome_icon_entry_gnome_file_entry |
---|
805 | GtkWidget |
---|
806 | ((GnomeIconEntry ie))) |
---|
807 | |
---|
808 | (define-func gnome_icon_entry_gnome_entry |
---|
809 | GtkWidget |
---|
810 | ((GnomeIconEntry ie))) |
---|
811 | |
---|
812 | (define-func gnome_icon_entry_gtk_entry |
---|
813 | GtkWidget |
---|
814 | ((GnomeIconEntry ie))) |
---|
815 | |
---|
816 | (define-func gnome_icon_entry_get_filename |
---|
817 | string |
---|
818 | ((GnomeIconEntry ie))) |
---|
819 | |
---|
820 | |
---|
821 | ;; GnomeIconSelection |
---|
822 | |
---|
823 | (define-object GnomeIconSelection (GtkVBox)) |
---|
824 | |
---|
825 | (define-func gnome_icon_selection_new |
---|
826 | GtkWidget |
---|
827 | ()) |
---|
828 | |
---|
829 | (define-func gnome_icon_selection_add_defaults |
---|
830 | none |
---|
831 | ((GnomeIconSelection gis))) |
---|
832 | |
---|
833 | (define-func gnome_icon_selection_add_directory |
---|
834 | none |
---|
835 | ((GnomeIconSelection gis) |
---|
836 | (string dir))) |
---|
837 | |
---|
838 | (define-func gnome_icon_selection_show_icons |
---|
839 | none |
---|
840 | ((GnomeIconSelection gis))) |
---|
841 | |
---|
842 | (define-func gnome_icon_selection_clear |
---|
843 | none |
---|
844 | ((GnomeIconSelection gis) |
---|
845 | (bool not_shown))) |
---|
846 | |
---|
847 | (define-func gnome_icon_selection_get_icon |
---|
848 | static_string |
---|
849 | ((GnomeIconSelection gis) |
---|
850 | (bool full_path))) |
---|
851 | |
---|
852 | (define-func gnome_icon_selection_select_icon |
---|
853 | none |
---|
854 | ((GnomeIconSelection gis) |
---|
855 | (string filename))) |
---|
856 | |
---|
857 | |
---|
858 | ;; GnomeLess |
---|
859 | |
---|
860 | (define-object GnomeLess (GtkVBox)) |
---|
861 | |
---|
862 | (define-func gnome_less_new |
---|
863 | GtkWidget |
---|
864 | ()) |
---|
865 | |
---|
866 | (define-func gnome_less_clear |
---|
867 | none |
---|
868 | ((GnomeLess gl))) |
---|
869 | |
---|
870 | (define-func gnome_less_show_file |
---|
871 | bool |
---|
872 | ((GnomeLess gl) |
---|
873 | (string path))) |
---|
874 | |
---|
875 | (define-func gnome_less_show_command |
---|
876 | bool |
---|
877 | ((GnomeLess gl) |
---|
878 | (string command_line))) |
---|
879 | |
---|
880 | (define-func gnome_less_show_string |
---|
881 | none |
---|
882 | ((GnomeLess gl) |
---|
883 | (string s))) |
---|
884 | |
---|
885 | (define-func gnome_less_show_fd |
---|
886 | bool |
---|
887 | ((GnomeLess gl) |
---|
888 | (file-descriptor fd))) |
---|
889 | |
---|
890 | (define-func gnome_less_write_file |
---|
891 | bool |
---|
892 | ((GnomeLess gl) |
---|
893 | (string path))) |
---|
894 | |
---|
895 | (define-func gnome_less_write_fd |
---|
896 | bool |
---|
897 | ((GnomeLess gl) |
---|
898 | (file-descriptor fd))) |
---|
899 | |
---|
900 | (define-func gnome_less_set_font |
---|
901 | none |
---|
902 | ((GnomeLess gl) |
---|
903 | (GdkFont font))) |
---|
904 | |
---|
905 | (define-func gnome_less_set_fixed_font |
---|
906 | none |
---|
907 | ((GnomeLess gl) |
---|
908 | (bool fixed))) |
---|
909 | |
---|
910 | (define-func gnome_less_reshow |
---|
911 | none |
---|
912 | ((GnomeLess gl))) |
---|
913 | |
---|
914 | (define-func gnome_less_fixed_font |
---|
915 | none |
---|
916 | ((GnomeLess gl))) |
---|
917 | |
---|
918 | |
---|
919 | ;; GnomeMDIChild |
---|
920 | ;; GnomeMDIGenericChild |
---|
921 | ;; GnomeMDI |
---|
922 | |
---|
923 | |
---|
924 | ;; GnomeMessageBox |
---|
925 | |
---|
926 | (define-object GnomeMessageBox (GnomeDialog)) |
---|
927 | |
---|
928 | (define-func gnome_message_box_newv |
---|
929 | GtkWidget |
---|
930 | ((string message) |
---|
931 | (string messagebox_type) |
---|
932 | ((tvec string) buttons))) |
---|
933 | |
---|
934 | (define-func gnome_message_box_set_modal |
---|
935 | none |
---|
936 | ((GnomeMessageBox messagebox))) |
---|
937 | |
---|
938 | (define-func gnome_message_box_set_default |
---|
939 | none |
---|
940 | ((GnomeMessageBox messagebox) |
---|
941 | (int button))) |
---|
942 | |
---|
943 | |
---|
944 | ;; GnomeNumberEntry |
---|
945 | |
---|
946 | (define-object GnomeNumberEntry (GtkHBox)) |
---|
947 | |
---|
948 | (define-func gnome_number_entry_new |
---|
949 | GtkWidget |
---|
950 | ((string history_id) |
---|
951 | (string calc_dialog_title))) |
---|
952 | |
---|
953 | (define-func gnome_number_entry_gnome_entry |
---|
954 | GtkWidget |
---|
955 | ((GnomeNumberEntry ne))) |
---|
956 | |
---|
957 | (define-func gnome_number_entry_gtk_entry |
---|
958 | GtkWidget |
---|
959 | ((GnomeNumberEntry ne))) |
---|
960 | |
---|
961 | (define-func gnome_number_entry_set_title |
---|
962 | none |
---|
963 | ((GnomeNumberEntry ne) |
---|
964 | (string calc_dialog_title))) |
---|
965 | |
---|
966 | (define-func gnome_number_entry_get_number |
---|
967 | double |
---|
968 | ((GnomeNumberEntry ne))) |
---|
969 | |
---|
970 | |
---|
971 | ;; GnomePaperSelector |
---|
972 | |
---|
973 | (define-object GnomePaperSelector (GtkVBox)) |
---|
974 | |
---|
975 | (define-func gnome_paper_selector_new |
---|
976 | GtkWidget |
---|
977 | ()) |
---|
978 | |
---|
979 | (define-func gnome_paper_selector_get_name |
---|
980 | string |
---|
981 | ((GnomePaperSelector ps))) |
---|
982 | |
---|
983 | (define-func gnome_paper_selector_get_width |
---|
984 | float |
---|
985 | ((GnomePaperSelector ps))) |
---|
986 | |
---|
987 | (define-func gnome_paper_selector_get_height |
---|
988 | float |
---|
989 | ((GnomePaperSelector ps))) |
---|
990 | |
---|
991 | (define-func gnome_paper_selector_get_left_margin |
---|
992 | float |
---|
993 | ((GnomePaperSelector ps))) |
---|
994 | |
---|
995 | (define-func gnome_paper_selector_get_right_margin |
---|
996 | float |
---|
997 | ((GnomePaperSelector ps))) |
---|
998 | |
---|
999 | (define-func gnome_paper_selector_get_top_margin |
---|
1000 | float |
---|
1001 | ((GnomePaperSelector ps))) |
---|
1002 | |
---|
1003 | (define-func gnome_paper_selector_get_bottom_margin |
---|
1004 | float |
---|
1005 | ((GnomePaperSelector ps))) |
---|
1006 | |
---|
1007 | |
---|
1008 | ;; GnomePixmapEntry |
---|
1009 | |
---|
1010 | (define-object GnomePixmapEntry (GtkVBox)) |
---|
1011 | |
---|
1012 | (define-func gnome_pixmap_entry_new |
---|
1013 | GtkWidget |
---|
1014 | ((string history_id) |
---|
1015 | (string browse_dialog_title) |
---|
1016 | (bool do_preview))) |
---|
1017 | |
---|
1018 | (define-func gnome_pixmap_entry_set_pixmap_subdir |
---|
1019 | none |
---|
1020 | ((GnomePixmapEntry pe) |
---|
1021 | (string subdir))) |
---|
1022 | |
---|
1023 | (define-func gnome_pixmap_entry_gnome_file_entry |
---|
1024 | GtkWidget |
---|
1025 | ((GnomePixmapEntry pe))) |
---|
1026 | |
---|
1027 | (define-func gnome_pixmap_entry_gtk_entry |
---|
1028 | GtkWidget |
---|
1029 | ((GnomePixmapEntry pe))) |
---|
1030 | |
---|
1031 | (define-func gnome_pixmap_entry_set_preview |
---|
1032 | none |
---|
1033 | ((GnomePixmapEntry pe) |
---|
1034 | (bool do_preview))) |
---|
1035 | |
---|
1036 | (define-func gnome_pixmap_entry_set_preview_size |
---|
1037 | none |
---|
1038 | ((GnomePixmapEntry pe) |
---|
1039 | (int preview_w) |
---|
1040 | (int preview_h))) |
---|
1041 | |
---|
1042 | (define-func gnome_pixmap_entry_get_filename |
---|
1043 | string |
---|
1044 | ((GnomePixmapEntry pe))) |
---|
1045 | |
---|
1046 | |
---|
1047 | ;; GnomePixmap |
---|
1048 | |
---|
1049 | (define-object GnomePixmap (GtkWidget)) |
---|
1050 | |
---|
1051 | (define-func gnome_pixmap_new_from_file |
---|
1052 | GtkWidget |
---|
1053 | ((string filename))) |
---|
1054 | |
---|
1055 | (define-func gnome_pixmap_new_from_file_at_size |
---|
1056 | GtkWidget |
---|
1057 | ((string filename) |
---|
1058 | (int width) |
---|
1059 | (int height))) |
---|
1060 | |
---|
1061 | (define-func gnome_pixmap_new_from_gnome_pixmap |
---|
1062 | GtkWidget |
---|
1063 | ((GnomePixmap p))) |
---|
1064 | |
---|
1065 | (define-func gnome_pixmap_load_file |
---|
1066 | none |
---|
1067 | ((GnomePixmap p) |
---|
1068 | (string file))) |
---|
1069 | |
---|
1070 | (define-func gnome_pixmap_load_file_at_size |
---|
1071 | none |
---|
1072 | ((GnomePixmap p) |
---|
1073 | (string file) |
---|
1074 | (int width) |
---|
1075 | (int height))) |
---|
1076 | |
---|
1077 | ;; lots of others I can't be arsed to type in.. |
---|
1078 | |
---|
1079 | |
---|
1080 | ;; GnomePropertyBox |
---|
1081 | |
---|
1082 | (define-object GnomePropertyBox (GnomeDialog) |
---|
1083 | (fields |
---|
1084 | (GtkWidget notebook) |
---|
1085 | (GtkWidget ok_button) |
---|
1086 | (GtkWidget apply_button) |
---|
1087 | (GtkWidget cancel_button) |
---|
1088 | (GtkWidget help_button))) |
---|
1089 | |
---|
1090 | (define-func gnome_property_box_new |
---|
1091 | GtkWidget |
---|
1092 | ()) |
---|
1093 | |
---|
1094 | (define-func gnome_property_box_changed |
---|
1095 | none |
---|
1096 | ((GnomePropertyBox box))) |
---|
1097 | |
---|
1098 | (define-func gnome_property_box_set_state |
---|
1099 | none |
---|
1100 | ((GnomePropertyBox box) |
---|
1101 | (bool state))) |
---|
1102 | |
---|
1103 | (define-func gnome_property_box_append_page |
---|
1104 | int |
---|
1105 | ((GnomePropertyBox box) |
---|
1106 | (GtkWidget child) |
---|
1107 | (GtkWidget tab_label))) |
---|
1108 | |
---|
1109 | |
---|
1110 | ;; GnomeScores |
---|
1111 | |
---|
1112 | |
---|
1113 | ;; GnomeStock |
---|
1114 | |
---|
1115 | (define-string-enum GnomeStockButtonNameType |
---|
1116 | (ok GNOME_STOCK_BUTTON_OK) |
---|
1117 | (cancel GNOME_STOCK_BUTTON_CANCEL) |
---|
1118 | (yes GNOME_STOCK_BUTTON_YES) |
---|
1119 | (no GNOME_STOCK_BUTTON_NO) |
---|
1120 | (close GNOME_STOCK_BUTTON_CLOSE) |
---|
1121 | (apply GNOME_STOCK_BUTTON_APPLY) |
---|
1122 | (help GNOME_STOCK_BUTTON_HELP)) |
---|
1123 | |
---|
1124 | (define-string-enum GnomeStockMenuNameType |
---|
1125 | (blank GNOME_STOCK_MENU_BLANK) |
---|
1126 | (new GNOME_STOCK_MENU_NEW) |
---|
1127 | (save GNOME_STOCK_MENU_SAVE) |
---|
1128 | (save-as GNOME_STOCK_MENU_SAVE_AS) |
---|
1129 | (open GNOME_STOCK_MENU_OPEN) |
---|
1130 | (quit GNOME_STOCK_MENU_QUIT) |
---|
1131 | (cut GNOME_STOCK_MENU_CUT) |
---|
1132 | (copy GNOME_STOCK_MENU_COPY) |
---|
1133 | (paste GNOME_STOCK_MENU_PASTE) |
---|
1134 | (prop GNOME_STOCK_MENU_PROP) |
---|
1135 | (pref GNOME_STOCK_MENU_PREF) |
---|
1136 | (about GNOME_STOCK_MENU_ABOUT) |
---|
1137 | (scores GNOME_STOCK_MENU_SCORES) |
---|
1138 | (undo GNOME_STOCK_MENU_UNDO) |
---|
1139 | (print GNOME_STOCK_MENU_PRINT) |
---|
1140 | (search GNOME_STOCK_MENU_SEARCH) |
---|
1141 | (back GNOME_STOCK_MENU_BACK) |
---|
1142 | (forward GNOME_STOCK_MENU_FORWARD) |
---|
1143 | (home GNOME_STOCK_MENU_HOME) |
---|
1144 | (stop GNOME_STOCK_MENU_STOP) |
---|
1145 | (refresh GNOME_STOCK_MENU_REFRESH) |
---|
1146 | (mail GNOME_STOCK_MENU_MAIL) |
---|
1147 | (mail-receive GNOME_STOCK_MENU_MAIL_RCV) |
---|
1148 | (mail-send GNOME_STOCK_MENU_MAIL_SND) |
---|
1149 | (trash GNOME_STOCK_MENU_TRASH) |
---|
1150 | (trash-full GNOME_STOCK_MENU_TRASH_FULL) |
---|
1151 | ;; This is an alias for Quit for now. |
---|
1152 | (exit GNOME_STOCK_MENU_QUIT)) |
---|
1153 | |
---|
1154 | (define-string-enum GnomeStockPixmapNameType |
---|
1155 | (new GNOME_STOCK_PIXMAP_NEW) |
---|
1156 | (open GNOME_STOCK_PIXMAP_OPEN) |
---|
1157 | (close GNOME_STOCK_PIXMAP_CLOSE) |
---|
1158 | (revert GNOME_STOCK_PIXMAP_REVERT) |
---|
1159 | (save GNOME_STOCK_PIXMAP_SAVE) |
---|
1160 | (save-as GNOME_STOCK_PIXMAP_SAVE_AS) |
---|
1161 | (cut GNOME_STOCK_PIXMAP_CUT) |
---|
1162 | (copy GNOME_STOCK_PIXMAP_COPY) |
---|
1163 | (paste GNOME_STOCK_PIXMAP_PASTE) |
---|
1164 | (clear GNOME_STOCK_PIXMAP_CLEAR) |
---|
1165 | (properties GNOME_STOCK_PIXMAP_PROPERTIES) |
---|
1166 | (preferences GNOME_STOCK_PIXMAP_PREFERENCES) |
---|
1167 | (help GNOME_STOCK_PIXMAP_HELP) |
---|
1168 | (scores GNOME_STOCK_PIXMAP_SCORES) |
---|
1169 | (print GNOME_STOCK_PIXMAP_PRINT) |
---|
1170 | (search GNOME_STOCK_PIXMAP_SEARCH) |
---|
1171 | (search/Replace GNOME_STOCK_PIXMAP_SRCHRPL) |
---|
1172 | (back GNOME_STOCK_PIXMAP_BACK) |
---|
1173 | (forward GNOME_STOCK_PIXMAP_FORWARD) |
---|
1174 | (first GNOME_STOCK_PIXMAP_FIRST) |
---|
1175 | (last GNOME_STOCK_PIXMAP_LAST) |
---|
1176 | (home GNOME_STOCK_PIXMAP_HOME) |
---|
1177 | (stop GNOME_STOCK_PIXMAP_STOP) |
---|
1178 | (refresh GNOME_STOCK_PIXMAP_REFRESH) |
---|
1179 | (undo GNOME_STOCK_PIXMAP_UNDO) |
---|
1180 | (redo GNOME_STOCK_PIXMAP_REDO) |
---|
1181 | (timer GNOME_STOCK_PIXMAP_TIMER) |
---|
1182 | (timer-stopped GNOME_STOCK_PIXMAP_TIMER_STOP) |
---|
1183 | (mail GNOME_STOCK_PIXMAP_MAIL ) |
---|
1184 | (receive-mail GNOME_STOCK_PIXMAP_MAIL_RCV) |
---|
1185 | (send-mail GNOME_STOCK_PIXMAP_MAIL_SND) |
---|
1186 | (reply-to-mail GNOME_STOCK_PIXMAP_MAIL_RPL) |
---|
1187 | (forward-mail GNOME_STOCK_PIXMAP_MAIL_FWD) |
---|
1188 | (new-mail GNOME_STOCK_PIXMAP_MAIL_NEW) |
---|
1189 | (trash GNOME_STOCK_PIXMAP_TRASH) |
---|
1190 | (trash-full GNOME_STOCK_PIXMAP_TRASH_FULL) |
---|
1191 | (undelete GNOME_STOCK_PIXMAP_UNDELETE) |
---|
1192 | (spellchecker GNOME_STOCK_PIXMAP_SPELLCHECK) |
---|
1193 | (microphone GNOME_STOCK_PIXMAP_MIC) |
---|
1194 | (line-in GNOME_STOCK_PIXMAP_LINE_IN) |
---|
1195 | (cdrom GNOME_STOCK_PIXMAP_CDROM) |
---|
1196 | (volume GNOME_STOCK_PIXMAP_VOLUME) |
---|
1197 | (midi GNOME_STOCK_PIXMAP_MIDI) |
---|
1198 | (book-red GNOME_STOCK_PIXMAP_BOOK_RED) |
---|
1199 | (book-green GNOME_STOCK_PIXMAP_BOOK_GREEN) |
---|
1200 | (book-blue GNOME_STOCK_PIXMAP_BOOK_BLUE) |
---|
1201 | (book-yellow GNOME_STOCK_PIXMAP_BOOK_YELLOW) |
---|
1202 | (book-open GNOME_STOCK_PIXMAP_BOOK_OPEN) |
---|
1203 | (about GNOME_STOCK_PIXMAP_ABOUT) |
---|
1204 | (quit GNOME_STOCK_PIXMAP_QUIT) |
---|
1205 | (exit GNOME_STOCK_PIXMAP_QUIT) |
---|
1206 | (multiple GNOME_STOCK_PIXMAP_MULTIPLE) |
---|
1207 | (not GNOME_STOCK_PIXMAP_NOT) |
---|
1208 | (convert GNOME_STOCK_PIXMAP_CONVERT) |
---|
1209 | (jump-to GNOME_STOCK_PIXMAP_JUMP_TO) |
---|
1210 | (up GNOME_STOCK_PIXMAP_UP) |
---|
1211 | (down GNOME_STOCK_PIXMAP_DOWN) |
---|
1212 | (top GNOME_STOCK_PIXMAP_TOP) |
---|
1213 | (bottom GNOME_STOCK_PIXMAP_BOTTOM) |
---|
1214 | (attach GNOME_STOCK_PIXMAP_ATTACH) |
---|
1215 | (index GNOME_STOCK_PIXMAP_INDEX) |
---|
1216 | (font GNOME_STOCK_PIXMAP_FONT) |
---|
1217 | (exec GNOME_STOCK_PIXMAP_EXEC) |
---|
1218 | (left GNOME_STOCK_PIXMAP_ALIGN_LEFT) |
---|
1219 | (right GNOME_STOCK_PIXMAP_ALIGN_RIGHT) |
---|
1220 | (center GNOME_STOCK_PIXMAP_ALIGN_CENTER) |
---|
1221 | (justify GNOME_STOCK_PIXMAP_ALIGN_JUSTIFY) |
---|
1222 | (bold GNOME_STOCK_PIXMAP_TEXT_BOLD) |
---|
1223 | (italic GNOME_STOCK_PIXMAP_TEXT_ITALIC) |
---|
1224 | (underline GNOME_STOCK_PIXMAP_TEXT_UNDERLINE) |
---|
1225 | (strikeout GNOME_STOCK_PIXMAP_TEXT_STRIKEOUT) |
---|
1226 | (text-indent GNOME_STOCK_PIXMAP_TEXT_INDENT) |
---|
1227 | (text-unindent GNOME_STOCK_PIXMAP_TEXT_UNINDENT) |
---|
1228 | (color-select GNOME_STOCK_PIXMAP_COLORSELECTOR) |
---|
1229 | (add GNOME_STOCK_PIXMAP_ADD) |
---|
1230 | (remove GNOME_STOCK_PIXMAP_REMOVE) |
---|
1231 | (table-borders GNOME_STOCK_PIXMAP_TABLE_BORDERS) |
---|
1232 | (table-fill GNOME_STOCK_PIXMAP_TABLE_FILL) |
---|
1233 | (text-bulleted-list GNOME_STOCK_PIXMAP_TEXT_BULLETED_LIST) |
---|
1234 | (text-numbered-list GNOME_STOCK_PIXMAP_TEXT_NUMBERED_LIST) |
---|
1235 | (regular GNOME_STOCK_PIXMAP_REGULAR) |
---|
1236 | (disabled GNOME_STOCK_PIXMAP_DISABLED) |
---|
1237 | (focused GNOME_STOCK_PIXMAP_FOCUSED)) |
---|
1238 | |
---|
1239 | (define-func gnome_stock_pixmap_widget |
---|
1240 | GtkWidget |
---|
1241 | ((GtkWidget window (null-ok)) |
---|
1242 | (string icon))) |
---|
1243 | |
---|
1244 | (define-func gnome_stock_pixmap_widget_at_size |
---|
1245 | GtkWidget |
---|
1246 | ((GtkWidget window (null-ok)) |
---|
1247 | (string icon) |
---|
1248 | (uint width) |
---|
1249 | (uint height))) |
---|
1250 | |
---|
1251 | (define-func gnome_pixmap_button |
---|
1252 | GtkWidget |
---|
1253 | ((GtkWidget pixmap) |
---|
1254 | (string text))) |
---|
1255 | |
---|
1256 | (define-func gnome_button_can_default |
---|
1257 | none |
---|
1258 | ((GtkButton button) |
---|
1259 | (bool can_default))) |
---|
1260 | |
---|
1261 | (define-func gnome_stock_button |
---|
1262 | GtkWidget |
---|
1263 | ((GnomeStockButtonNameType type))) |
---|
1264 | |
---|
1265 | (define-func gnome_stock_or_ordinary_button |
---|
1266 | GtkWidget |
---|
1267 | ((GnomeStockButtonNameType type))) |
---|
1268 | |
---|
1269 | (define-func gnome_stock_menu_item |
---|
1270 | GtkWidget |
---|
1271 | ((GnomeStockMenuNameType type) |
---|
1272 | (string text))) |
---|
1273 | |
---|
1274 | (define-func gnome_stock_transparent_window |
---|
1275 | GtkWidget |
---|
1276 | ((string icon) |
---|
1277 | (string subtype))) |
---|
1278 | |
---|
1279 | |
---|
1280 | ;; gnome-winhints |
---|
1281 | |
---|
1282 | (define-enum GnomeWinLayer |
---|
1283 | (desktop WIN_LAYER_DESKTOP) |
---|
1284 | (below WIN_LAYER_BELOW) |
---|
1285 | (normal WIN_LAYER_NORMAL) |
---|
1286 | (on-top WIN_LAYER_ONTOP) |
---|
1287 | (dock WIN_LAYER_DOCK) |
---|
1288 | (above-dock WIN_LAYER_ABOVE_DOCK)) |
---|
1289 | |
---|
1290 | (define-flags GnomeWinState |
---|
1291 | (sticky WIN_STATE_STICKY) |
---|
1292 | (minimized WIN_STATE_MINIMIZED) |
---|
1293 | (maximized-vert WIN_STATE_MAXIMIZED_VERT) |
---|
1294 | (maximized-horiz WIN_STATE_MAXIMIZED_HORIZ) |
---|
1295 | (hidden WIN_STATE_HIDDEN) |
---|
1296 | (shaded WIN_STATE_SHADED) |
---|
1297 | (hid-workspace WIN_STATE_HID_WORKSPACE) |
---|
1298 | (hid-transient WIN_STATE_HID_TRANSIENT) |
---|
1299 | (fixed-position WIN_STATE_FIXED_POSITION) |
---|
1300 | (arrange-ignore WIN_STATE_ARRANGE_IGNORE)) |
---|
1301 | |
---|
1302 | (define-flags GnomeWinHints |
---|
1303 | (skip-focus WIN_HINTS_SKIP_FOCUS) |
---|
1304 | (skip-winlist WIN_HINTS_SKIP_WINLIST) |
---|
1305 | (skip-taskbar WIN_HINTS_SKIP_TASKBAR) |
---|
1306 | (group-transient WIN_HINTS_GROUP_TRANSIENT) |
---|
1307 | (focus-on-click WIN_HINTS_FOCUS_ON_CLICK) |
---|
1308 | (do-not-cover WIN_HINTS_DO_NOT_COVER)) |
---|
1309 | |
---|
1310 | (define-func gnome_win_hints_set_layer |
---|
1311 | none |
---|
1312 | ((GtkWidget window) |
---|
1313 | (GnomeWinLayer layer))) |
---|
1314 | |
---|
1315 | (define-func gnome_win_hints_get_layer |
---|
1316 | GnomeWinLayer |
---|
1317 | ((GtkWidget window))) |
---|
1318 | |
---|
1319 | (define-func gnome_win_hints_set_state |
---|
1320 | none |
---|
1321 | ((GtkWidget window) |
---|
1322 | (GnomeWinState state))) |
---|
1323 | |
---|
1324 | (define-func gnome_win_hints_get_state |
---|
1325 | GnomeWinState |
---|
1326 | ((GtkWidget window))) |
---|
1327 | |
---|
1328 | (define-func gnome_win_hints_set_hints |
---|
1329 | none |
---|
1330 | ((GtkWidget window) |
---|
1331 | (GnomeWinHints state))) |
---|
1332 | |
---|
1333 | (define-func gnome_win_hints_get_hints |
---|
1334 | GnomeWinHints |
---|
1335 | ((GtkWidget window))) |
---|
1336 | |
---|
1337 | (define-func gnome_win_hints_set_workspace |
---|
1338 | none |
---|
1339 | ((GtkWidget window) |
---|
1340 | (int workspace))) |
---|
1341 | |
---|
1342 | (define-func gnome_win_hints_get_workspace |
---|
1343 | int |
---|
1344 | ((GtkWidget window))) |
---|
1345 | |
---|
1346 | (define-func gnome_win_hints_set_current_workspace |
---|
1347 | none |
---|
1348 | ((int workspace))) |
---|
1349 | |
---|
1350 | (define-func gnome_win_hints_get_current_workspace |
---|
1351 | int |
---|
1352 | ()) |
---|
1353 | |
---|
1354 | (define-func gnome_win_hints_get_workspace_names |
---|
1355 | (list string) |
---|
1356 | ()) |
---|
1357 | |
---|
1358 | (define-func gnome_win_hints_get_workspace_count |
---|
1359 | int |
---|
1360 | ()) |
---|
1361 | |
---|
1362 | ;; XXX missed out a load of pointless functions |
---|
1363 | |
---|
1364 | (define-func gnome_win_hints_wm_exists |
---|
1365 | bool |
---|
1366 | ()) |
---|
1367 | |
---|
1368 | |
---|
1369 | ;; GtkClock |
---|
1370 | |
---|
1371 | (define-object GtkClock (GtkLabel)) |
---|
1372 | |
---|
1373 | (define-enum GtkClockType |
---|
1374 | (increasing GTK_CLOCK_INCREASING) |
---|
1375 | (decreasing GTK_CLOCK_DECREASING) |
---|
1376 | (realtime GTK_CLOCK_REALTIME)) |
---|
1377 | |
---|
1378 | (define-func gtk_clock_new |
---|
1379 | GtkWidget |
---|
1380 | ((GtkClockType type))) |
---|
1381 | |
---|
1382 | (define-func gtk_clock_set_format |
---|
1383 | none |
---|
1384 | ((GtkClock clock) |
---|
1385 | (string fmt))) |
---|
1386 | |
---|
1387 | (define-func gtk_clock_set_seconds |
---|
1388 | none |
---|
1389 | ((GtkClock clock) |
---|
1390 | (ulong seconds))) ;time_t |
---|
1391 | |
---|
1392 | (define-func gtk_clock_start |
---|
1393 | none |
---|
1394 | ((GtkClock clock))) |
---|
1395 | |
---|
1396 | (define-func gtk_clock_stop |
---|
1397 | none |
---|
1398 | ((GtkClock clock))) |
---|
1399 | |
---|
1400 | |
---|
1401 | ;; GtkDial |
---|
1402 | |
---|
1403 | (define-object GtkDial (GtkWidget)) |
---|
1404 | |
---|
1405 | (define-func gtk_dial_new |
---|
1406 | GtkWidget |
---|
1407 | ((GtkAdjustment adj))) |
---|
1408 | |
---|
1409 | (define-func gtk_dial_get_adjustment |
---|
1410 | GtkAdjustment |
---|
1411 | ((GtkDial dial))) |
---|
1412 | |
---|
1413 | (define-func gtk_dial_set_update_policy |
---|
1414 | none |
---|
1415 | ((GtkDial dial) |
---|
1416 | (GtkUpdateType policy))) |
---|
1417 | |
---|
1418 | (define-func gtk_dial_set_adjustment |
---|
1419 | none |
---|
1420 | ((GtkDial dial) |
---|
1421 | (GtkAdjustment adj))) |
---|
1422 | |
---|
1423 | (define-func gtk_dial_set_percentage |
---|
1424 | none |
---|
1425 | ((GtkDial dial) |
---|
1426 | (float percent))) |
---|
1427 | |
---|
1428 | (define-func gtk_dial_get_percentage |
---|
1429 | float |
---|
1430 | ((GtkDial dial))) |
---|
1431 | |
---|
1432 | (define-func gtk_dial_set_value |
---|
1433 | none |
---|
1434 | ((GtkDial dial) |
---|
1435 | (float value))) |
---|
1436 | |
---|
1437 | (define-func gtk_dial_get_value |
---|
1438 | float |
---|
1439 | ((GtkDial dial))) |
---|
1440 | |
---|
1441 | (define-func gtk_dial_set_view_only |
---|
1442 | none |
---|
1443 | ((GtkDial dial) |
---|
1444 | (bool view_only))) |
---|
1445 | |
---|
1446 | |
---|
1447 | ;; GtkPixmapMenuItem |
---|
1448 | |
---|
1449 | (define-object GtkPixmapMenuItem (GtkMenuItem)) |
---|
1450 | |
---|
1451 | (define-func gtk_pixmap_menu_item_new |
---|
1452 | GtkWidget |
---|
1453 | ()) |
---|
1454 | |
---|
1455 | (define-func gtk_pixmap_menu_item_set_pixmap |
---|
1456 | none |
---|
1457 | ((GtkPixmapMenuItem item) |
---|
1458 | (GtkWidget pixmap))) |
---|
1459 | |
---|
1460 | |
---|
1461 | ;; GnomeProcBar |
---|
1462 | |
---|
1463 | |
---|
1464 | ;; misc |
---|
1465 | |
---|
1466 | (define-func gdk_imlib_get_visual |
---|
1467 | GdkVisual |
---|
1468 | ()) |
---|
1469 | |
---|
1470 | (define-func gdk_imlib_get_colormap |
---|
1471 | GdkColormap |
---|
1472 | ()) |
---|
1473 | |
---|
1474 | (define-func sgtk_gnome_init |
---|
1475 | bool |
---|
1476 | ((string app_id) |
---|
1477 | (string app_version)) |
---|
1478 | (scm-name "gnome-init")) |
---|
1479 | |
---|
1480 | |
---|
1481 | |
---|
1482 | (options |
---|
1483 | (includes "#include <gnome.h>") |
---|
1484 | (includes "#include \"rep-gnome.h\"") |
---|
1485 | (init-func "sgtk_gnome_init_gnomeui_glue")) |
---|