source: trunk/third/rep-gtk/gnomelib.defs @ 18404

Revision 18404, 3.8 KB checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18403, which included commits to RCS files with non-trunk default branches.
Line 
1;;; -*- lisp -*-
2;;; gnomelib.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
23;; Gnome util.
24
25(define-func gnome_libdir_file
26  string
27  ((string filename)))
28
29(define-func gnome_datadir_file
30  string
31  ((string filename)))
32
33(define-func gnome_pixmap_file
34  string
35  ((string filename)))
36
37(define-func gnome_unconditional_libdir_file
38  string
39  ((string filename)))
40
41(define-func gnome_unconditional_datadir_file
42  string
43  ((string filename)))
44
45(define-func gnome_unconditional_pixmap_file
46  string
47  ((string filename)))
48
49
50;; Gnome config.
51;; FIXME: iterators and _with_default functions not included.
52
53(define-func gnome_config_get_string
54  string
55  ((string path)))
56
57(define-func gnome_config_get_int
58  int
59  ((string path)))
60
61(define-func gnome_config_get_bool
62  bool
63  ((string path)))
64
65(define-func gnome_config_set_string
66  none
67  ((string path)
68   (string value)))
69
70(define-func gnome_config_set_int
71  none
72  ((string path)
73   (int value)))
74
75(define-func gnome_config_set_bool
76  none
77  ((string path)
78   (bool value)))
79
80(define-func gnome_config_has_section
81  bool
82  ((string path)))
83
84(define-func gnome_config_drop_all
85  none
86  ())
87
88(define-func gnome_config_sync
89  none
90  ())
91
92(define-func gnome_config_clean_file
93  none
94  ((string path)))
95
96(define-func gnome_config_clean_section
97  none
98  ((string path)))
99
100(define-func gnome_config_clean_key
101  none
102  ((string path)))
103
104(define-func gnome_config_push_prefix
105  none
106  ((string path)))
107
108(define-func gnome_config_pop_prefix
109  none
110  ())
111
112
113;; gnome-dentry
114
115;; XXX can't handle structure conversion currently
116
117
118;; gnome-help
119
120;(define-func gnome_help_display
121;  none
122;  ((string file_name)
123;   (string link_id)
124;   (GErrorPointer error)))
125
126;(define-func gnome_help_display_uri
127;  none
128;  ((string help_uri)
129;   (GErrorPointer error)))
130
131
132;; gnome-history
133
134;; FIXME: other functions done by hand due to build-guile-gtk limitations.
135
136;(define-func gnome_history_recently_used
137;  none
138;  ((string filename)
139;   (string filetype)
140;   (string creator)
141;   (string desc)))
142
143
144;; gnome-i18n
145
146(define-func gnome_i18n_get_language_list
147  ((list string))
148  ((string category_name)))
149
150
151;; gnome-paper, gnome-popt, gnome-regex, gnome-remote
152
153;; [can't be arsed]
154
155
156;; gnome-score
157
158(define-func gnome_score_init
159  int
160  ((string gamename)))
161
162(define-func gnome_score_log
163  int
164  ((float score)
165   (string level)
166   (bool higher_to_lower_score_order)))
167
168
169;; gnome-sound
170
171(define-func gnome_sound_init
172  none
173  ((string hostname)))
174
175(define-func gnome_sound_shutdown
176  none
177  ())
178
179(define-func gnome_sound_sample_load
180  int
181  ((string sample_name)
182   (string filename)))
183
184(define-func gnome_sound_play
185  none
186  ((string filename)))
187
188
189;; gnome-url
190
191;(define-func gnome_url_show
192;  none
193;  ((string url)
194;   (GErrorPointer error)))
195
196
197;; init
198
199(define-func gnomelib_init
200  none
201  ((string app_id)
202   (string app_version)))
203
204
205;; Options
206
207(options
208 (includes "#include <gnome.h>")
209 (includes "#include <libgnome/gnome-help.h>")
210 (includes "#include \"rep-gnome.h\"")
211 (init-func "sgtk_gnome_init_gnome_glue"))
Note: See TracBrowser for help on using the repository browser.