Mercurial > hg > xemacs-beta
comparison src/emacs-widget-accessors.c @ 462:0784d089fdc9 r21-2-46
Import from CVS: tag r21-2-46
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:44:37 +0200 |
parents | |
children | 183866b06e0b |
comparison
equal
deleted
inserted
replaced
461:120ed4009e51 | 462:0784d089fdc9 |
---|---|
1 DEFUN ("gtk-adjustment-lower", Fgtk_adjustment_lower, 1, 1, 0, /* | |
2 Access the `lower' slot of OBJ, a GtkAdjustment object. | |
3 */ | |
4 (obj)) | |
5 { | |
6 GtkAdjustment *the_obj = NULL; | |
7 GtkArg arg; | |
8 | |
9 CHECK_GTK_OBJECT (obj); | |
10 | |
11 if (!GTK_IS_ADJUSTMENT (XGTK_OBJECT (obj)->object)) | |
12 { | |
13 signal_simple_error ("Object is not a GtkAdjustment", obj); | |
14 }; | |
15 | |
16 the_obj = GTK_ADJUSTMENT (XGTK_OBJECT (obj)->object); | |
17 arg.type = gtk_type_from_name ("gfloat"); | |
18 GTK_VALUE_FLOAT (arg) = the_obj->lower; | |
19 return (gtk_type_to_lisp (&arg)); | |
20 } | |
21 | |
22 DEFUN ("gtk-adjustment-upper", Fgtk_adjustment_upper, 1, 1, 0, /* | |
23 Access the `upper' slot of OBJ, a GtkAdjustment object. | |
24 */ | |
25 (obj)) | |
26 { | |
27 GtkAdjustment *the_obj = NULL; | |
28 GtkArg arg; | |
29 | |
30 CHECK_GTK_OBJECT (obj); | |
31 | |
32 if (!GTK_IS_ADJUSTMENT (XGTK_OBJECT (obj)->object)) | |
33 { | |
34 signal_simple_error ("Object is not a GtkAdjustment", obj); | |
35 }; | |
36 | |
37 the_obj = GTK_ADJUSTMENT (XGTK_OBJECT (obj)->object); | |
38 arg.type = gtk_type_from_name ("gfloat"); | |
39 GTK_VALUE_FLOAT (arg) = the_obj->upper; | |
40 return (gtk_type_to_lisp (&arg)); | |
41 } | |
42 | |
43 DEFUN ("gtk-adjustment-value", Fgtk_adjustment_value, 1, 1, 0, /* | |
44 Access the `value' slot of OBJ, a GtkAdjustment object. | |
45 */ | |
46 (obj)) | |
47 { | |
48 GtkAdjustment *the_obj = NULL; | |
49 GtkArg arg; | |
50 | |
51 CHECK_GTK_OBJECT (obj); | |
52 | |
53 if (!GTK_IS_ADJUSTMENT (XGTK_OBJECT (obj)->object)) | |
54 { | |
55 signal_simple_error ("Object is not a GtkAdjustment", obj); | |
56 }; | |
57 | |
58 the_obj = GTK_ADJUSTMENT (XGTK_OBJECT (obj)->object); | |
59 arg.type = gtk_type_from_name ("gfloat"); | |
60 GTK_VALUE_FLOAT (arg) = the_obj->value; | |
61 return (gtk_type_to_lisp (&arg)); | |
62 } | |
63 | |
64 DEFUN ("gtk-adjustment-step-increment", Fgtk_adjustment_step_increment, 1, 1, 0, /* | |
65 Access the `step_increment' slot of OBJ, a GtkAdjustment object. | |
66 */ | |
67 (obj)) | |
68 { | |
69 GtkAdjustment *the_obj = NULL; | |
70 GtkArg arg; | |
71 | |
72 CHECK_GTK_OBJECT (obj); | |
73 | |
74 if (!GTK_IS_ADJUSTMENT (XGTK_OBJECT (obj)->object)) | |
75 { | |
76 signal_simple_error ("Object is not a GtkAdjustment", obj); | |
77 }; | |
78 | |
79 the_obj = GTK_ADJUSTMENT (XGTK_OBJECT (obj)->object); | |
80 arg.type = gtk_type_from_name ("gfloat"); | |
81 GTK_VALUE_FLOAT (arg) = the_obj->step_increment; | |
82 return (gtk_type_to_lisp (&arg)); | |
83 } | |
84 | |
85 DEFUN ("gtk-adjustment-page-increment", Fgtk_adjustment_page_increment, 1, 1, 0, /* | |
86 Access the `page_increment' slot of OBJ, a GtkAdjustment object. | |
87 */ | |
88 (obj)) | |
89 { | |
90 GtkAdjustment *the_obj = NULL; | |
91 GtkArg arg; | |
92 | |
93 CHECK_GTK_OBJECT (obj); | |
94 | |
95 if (!GTK_IS_ADJUSTMENT (XGTK_OBJECT (obj)->object)) | |
96 { | |
97 signal_simple_error ("Object is not a GtkAdjustment", obj); | |
98 }; | |
99 | |
100 the_obj = GTK_ADJUSTMENT (XGTK_OBJECT (obj)->object); | |
101 arg.type = gtk_type_from_name ("gfloat"); | |
102 GTK_VALUE_FLOAT (arg) = the_obj->page_increment; | |
103 return (gtk_type_to_lisp (&arg)); | |
104 } | |
105 | |
106 DEFUN ("gtk-adjustment-page-size", Fgtk_adjustment_page_size, 1, 1, 0, /* | |
107 Access the `page_size' slot of OBJ, a GtkAdjustment object. | |
108 */ | |
109 (obj)) | |
110 { | |
111 GtkAdjustment *the_obj = NULL; | |
112 GtkArg arg; | |
113 | |
114 CHECK_GTK_OBJECT (obj); | |
115 | |
116 if (!GTK_IS_ADJUSTMENT (XGTK_OBJECT (obj)->object)) | |
117 { | |
118 signal_simple_error ("Object is not a GtkAdjustment", obj); | |
119 }; | |
120 | |
121 the_obj = GTK_ADJUSTMENT (XGTK_OBJECT (obj)->object); | |
122 arg.type = gtk_type_from_name ("gfloat"); | |
123 GTK_VALUE_FLOAT (arg) = the_obj->page_size; | |
124 return (gtk_type_to_lisp (&arg)); | |
125 } | |
126 | |
127 DEFUN ("gtk-widget-style", Fgtk_widget_style, 1, 1, 0, /* | |
128 Access the `style' slot of OBJ, a GtkWidget object. | |
129 */ | |
130 (obj)) | |
131 { | |
132 GtkWidget *the_obj = NULL; | |
133 GtkArg arg; | |
134 | |
135 CHECK_GTK_OBJECT (obj); | |
136 | |
137 if (!GTK_IS_WIDGET (XGTK_OBJECT (obj)->object)) | |
138 { | |
139 signal_simple_error ("Object is not a GtkWidget", obj); | |
140 }; | |
141 | |
142 the_obj = GTK_WIDGET (XGTK_OBJECT (obj)->object); | |
143 arg.type = gtk_type_from_name ("GtkStyle"); | |
144 GTK_VALUE_BOXED (arg) = (void *)the_obj->style; | |
145 return (gtk_type_to_lisp (&arg)); | |
146 } | |
147 | |
148 DEFUN ("gtk-widget-window", Fgtk_widget_window, 1, 1, 0, /* | |
149 Access the `window' slot of OBJ, a GtkWidget object. | |
150 */ | |
151 (obj)) | |
152 { | |
153 GtkWidget *the_obj = NULL; | |
154 GtkArg arg; | |
155 | |
156 CHECK_GTK_OBJECT (obj); | |
157 | |
158 if (!GTK_IS_WIDGET (XGTK_OBJECT (obj)->object)) | |
159 { | |
160 signal_simple_error ("Object is not a GtkWidget", obj); | |
161 }; | |
162 | |
163 the_obj = GTK_WIDGET (XGTK_OBJECT (obj)->object); | |
164 arg.type = gtk_type_from_name ("GdkWindow"); | |
165 GTK_VALUE_BOXED (arg) = (void *)the_obj->window; | |
166 return (gtk_type_to_lisp (&arg)); | |
167 } | |
168 | |
169 DEFUN ("gtk-widget-state", Fgtk_widget_state, 1, 1, 0, /* | |
170 Access the `state' slot of OBJ, a GtkWidget object. | |
171 */ | |
172 (obj)) | |
173 { | |
174 GtkWidget *the_obj = NULL; | |
175 GtkArg arg; | |
176 | |
177 CHECK_GTK_OBJECT (obj); | |
178 | |
179 if (!GTK_IS_WIDGET (XGTK_OBJECT (obj)->object)) | |
180 { | |
181 signal_simple_error ("Object is not a GtkWidget", obj); | |
182 }; | |
183 | |
184 the_obj = GTK_WIDGET (XGTK_OBJECT (obj)->object); | |
185 arg.type = gtk_type_from_name ("GtkStateType"); | |
186 GTK_VALUE_ENUM (arg) = the_obj->state; | |
187 return (gtk_type_to_lisp (&arg)); | |
188 } | |
189 | |
190 DEFUN ("gtk-widget-name", Fgtk_widget_name, 1, 1, 0, /* | |
191 Access the `name' slot of OBJ, a GtkWidget object. | |
192 */ | |
193 (obj)) | |
194 { | |
195 GtkWidget *the_obj = NULL; | |
196 GtkArg arg; | |
197 | |
198 CHECK_GTK_OBJECT (obj); | |
199 | |
200 if (!GTK_IS_WIDGET (XGTK_OBJECT (obj)->object)) | |
201 { | |
202 signal_simple_error ("Object is not a GtkWidget", obj); | |
203 }; | |
204 | |
205 the_obj = GTK_WIDGET (XGTK_OBJECT (obj)->object); | |
206 arg.type = gtk_type_from_name ("GtkString"); | |
207 GTK_VALUE_STRING (arg) = the_obj->name; | |
208 return (gtk_type_to_lisp (&arg)); | |
209 } | |
210 | |
211 DEFUN ("gtk-widget-parent", Fgtk_widget_parent, 1, 1, 0, /* | |
212 Access the `parent' slot of OBJ, a GtkWidget object. | |
213 */ | |
214 (obj)) | |
215 { | |
216 GtkWidget *the_obj = NULL; | |
217 GtkArg arg; | |
218 | |
219 CHECK_GTK_OBJECT (obj); | |
220 | |
221 if (!GTK_IS_WIDGET (XGTK_OBJECT (obj)->object)) | |
222 { | |
223 signal_simple_error ("Object is not a GtkWidget", obj); | |
224 }; | |
225 | |
226 the_obj = GTK_WIDGET (XGTK_OBJECT (obj)->object); | |
227 arg.type = gtk_type_from_name ("GtkWidget"); | |
228 GTK_VALUE_OBJECT (arg) = GTK_OBJECT (the_obj->parent); | |
229 return (gtk_type_to_lisp (&arg)); | |
230 } | |
231 | |
232 DEFUN ("gtk-button-child", Fgtk_button_child, 1, 1, 0, /* | |
233 Access the `child' slot of OBJ, a GtkButton object. | |
234 */ | |
235 (obj)) | |
236 { | |
237 GtkButton *the_obj = NULL; | |
238 GtkArg arg; | |
239 | |
240 CHECK_GTK_OBJECT (obj); | |
241 | |
242 if (!GTK_IS_BUTTON (XGTK_OBJECT (obj)->object)) | |
243 { | |
244 signal_simple_error ("Object is not a GtkButton", obj); | |
245 }; | |
246 | |
247 the_obj = GTK_BUTTON (XGTK_OBJECT (obj)->object); | |
248 arg.type = gtk_type_from_name ("GtkWidget"); | |
249 GTK_VALUE_OBJECT (arg) = GTK_OBJECT (the_obj->child); | |
250 return (gtk_type_to_lisp (&arg)); | |
251 } | |
252 | |
253 DEFUN ("gtk-button-in-button", Fgtk_button_in_button, 1, 1, 0, /* | |
254 Access the `in_button' slot of OBJ, a GtkButton object. | |
255 */ | |
256 (obj)) | |
257 { | |
258 GtkButton *the_obj = NULL; | |
259 GtkArg arg; | |
260 | |
261 CHECK_GTK_OBJECT (obj); | |
262 | |
263 if (!GTK_IS_BUTTON (XGTK_OBJECT (obj)->object)) | |
264 { | |
265 signal_simple_error ("Object is not a GtkButton", obj); | |
266 }; | |
267 | |
268 the_obj = GTK_BUTTON (XGTK_OBJECT (obj)->object); | |
269 arg.type = gtk_type_from_name ("gboolean"); | |
270 GTK_VALUE_BOOL (arg) = the_obj->in_button; | |
271 return (gtk_type_to_lisp (&arg)); | |
272 } | |
273 | |
274 DEFUN ("gtk-button-button-down", Fgtk_button_button_down, 1, 1, 0, /* | |
275 Access the `button_down' slot of OBJ, a GtkButton object. | |
276 */ | |
277 (obj)) | |
278 { | |
279 GtkButton *the_obj = NULL; | |
280 GtkArg arg; | |
281 | |
282 CHECK_GTK_OBJECT (obj); | |
283 | |
284 if (!GTK_IS_BUTTON (XGTK_OBJECT (obj)->object)) | |
285 { | |
286 signal_simple_error ("Object is not a GtkButton", obj); | |
287 }; | |
288 | |
289 the_obj = GTK_BUTTON (XGTK_OBJECT (obj)->object); | |
290 arg.type = gtk_type_from_name ("gboolean"); | |
291 GTK_VALUE_BOOL (arg) = the_obj->button_down; | |
292 return (gtk_type_to_lisp (&arg)); | |
293 } | |
294 | |
295 DEFUN ("gtk-combo-entry", Fgtk_combo_entry, 1, 1, 0, /* | |
296 Access the `entry' slot of OBJ, a GtkCombo object. | |
297 */ | |
298 (obj)) | |
299 { | |
300 GtkCombo *the_obj = NULL; | |
301 GtkArg arg; | |
302 | |
303 CHECK_GTK_OBJECT (obj); | |
304 | |
305 if (!GTK_IS_COMBO (XGTK_OBJECT (obj)->object)) | |
306 { | |
307 signal_simple_error ("Object is not a GtkCombo", obj); | |
308 }; | |
309 | |
310 the_obj = GTK_COMBO (XGTK_OBJECT (obj)->object); | |
311 arg.type = gtk_type_from_name ("GtkWidget"); | |
312 GTK_VALUE_OBJECT (arg) = GTK_OBJECT (the_obj->entry); | |
313 return (gtk_type_to_lisp (&arg)); | |
314 } | |
315 | |
316 DEFUN ("gtk-combo-button", Fgtk_combo_button, 1, 1, 0, /* | |
317 Access the `button' slot of OBJ, a GtkCombo object. | |
318 */ | |
319 (obj)) | |
320 { | |
321 GtkCombo *the_obj = NULL; | |
322 GtkArg arg; | |
323 | |
324 CHECK_GTK_OBJECT (obj); | |
325 | |
326 if (!GTK_IS_COMBO (XGTK_OBJECT (obj)->object)) | |
327 { | |
328 signal_simple_error ("Object is not a GtkCombo", obj); | |
329 }; | |
330 | |
331 the_obj = GTK_COMBO (XGTK_OBJECT (obj)->object); | |
332 arg.type = gtk_type_from_name ("GtkWidget"); | |
333 GTK_VALUE_OBJECT (arg) = GTK_OBJECT (the_obj->button); | |
334 return (gtk_type_to_lisp (&arg)); | |
335 } | |
336 | |
337 DEFUN ("gtk-combo-popup", Fgtk_combo_popup, 1, 1, 0, /* | |
338 Access the `popup' slot of OBJ, a GtkCombo object. | |
339 */ | |
340 (obj)) | |
341 { | |
342 GtkCombo *the_obj = NULL; | |
343 GtkArg arg; | |
344 | |
345 CHECK_GTK_OBJECT (obj); | |
346 | |
347 if (!GTK_IS_COMBO (XGTK_OBJECT (obj)->object)) | |
348 { | |
349 signal_simple_error ("Object is not a GtkCombo", obj); | |
350 }; | |
351 | |
352 the_obj = GTK_COMBO (XGTK_OBJECT (obj)->object); | |
353 arg.type = gtk_type_from_name ("GtkWidget"); | |
354 GTK_VALUE_OBJECT (arg) = GTK_OBJECT (the_obj->popup); | |
355 return (gtk_type_to_lisp (&arg)); | |
356 } | |
357 | |
358 DEFUN ("gtk-combo-popwin", Fgtk_combo_popwin, 1, 1, 0, /* | |
359 Access the `popwin' slot of OBJ, a GtkCombo object. | |
360 */ | |
361 (obj)) | |
362 { | |
363 GtkCombo *the_obj = NULL; | |
364 GtkArg arg; | |
365 | |
366 CHECK_GTK_OBJECT (obj); | |
367 | |
368 if (!GTK_IS_COMBO (XGTK_OBJECT (obj)->object)) | |
369 { | |
370 signal_simple_error ("Object is not a GtkCombo", obj); | |
371 }; | |
372 | |
373 the_obj = GTK_COMBO (XGTK_OBJECT (obj)->object); | |
374 arg.type = gtk_type_from_name ("GtkWidget"); | |
375 GTK_VALUE_OBJECT (arg) = GTK_OBJECT (the_obj->popwin); | |
376 return (gtk_type_to_lisp (&arg)); | |
377 } | |
378 | |
379 DEFUN ("gtk-combo-list", Fgtk_combo_list, 1, 1, 0, /* | |
380 Access the `list' slot of OBJ, a GtkCombo object. | |
381 */ | |
382 (obj)) | |
383 { | |
384 GtkCombo *the_obj = NULL; | |
385 GtkArg arg; | |
386 | |
387 CHECK_GTK_OBJECT (obj); | |
388 | |
389 if (!GTK_IS_COMBO (XGTK_OBJECT (obj)->object)) | |
390 { | |
391 signal_simple_error ("Object is not a GtkCombo", obj); | |
392 }; | |
393 | |
394 the_obj = GTK_COMBO (XGTK_OBJECT (obj)->object); | |
395 arg.type = gtk_type_from_name ("GtkWidget"); | |
396 GTK_VALUE_OBJECT (arg) = GTK_OBJECT (the_obj->list); | |
397 return (gtk_type_to_lisp (&arg)); | |
398 } | |
399 | |
400 DEFUN ("gtk-gamma-curve-table", Fgtk_gamma_curve_table, 1, 1, 0, /* | |
401 Access the `table' slot of OBJ, a GtkGammaCurve object. | |
402 */ | |
403 (obj)) | |
404 { | |
405 GtkGammaCurve *the_obj = NULL; | |
406 GtkArg arg; | |
407 | |
408 CHECK_GTK_OBJECT (obj); | |
409 | |
410 if (!GTK_IS_GAMMA_CURVE (XGTK_OBJECT (obj)->object)) | |
411 { | |
412 signal_simple_error ("Object is not a GtkGammaCurve", obj); | |
413 }; | |
414 | |
415 the_obj = GTK_GAMMA_CURVE (XGTK_OBJECT (obj)->object); | |
416 arg.type = gtk_type_from_name ("GtkWidget"); | |
417 GTK_VALUE_OBJECT (arg) = GTK_OBJECT (the_obj->table); | |
418 return (gtk_type_to_lisp (&arg)); | |
419 } | |
420 | |
421 DEFUN ("gtk-gamma-curve-curve", Fgtk_gamma_curve_curve, 1, 1, 0, /* | |
422 Access the `curve' slot of OBJ, a GtkGammaCurve object. | |
423 */ | |
424 (obj)) | |
425 { | |
426 GtkGammaCurve *the_obj = NULL; | |
427 GtkArg arg; | |
428 | |
429 CHECK_GTK_OBJECT (obj); | |
430 | |
431 if (!GTK_IS_GAMMA_CURVE (XGTK_OBJECT (obj)->object)) | |
432 { | |
433 signal_simple_error ("Object is not a GtkGammaCurve", obj); | |
434 }; | |
435 | |
436 the_obj = GTK_GAMMA_CURVE (XGTK_OBJECT (obj)->object); | |
437 arg.type = gtk_type_from_name ("GtkWidget"); | |
438 GTK_VALUE_OBJECT (arg) = GTK_OBJECT (the_obj->curve); | |
439 return (gtk_type_to_lisp (&arg)); | |
440 } | |
441 | |
442 DEFUN ("gtk-gamma-curve-gamma", Fgtk_gamma_curve_gamma, 1, 1, 0, /* | |
443 Access the `gamma' slot of OBJ, a GtkGammaCurve object. | |
444 */ | |
445 (obj)) | |
446 { | |
447 GtkGammaCurve *the_obj = NULL; | |
448 GtkArg arg; | |
449 | |
450 CHECK_GTK_OBJECT (obj); | |
451 | |
452 if (!GTK_IS_GAMMA_CURVE (XGTK_OBJECT (obj)->object)) | |
453 { | |
454 signal_simple_error ("Object is not a GtkGammaCurve", obj); | |
455 }; | |
456 | |
457 the_obj = GTK_GAMMA_CURVE (XGTK_OBJECT (obj)->object); | |
458 arg.type = gtk_type_from_name ("gfloat"); | |
459 GTK_VALUE_FLOAT (arg) = the_obj->gamma; | |
460 return (gtk_type_to_lisp (&arg)); | |
461 } | |
462 | |
463 DEFUN ("gtk-gamma-curve-gamma-dialog", Fgtk_gamma_curve_gamma_dialog, 1, 1, 0, /* | |
464 Access the `gamma_dialog' slot of OBJ, a GtkGammaCurve object. | |
465 */ | |
466 (obj)) | |
467 { | |
468 GtkGammaCurve *the_obj = NULL; | |
469 GtkArg arg; | |
470 | |
471 CHECK_GTK_OBJECT (obj); | |
472 | |
473 if (!GTK_IS_GAMMA_CURVE (XGTK_OBJECT (obj)->object)) | |
474 { | |
475 signal_simple_error ("Object is not a GtkGammaCurve", obj); | |
476 }; | |
477 | |
478 the_obj = GTK_GAMMA_CURVE (XGTK_OBJECT (obj)->object); | |
479 arg.type = gtk_type_from_name ("GtkWidget"); | |
480 GTK_VALUE_OBJECT (arg) = GTK_OBJECT (the_obj->gamma_dialog); | |
481 return (gtk_type_to_lisp (&arg)); | |
482 } | |
483 | |
484 DEFUN ("gtk-gamma-curve-gamma-text", Fgtk_gamma_curve_gamma_text, 1, 1, 0, /* | |
485 Access the `gamma_text' slot of OBJ, a GtkGammaCurve object. | |
486 */ | |
487 (obj)) | |
488 { | |
489 GtkGammaCurve *the_obj = NULL; | |
490 GtkArg arg; | |
491 | |
492 CHECK_GTK_OBJECT (obj); | |
493 | |
494 if (!GTK_IS_GAMMA_CURVE (XGTK_OBJECT (obj)->object)) | |
495 { | |
496 signal_simple_error ("Object is not a GtkGammaCurve", obj); | |
497 }; | |
498 | |
499 the_obj = GTK_GAMMA_CURVE (XGTK_OBJECT (obj)->object); | |
500 arg.type = gtk_type_from_name ("GtkWidget"); | |
501 GTK_VALUE_OBJECT (arg) = GTK_OBJECT (the_obj->gamma_text); | |
502 return (gtk_type_to_lisp (&arg)); | |
503 } | |
504 | |
505 DEFUN ("gtk-check-menu-item-active", Fgtk_check_menu_item_active, 1, 1, 0, /* | |
506 Access the `active' slot of OBJ, a GtkCheckMenuItem object. | |
507 */ | |
508 (obj)) | |
509 { | |
510 GtkCheckMenuItem *the_obj = NULL; | |
511 GtkArg arg; | |
512 | |
513 CHECK_GTK_OBJECT (obj); | |
514 | |
515 if (!GTK_IS_CHECK_MENU_ITEM (XGTK_OBJECT (obj)->object)) | |
516 { | |
517 signal_simple_error ("Object is not a GtkCheckMenuItem", obj); | |
518 }; | |
519 | |
520 the_obj = GTK_CHECK_MENU_ITEM (XGTK_OBJECT (obj)->object); | |
521 arg.type = gtk_type_from_name ("gboolean"); | |
522 GTK_VALUE_BOOL (arg) = the_obj->active; | |
523 return (gtk_type_to_lisp (&arg)); | |
524 } | |
525 | |
526 DEFUN ("gtk-notebook-tab-pos", Fgtk_notebook_tab_pos, 1, 1, 0, /* | |
527 Access the `tab_pos' slot of OBJ, a GtkNotebook object. | |
528 */ | |
529 (obj)) | |
530 { | |
531 GtkNotebook *the_obj = NULL; | |
532 GtkArg arg; | |
533 | |
534 CHECK_GTK_OBJECT (obj); | |
535 | |
536 if (!GTK_IS_NOTEBOOK (XGTK_OBJECT (obj)->object)) | |
537 { | |
538 signal_simple_error ("Object is not a GtkNotebook", obj); | |
539 }; | |
540 | |
541 the_obj = GTK_NOTEBOOK (XGTK_OBJECT (obj)->object); | |
542 arg.type = gtk_type_from_name ("GtkPositionType"); | |
543 GTK_VALUE_ENUM (arg) = the_obj->tab_pos; | |
544 return (gtk_type_to_lisp (&arg)); | |
545 } | |
546 | |
547 DEFUN ("gtk-text-hadj", Fgtk_text_hadj, 1, 1, 0, /* | |
548 Access the `hadj' slot of OBJ, a GtkText object. | |
549 */ | |
550 (obj)) | |
551 { | |
552 GtkText *the_obj = NULL; | |
553 GtkArg arg; | |
554 | |
555 CHECK_GTK_OBJECT (obj); | |
556 | |
557 if (!GTK_IS_TEXT (XGTK_OBJECT (obj)->object)) | |
558 { | |
559 signal_simple_error ("Object is not a GtkText", obj); | |
560 }; | |
561 | |
562 the_obj = GTK_TEXT (XGTK_OBJECT (obj)->object); | |
563 arg.type = gtk_type_from_name ("GtkAdjustment"); | |
564 GTK_VALUE_OBJECT (arg) = GTK_OBJECT (the_obj->hadj); | |
565 return (gtk_type_to_lisp (&arg)); | |
566 } | |
567 | |
568 DEFUN ("gtk-text-vadj", Fgtk_text_vadj, 1, 1, 0, /* | |
569 Access the `vadj' slot of OBJ, a GtkText object. | |
570 */ | |
571 (obj)) | |
572 { | |
573 GtkText *the_obj = NULL; | |
574 GtkArg arg; | |
575 | |
576 CHECK_GTK_OBJECT (obj); | |
577 | |
578 if (!GTK_IS_TEXT (XGTK_OBJECT (obj)->object)) | |
579 { | |
580 signal_simple_error ("Object is not a GtkText", obj); | |
581 }; | |
582 | |
583 the_obj = GTK_TEXT (XGTK_OBJECT (obj)->object); | |
584 arg.type = gtk_type_from_name ("GtkAdjustment"); | |
585 GTK_VALUE_OBJECT (arg) = GTK_OBJECT (the_obj->vadj); | |
586 return (gtk_type_to_lisp (&arg)); | |
587 } | |
588 | |
589 DEFUN ("gtk-file-selection-dir-list", Fgtk_file_selection_dir_list, 1, 1, 0, /* | |
590 Access the `dir_list' slot of OBJ, a GtkFileSelection object. | |
591 */ | |
592 (obj)) | |
593 { | |
594 GtkFileSelection *the_obj = NULL; | |
595 GtkArg arg; | |
596 | |
597 CHECK_GTK_OBJECT (obj); | |
598 | |
599 if (!GTK_IS_FILE_SELECTION (XGTK_OBJECT (obj)->object)) | |
600 { | |
601 signal_simple_error ("Object is not a GtkFileSelection", obj); | |
602 }; | |
603 | |
604 the_obj = GTK_FILE_SELECTION (XGTK_OBJECT (obj)->object); | |
605 arg.type = gtk_type_from_name ("GtkWidget"); | |
606 GTK_VALUE_OBJECT (arg) = GTK_OBJECT (the_obj->dir_list); | |
607 return (gtk_type_to_lisp (&arg)); | |
608 } | |
609 | |
610 DEFUN ("gtk-file-selection-file-list", Fgtk_file_selection_file_list, 1, 1, 0, /* | |
611 Access the `file_list' slot of OBJ, a GtkFileSelection object. | |
612 */ | |
613 (obj)) | |
614 { | |
615 GtkFileSelection *the_obj = NULL; | |
616 GtkArg arg; | |
617 | |
618 CHECK_GTK_OBJECT (obj); | |
619 | |
620 if (!GTK_IS_FILE_SELECTION (XGTK_OBJECT (obj)->object)) | |
621 { | |
622 signal_simple_error ("Object is not a GtkFileSelection", obj); | |
623 }; | |
624 | |
625 the_obj = GTK_FILE_SELECTION (XGTK_OBJECT (obj)->object); | |
626 arg.type = gtk_type_from_name ("GtkWidget"); | |
627 GTK_VALUE_OBJECT (arg) = GTK_OBJECT (the_obj->file_list); | |
628 return (gtk_type_to_lisp (&arg)); | |
629 } | |
630 | |
631 DEFUN ("gtk-file-selection-selection-entry", Fgtk_file_selection_selection_entry, 1, 1, 0, /* | |
632 Access the `selection_entry' slot of OBJ, a GtkFileSelection object. | |
633 */ | |
634 (obj)) | |
635 { | |
636 GtkFileSelection *the_obj = NULL; | |
637 GtkArg arg; | |
638 | |
639 CHECK_GTK_OBJECT (obj); | |
640 | |
641 if (!GTK_IS_FILE_SELECTION (XGTK_OBJECT (obj)->object)) | |
642 { | |
643 signal_simple_error ("Object is not a GtkFileSelection", obj); | |
644 }; | |
645 | |
646 the_obj = GTK_FILE_SELECTION (XGTK_OBJECT (obj)->object); | |
647 arg.type = gtk_type_from_name ("GtkWidget"); | |
648 GTK_VALUE_OBJECT (arg) = GTK_OBJECT (the_obj->selection_entry); | |
649 return (gtk_type_to_lisp (&arg)); | |
650 } | |
651 | |
652 DEFUN ("gtk-file-selection-selection-text", Fgtk_file_selection_selection_text, 1, 1, 0, /* | |
653 Access the `selection_text' slot of OBJ, a GtkFileSelection object. | |
654 */ | |
655 (obj)) | |
656 { | |
657 GtkFileSelection *the_obj = NULL; | |
658 GtkArg arg; | |
659 | |
660 CHECK_GTK_OBJECT (obj); | |
661 | |
662 if (!GTK_IS_FILE_SELECTION (XGTK_OBJECT (obj)->object)) | |
663 { | |
664 signal_simple_error ("Object is not a GtkFileSelection", obj); | |
665 }; | |
666 | |
667 the_obj = GTK_FILE_SELECTION (XGTK_OBJECT (obj)->object); | |
668 arg.type = gtk_type_from_name ("GtkWidget"); | |
669 GTK_VALUE_OBJECT (arg) = GTK_OBJECT (the_obj->selection_text); | |
670 return (gtk_type_to_lisp (&arg)); | |
671 } | |
672 | |
673 DEFUN ("gtk-file-selection-main-vbox", Fgtk_file_selection_main_vbox, 1, 1, 0, /* | |
674 Access the `main_vbox' slot of OBJ, a GtkFileSelection object. | |
675 */ | |
676 (obj)) | |
677 { | |
678 GtkFileSelection *the_obj = NULL; | |
679 GtkArg arg; | |
680 | |
681 CHECK_GTK_OBJECT (obj); | |
682 | |
683 if (!GTK_IS_FILE_SELECTION (XGTK_OBJECT (obj)->object)) | |
684 { | |
685 signal_simple_error ("Object is not a GtkFileSelection", obj); | |
686 }; | |
687 | |
688 the_obj = GTK_FILE_SELECTION (XGTK_OBJECT (obj)->object); | |
689 arg.type = gtk_type_from_name ("GtkWidget"); | |
690 GTK_VALUE_OBJECT (arg) = GTK_OBJECT (the_obj->main_vbox); | |
691 return (gtk_type_to_lisp (&arg)); | |
692 } | |
693 | |
694 DEFUN ("gtk-file-selection-ok-button", Fgtk_file_selection_ok_button, 1, 1, 0, /* | |
695 Access the `ok_button' slot of OBJ, a GtkFileSelection object. | |
696 */ | |
697 (obj)) | |
698 { | |
699 GtkFileSelection *the_obj = NULL; | |
700 GtkArg arg; | |
701 | |
702 CHECK_GTK_OBJECT (obj); | |
703 | |
704 if (!GTK_IS_FILE_SELECTION (XGTK_OBJECT (obj)->object)) | |
705 { | |
706 signal_simple_error ("Object is not a GtkFileSelection", obj); | |
707 }; | |
708 | |
709 the_obj = GTK_FILE_SELECTION (XGTK_OBJECT (obj)->object); | |
710 arg.type = gtk_type_from_name ("GtkWidget"); | |
711 GTK_VALUE_OBJECT (arg) = GTK_OBJECT (the_obj->ok_button); | |
712 return (gtk_type_to_lisp (&arg)); | |
713 } | |
714 | |
715 DEFUN ("gtk-file-selection-cancel-button", Fgtk_file_selection_cancel_button, 1, 1, 0, /* | |
716 Access the `cancel_button' slot of OBJ, a GtkFileSelection object. | |
717 */ | |
718 (obj)) | |
719 { | |
720 GtkFileSelection *the_obj = NULL; | |
721 GtkArg arg; | |
722 | |
723 CHECK_GTK_OBJECT (obj); | |
724 | |
725 if (!GTK_IS_FILE_SELECTION (XGTK_OBJECT (obj)->object)) | |
726 { | |
727 signal_simple_error ("Object is not a GtkFileSelection", obj); | |
728 }; | |
729 | |
730 the_obj = GTK_FILE_SELECTION (XGTK_OBJECT (obj)->object); | |
731 arg.type = gtk_type_from_name ("GtkWidget"); | |
732 GTK_VALUE_OBJECT (arg) = GTK_OBJECT (the_obj->cancel_button); | |
733 return (gtk_type_to_lisp (&arg)); | |
734 } | |
735 | |
736 DEFUN ("gtk-file-selection-help-button", Fgtk_file_selection_help_button, 1, 1, 0, /* | |
737 Access the `help_button' slot of OBJ, a GtkFileSelection object. | |
738 */ | |
739 (obj)) | |
740 { | |
741 GtkFileSelection *the_obj = NULL; | |
742 GtkArg arg; | |
743 | |
744 CHECK_GTK_OBJECT (obj); | |
745 | |
746 if (!GTK_IS_FILE_SELECTION (XGTK_OBJECT (obj)->object)) | |
747 { | |
748 signal_simple_error ("Object is not a GtkFileSelection", obj); | |
749 }; | |
750 | |
751 the_obj = GTK_FILE_SELECTION (XGTK_OBJECT (obj)->object); | |
752 arg.type = gtk_type_from_name ("GtkWidget"); | |
753 GTK_VALUE_OBJECT (arg) = GTK_OBJECT (the_obj->help_button); | |
754 return (gtk_type_to_lisp (&arg)); | |
755 } | |
756 | |
757 DEFUN ("gtk-file-selection-action-area", Fgtk_file_selection_action_area, 1, 1, 0, /* | |
758 Access the `action_area' slot of OBJ, a GtkFileSelection object. | |
759 */ | |
760 (obj)) | |
761 { | |
762 GtkFileSelection *the_obj = NULL; | |
763 GtkArg arg; | |
764 | |
765 CHECK_GTK_OBJECT (obj); | |
766 | |
767 if (!GTK_IS_FILE_SELECTION (XGTK_OBJECT (obj)->object)) | |
768 { | |
769 signal_simple_error ("Object is not a GtkFileSelection", obj); | |
770 }; | |
771 | |
772 the_obj = GTK_FILE_SELECTION (XGTK_OBJECT (obj)->object); | |
773 arg.type = gtk_type_from_name ("GtkWidget"); | |
774 GTK_VALUE_OBJECT (arg) = GTK_OBJECT (the_obj->action_area); | |
775 return (gtk_type_to_lisp (&arg)); | |
776 } | |
777 | |
778 DEFUN ("gtk-font-selection-dialog-fontsel", Fgtk_font_selection_dialog_fontsel, 1, 1, 0, /* | |
779 Access the `fontsel' slot of OBJ, a GtkFontSelectionDialog object. | |
780 */ | |
781 (obj)) | |
782 { | |
783 GtkFontSelectionDialog *the_obj = NULL; | |
784 GtkArg arg; | |
785 | |
786 CHECK_GTK_OBJECT (obj); | |
787 | |
788 if (!GTK_IS_FONT_SELECTION_DIALOG (XGTK_OBJECT (obj)->object)) | |
789 { | |
790 signal_simple_error ("Object is not a GtkFontSelectionDialog", obj); | |
791 }; | |
792 | |
793 the_obj = GTK_FONT_SELECTION_DIALOG (XGTK_OBJECT (obj)->object); | |
794 arg.type = gtk_type_from_name ("GtkWidget"); | |
795 GTK_VALUE_OBJECT (arg) = GTK_OBJECT (the_obj->fontsel); | |
796 return (gtk_type_to_lisp (&arg)); | |
797 } | |
798 | |
799 DEFUN ("gtk-font-selection-dialog-main-vbox", Fgtk_font_selection_dialog_main_vbox, 1, 1, 0, /* | |
800 Access the `main_vbox' slot of OBJ, a GtkFontSelectionDialog object. | |
801 */ | |
802 (obj)) | |
803 { | |
804 GtkFontSelectionDialog *the_obj = NULL; | |
805 GtkArg arg; | |
806 | |
807 CHECK_GTK_OBJECT (obj); | |
808 | |
809 if (!GTK_IS_FONT_SELECTION_DIALOG (XGTK_OBJECT (obj)->object)) | |
810 { | |
811 signal_simple_error ("Object is not a GtkFontSelectionDialog", obj); | |
812 }; | |
813 | |
814 the_obj = GTK_FONT_SELECTION_DIALOG (XGTK_OBJECT (obj)->object); | |
815 arg.type = gtk_type_from_name ("GtkWidget"); | |
816 GTK_VALUE_OBJECT (arg) = GTK_OBJECT (the_obj->main_vbox); | |
817 return (gtk_type_to_lisp (&arg)); | |
818 } | |
819 | |
820 DEFUN ("gtk-font-selection-dialog-action-area", Fgtk_font_selection_dialog_action_area, 1, 1, 0, /* | |
821 Access the `action_area' slot of OBJ, a GtkFontSelectionDialog object. | |
822 */ | |
823 (obj)) | |
824 { | |
825 GtkFontSelectionDialog *the_obj = NULL; | |
826 GtkArg arg; | |
827 | |
828 CHECK_GTK_OBJECT (obj); | |
829 | |
830 if (!GTK_IS_FONT_SELECTION_DIALOG (XGTK_OBJECT (obj)->object)) | |
831 { | |
832 signal_simple_error ("Object is not a GtkFontSelectionDialog", obj); | |
833 }; | |
834 | |
835 the_obj = GTK_FONT_SELECTION_DIALOG (XGTK_OBJECT (obj)->object); | |
836 arg.type = gtk_type_from_name ("GtkWidget"); | |
837 GTK_VALUE_OBJECT (arg) = GTK_OBJECT (the_obj->action_area); | |
838 return (gtk_type_to_lisp (&arg)); | |
839 } | |
840 | |
841 DEFUN ("gtk-font-selection-dialog-ok-button", Fgtk_font_selection_dialog_ok_button, 1, 1, 0, /* | |
842 Access the `ok_button' slot of OBJ, a GtkFontSelectionDialog object. | |
843 */ | |
844 (obj)) | |
845 { | |
846 GtkFontSelectionDialog *the_obj = NULL; | |
847 GtkArg arg; | |
848 | |
849 CHECK_GTK_OBJECT (obj); | |
850 | |
851 if (!GTK_IS_FONT_SELECTION_DIALOG (XGTK_OBJECT (obj)->object)) | |
852 { | |
853 signal_simple_error ("Object is not a GtkFontSelectionDialog", obj); | |
854 }; | |
855 | |
856 the_obj = GTK_FONT_SELECTION_DIALOG (XGTK_OBJECT (obj)->object); | |
857 arg.type = gtk_type_from_name ("GtkWidget"); | |
858 GTK_VALUE_OBJECT (arg) = GTK_OBJECT (the_obj->ok_button); | |
859 return (gtk_type_to_lisp (&arg)); | |
860 } | |
861 | |
862 DEFUN ("gtk-font-selection-dialog-apply-button", Fgtk_font_selection_dialog_apply_button, 1, 1, 0, /* | |
863 Access the `apply_button' slot of OBJ, a GtkFontSelectionDialog object. | |
864 */ | |
865 (obj)) | |
866 { | |
867 GtkFontSelectionDialog *the_obj = NULL; | |
868 GtkArg arg; | |
869 | |
870 CHECK_GTK_OBJECT (obj); | |
871 | |
872 if (!GTK_IS_FONT_SELECTION_DIALOG (XGTK_OBJECT (obj)->object)) | |
873 { | |
874 signal_simple_error ("Object is not a GtkFontSelectionDialog", obj); | |
875 }; | |
876 | |
877 the_obj = GTK_FONT_SELECTION_DIALOG (XGTK_OBJECT (obj)->object); | |
878 arg.type = gtk_type_from_name ("GtkWidget"); | |
879 GTK_VALUE_OBJECT (arg) = GTK_OBJECT (the_obj->apply_button); | |
880 return (gtk_type_to_lisp (&arg)); | |
881 } | |
882 | |
883 DEFUN ("gtk-font-selection-dialog-cancel-button", Fgtk_font_selection_dialog_cancel_button, 1, 1, 0, /* | |
884 Access the `cancel_button' slot of OBJ, a GtkFontSelectionDialog object. | |
885 */ | |
886 (obj)) | |
887 { | |
888 GtkFontSelectionDialog *the_obj = NULL; | |
889 GtkArg arg; | |
890 | |
891 CHECK_GTK_OBJECT (obj); | |
892 | |
893 if (!GTK_IS_FONT_SELECTION_DIALOG (XGTK_OBJECT (obj)->object)) | |
894 { | |
895 signal_simple_error ("Object is not a GtkFontSelectionDialog", obj); | |
896 }; | |
897 | |
898 the_obj = GTK_FONT_SELECTION_DIALOG (XGTK_OBJECT (obj)->object); | |
899 arg.type = gtk_type_from_name ("GtkWidget"); | |
900 GTK_VALUE_OBJECT (arg) = GTK_OBJECT (the_obj->cancel_button); | |
901 return (gtk_type_to_lisp (&arg)); | |
902 } | |
903 | |
904 DEFUN ("gtk-color-selection-dialog-colorsel", Fgtk_color_selection_dialog_colorsel, 1, 1, 0, /* | |
905 Access the `colorsel' slot of OBJ, a GtkColorSelectionDialog object. | |
906 */ | |
907 (obj)) | |
908 { | |
909 GtkColorSelectionDialog *the_obj = NULL; | |
910 GtkArg arg; | |
911 | |
912 CHECK_GTK_OBJECT (obj); | |
913 | |
914 if (!GTK_IS_COLOR_SELECTION_DIALOG (XGTK_OBJECT (obj)->object)) | |
915 { | |
916 signal_simple_error ("Object is not a GtkColorSelectionDialog", obj); | |
917 }; | |
918 | |
919 the_obj = GTK_COLOR_SELECTION_DIALOG (XGTK_OBJECT (obj)->object); | |
920 arg.type = gtk_type_from_name ("GtkWidget"); | |
921 GTK_VALUE_OBJECT (arg) = GTK_OBJECT (the_obj->colorsel); | |
922 return (gtk_type_to_lisp (&arg)); | |
923 } | |
924 | |
925 DEFUN ("gtk-color-selection-dialog-main-vbox", Fgtk_color_selection_dialog_main_vbox, 1, 1, 0, /* | |
926 Access the `main_vbox' slot of OBJ, a GtkColorSelectionDialog object. | |
927 */ | |
928 (obj)) | |
929 { | |
930 GtkColorSelectionDialog *the_obj = NULL; | |
931 GtkArg arg; | |
932 | |
933 CHECK_GTK_OBJECT (obj); | |
934 | |
935 if (!GTK_IS_COLOR_SELECTION_DIALOG (XGTK_OBJECT (obj)->object)) | |
936 { | |
937 signal_simple_error ("Object is not a GtkColorSelectionDialog", obj); | |
938 }; | |
939 | |
940 the_obj = GTK_COLOR_SELECTION_DIALOG (XGTK_OBJECT (obj)->object); | |
941 arg.type = gtk_type_from_name ("GtkWidget"); | |
942 GTK_VALUE_OBJECT (arg) = GTK_OBJECT (the_obj->main_vbox); | |
943 return (gtk_type_to_lisp (&arg)); | |
944 } | |
945 | |
946 DEFUN ("gtk-color-selection-dialog-ok-button", Fgtk_color_selection_dialog_ok_button, 1, 1, 0, /* | |
947 Access the `ok_button' slot of OBJ, a GtkColorSelectionDialog object. | |
948 */ | |
949 (obj)) | |
950 { | |
951 GtkColorSelectionDialog *the_obj = NULL; | |
952 GtkArg arg; | |
953 | |
954 CHECK_GTK_OBJECT (obj); | |
955 | |
956 if (!GTK_IS_COLOR_SELECTION_DIALOG (XGTK_OBJECT (obj)->object)) | |
957 { | |
958 signal_simple_error ("Object is not a GtkColorSelectionDialog", obj); | |
959 }; | |
960 | |
961 the_obj = GTK_COLOR_SELECTION_DIALOG (XGTK_OBJECT (obj)->object); | |
962 arg.type = gtk_type_from_name ("GtkWidget"); | |
963 GTK_VALUE_OBJECT (arg) = GTK_OBJECT (the_obj->ok_button); | |
964 return (gtk_type_to_lisp (&arg)); | |
965 } | |
966 | |
967 DEFUN ("gtk-color-selection-dialog-reset-button", Fgtk_color_selection_dialog_reset_button, 1, 1, 0, /* | |
968 Access the `reset_button' slot of OBJ, a GtkColorSelectionDialog object. | |
969 */ | |
970 (obj)) | |
971 { | |
972 GtkColorSelectionDialog *the_obj = NULL; | |
973 GtkArg arg; | |
974 | |
975 CHECK_GTK_OBJECT (obj); | |
976 | |
977 if (!GTK_IS_COLOR_SELECTION_DIALOG (XGTK_OBJECT (obj)->object)) | |
978 { | |
979 signal_simple_error ("Object is not a GtkColorSelectionDialog", obj); | |
980 }; | |
981 | |
982 the_obj = GTK_COLOR_SELECTION_DIALOG (XGTK_OBJECT (obj)->object); | |
983 arg.type = gtk_type_from_name ("GtkWidget"); | |
984 GTK_VALUE_OBJECT (arg) = GTK_OBJECT (the_obj->reset_button); | |
985 return (gtk_type_to_lisp (&arg)); | |
986 } | |
987 | |
988 DEFUN ("gtk-color-selection-dialog-cancel-button", Fgtk_color_selection_dialog_cancel_button, 1, 1, 0, /* | |
989 Access the `cancel_button' slot of OBJ, a GtkColorSelectionDialog object. | |
990 */ | |
991 (obj)) | |
992 { | |
993 GtkColorSelectionDialog *the_obj = NULL; | |
994 GtkArg arg; | |
995 | |
996 CHECK_GTK_OBJECT (obj); | |
997 | |
998 if (!GTK_IS_COLOR_SELECTION_DIALOG (XGTK_OBJECT (obj)->object)) | |
999 { | |
1000 signal_simple_error ("Object is not a GtkColorSelectionDialog", obj); | |
1001 }; | |
1002 | |
1003 the_obj = GTK_COLOR_SELECTION_DIALOG (XGTK_OBJECT (obj)->object); | |
1004 arg.type = gtk_type_from_name ("GtkWidget"); | |
1005 GTK_VALUE_OBJECT (arg) = GTK_OBJECT (the_obj->cancel_button); | |
1006 return (gtk_type_to_lisp (&arg)); | |
1007 } | |
1008 | |
1009 DEFUN ("gtk-color-selection-dialog-help-button", Fgtk_color_selection_dialog_help_button, 1, 1, 0, /* | |
1010 Access the `help_button' slot of OBJ, a GtkColorSelectionDialog object. | |
1011 */ | |
1012 (obj)) | |
1013 { | |
1014 GtkColorSelectionDialog *the_obj = NULL; | |
1015 GtkArg arg; | |
1016 | |
1017 CHECK_GTK_OBJECT (obj); | |
1018 | |
1019 if (!GTK_IS_COLOR_SELECTION_DIALOG (XGTK_OBJECT (obj)->object)) | |
1020 { | |
1021 signal_simple_error ("Object is not a GtkColorSelectionDialog", obj); | |
1022 }; | |
1023 | |
1024 the_obj = GTK_COLOR_SELECTION_DIALOG (XGTK_OBJECT (obj)->object); | |
1025 arg.type = gtk_type_from_name ("GtkWidget"); | |
1026 GTK_VALUE_OBJECT (arg) = GTK_OBJECT (the_obj->help_button); | |
1027 return (gtk_type_to_lisp (&arg)); | |
1028 } | |
1029 | |
1030 DEFUN ("gtk-dialog-vbox", Fgtk_dialog_vbox, 1, 1, 0, /* | |
1031 Access the `vbox' slot of OBJ, a GtkDialog object. | |
1032 */ | |
1033 (obj)) | |
1034 { | |
1035 GtkDialog *the_obj = NULL; | |
1036 GtkArg arg; | |
1037 | |
1038 CHECK_GTK_OBJECT (obj); | |
1039 | |
1040 if (!GTK_IS_DIALOG (XGTK_OBJECT (obj)->object)) | |
1041 { | |
1042 signal_simple_error ("Object is not a GtkDialog", obj); | |
1043 }; | |
1044 | |
1045 the_obj = GTK_DIALOG (XGTK_OBJECT (obj)->object); | |
1046 arg.type = gtk_type_from_name ("GtkWidget"); | |
1047 GTK_VALUE_OBJECT (arg) = GTK_OBJECT (the_obj->vbox); | |
1048 return (gtk_type_to_lisp (&arg)); | |
1049 } | |
1050 | |
1051 DEFUN ("gtk-dialog-action-area", Fgtk_dialog_action_area, 1, 1, 0, /* | |
1052 Access the `action_area' slot of OBJ, a GtkDialog object. | |
1053 */ | |
1054 (obj)) | |
1055 { | |
1056 GtkDialog *the_obj = NULL; | |
1057 GtkArg arg; | |
1058 | |
1059 CHECK_GTK_OBJECT (obj); | |
1060 | |
1061 if (!GTK_IS_DIALOG (XGTK_OBJECT (obj)->object)) | |
1062 { | |
1063 signal_simple_error ("Object is not a GtkDialog", obj); | |
1064 }; | |
1065 | |
1066 the_obj = GTK_DIALOG (XGTK_OBJECT (obj)->object); | |
1067 arg.type = gtk_type_from_name ("GtkWidget"); | |
1068 GTK_VALUE_OBJECT (arg) = GTK_OBJECT (the_obj->action_area); | |
1069 return (gtk_type_to_lisp (&arg)); | |
1070 } | |
1071 | |
1072 DEFUN ("gtk-input-dialog-close-button", Fgtk_input_dialog_close_button, 1, 1, 0, /* | |
1073 Access the `close_button' slot of OBJ, a GtkInputDialog object. | |
1074 */ | |
1075 (obj)) | |
1076 { | |
1077 GtkInputDialog *the_obj = NULL; | |
1078 GtkArg arg; | |
1079 | |
1080 CHECK_GTK_OBJECT (obj); | |
1081 | |
1082 if (!GTK_IS_INPUT_DIALOG (XGTK_OBJECT (obj)->object)) | |
1083 { | |
1084 signal_simple_error ("Object is not a GtkInputDialog", obj); | |
1085 }; | |
1086 | |
1087 the_obj = GTK_INPUT_DIALOG (XGTK_OBJECT (obj)->object); | |
1088 arg.type = gtk_type_from_name ("GtkWidget"); | |
1089 GTK_VALUE_OBJECT (arg) = GTK_OBJECT (the_obj->close_button); | |
1090 return (gtk_type_to_lisp (&arg)); | |
1091 } | |
1092 | |
1093 DEFUN ("gtk-input-dialog-save-button", Fgtk_input_dialog_save_button, 1, 1, 0, /* | |
1094 Access the `save_button' slot of OBJ, a GtkInputDialog object. | |
1095 */ | |
1096 (obj)) | |
1097 { | |
1098 GtkInputDialog *the_obj = NULL; | |
1099 GtkArg arg; | |
1100 | |
1101 CHECK_GTK_OBJECT (obj); | |
1102 | |
1103 if (!GTK_IS_INPUT_DIALOG (XGTK_OBJECT (obj)->object)) | |
1104 { | |
1105 signal_simple_error ("Object is not a GtkInputDialog", obj); | |
1106 }; | |
1107 | |
1108 the_obj = GTK_INPUT_DIALOG (XGTK_OBJECT (obj)->object); | |
1109 arg.type = gtk_type_from_name ("GtkWidget"); | |
1110 GTK_VALUE_OBJECT (arg) = GTK_OBJECT (the_obj->save_button); | |
1111 return (gtk_type_to_lisp (&arg)); | |
1112 } | |
1113 | |
1114 DEFUN ("gtk-plug-socket-window", Fgtk_plug_socket_window, 1, 1, 0, /* | |
1115 Access the `socket_window' slot of OBJ, a GtkPlug object. | |
1116 */ | |
1117 (obj)) | |
1118 { | |
1119 GtkPlug *the_obj = NULL; | |
1120 GtkArg arg; | |
1121 | |
1122 CHECK_GTK_OBJECT (obj); | |
1123 | |
1124 if (!GTK_IS_PLUG (XGTK_OBJECT (obj)->object)) | |
1125 { | |
1126 signal_simple_error ("Object is not a GtkPlug", obj); | |
1127 }; | |
1128 | |
1129 the_obj = GTK_PLUG (XGTK_OBJECT (obj)->object); | |
1130 arg.type = gtk_type_from_name ("GdkWindow"); | |
1131 GTK_VALUE_BOXED (arg) = (void *)the_obj->socket_window; | |
1132 return (gtk_type_to_lisp (&arg)); | |
1133 } | |
1134 | |
1135 DEFUN ("gtk-plug-same-app", Fgtk_plug_same_app, 1, 1, 0, /* | |
1136 Access the `same_app' slot of OBJ, a GtkPlug object. | |
1137 */ | |
1138 (obj)) | |
1139 { | |
1140 GtkPlug *the_obj = NULL; | |
1141 GtkArg arg; | |
1142 | |
1143 CHECK_GTK_OBJECT (obj); | |
1144 | |
1145 if (!GTK_IS_PLUG (XGTK_OBJECT (obj)->object)) | |
1146 { | |
1147 signal_simple_error ("Object is not a GtkPlug", obj); | |
1148 }; | |
1149 | |
1150 the_obj = GTK_PLUG (XGTK_OBJECT (obj)->object); | |
1151 arg.type = gtk_type_from_name ("gint"); | |
1152 GTK_VALUE_INT (arg) = the_obj->same_app; | |
1153 return (gtk_type_to_lisp (&arg)); | |
1154 } | |
1155 | |
1156 DEFUN ("gtk-object-flags", Fgtk_object_flags, 1, 1, 0, /* | |
1157 Access the `flags' slot of OBJ, a GtkObject object. | |
1158 */ | |
1159 (obj)) | |
1160 { | |
1161 GtkObject *the_obj = NULL; | |
1162 GtkArg arg; | |
1163 | |
1164 CHECK_GTK_OBJECT (obj); | |
1165 | |
1166 if (!GTK_IS_OBJECT (XGTK_OBJECT (obj)->object)) | |
1167 { | |
1168 signal_simple_error ("Object is not a GtkObject", obj); | |
1169 }; | |
1170 | |
1171 the_obj = GTK_OBJECT (XGTK_OBJECT (obj)->object); | |
1172 arg.type = gtk_type_from_name ("guint"); | |
1173 GTK_VALUE_UINT (arg) = the_obj->flags; | |
1174 return (gtk_type_to_lisp (&arg)); | |
1175 } | |
1176 | |
1177 DEFUN ("gtk-object-ref-count", Fgtk_object_ref_count, 1, 1, 0, /* | |
1178 Access the `ref_count' slot of OBJ, a GtkObject object. | |
1179 */ | |
1180 (obj)) | |
1181 { | |
1182 GtkObject *the_obj = NULL; | |
1183 GtkArg arg; | |
1184 | |
1185 CHECK_GTK_OBJECT (obj); | |
1186 | |
1187 if (!GTK_IS_OBJECT (XGTK_OBJECT (obj)->object)) | |
1188 { | |
1189 signal_simple_error ("Object is not a GtkObject", obj); | |
1190 }; | |
1191 | |
1192 the_obj = GTK_OBJECT (XGTK_OBJECT (obj)->object); | |
1193 arg.type = gtk_type_from_name ("guint"); | |
1194 GTK_VALUE_UINT (arg) = the_obj->ref_count; | |
1195 return (gtk_type_to_lisp (&arg)); | |
1196 } | |
1197 | |
1198 DEFUN ("gtk-paned-child1", Fgtk_paned_child1, 1, 1, 0, /* | |
1199 Access the `child1' slot of OBJ, a GtkPaned object. | |
1200 */ | |
1201 (obj)) | |
1202 { | |
1203 GtkPaned *the_obj = NULL; | |
1204 GtkArg arg; | |
1205 | |
1206 CHECK_GTK_OBJECT (obj); | |
1207 | |
1208 if (!GTK_IS_PANED (XGTK_OBJECT (obj)->object)) | |
1209 { | |
1210 signal_simple_error ("Object is not a GtkPaned", obj); | |
1211 }; | |
1212 | |
1213 the_obj = GTK_PANED (XGTK_OBJECT (obj)->object); | |
1214 arg.type = gtk_type_from_name ("GtkWidget"); | |
1215 GTK_VALUE_OBJECT (arg) = GTK_OBJECT (the_obj->child1); | |
1216 return (gtk_type_to_lisp (&arg)); | |
1217 } | |
1218 | |
1219 DEFUN ("gtk-paned-child2", Fgtk_paned_child2, 1, 1, 0, /* | |
1220 Access the `child2' slot of OBJ, a GtkPaned object. | |
1221 */ | |
1222 (obj)) | |
1223 { | |
1224 GtkPaned *the_obj = NULL; | |
1225 GtkArg arg; | |
1226 | |
1227 CHECK_GTK_OBJECT (obj); | |
1228 | |
1229 if (!GTK_IS_PANED (XGTK_OBJECT (obj)->object)) | |
1230 { | |
1231 signal_simple_error ("Object is not a GtkPaned", obj); | |
1232 }; | |
1233 | |
1234 the_obj = GTK_PANED (XGTK_OBJECT (obj)->object); | |
1235 arg.type = gtk_type_from_name ("GtkWidget"); | |
1236 GTK_VALUE_OBJECT (arg) = GTK_OBJECT (the_obj->child2); | |
1237 return (gtk_type_to_lisp (&arg)); | |
1238 } | |
1239 | |
1240 DEFUN ("gtk-paned-child1-resize", Fgtk_paned_child1_resize, 1, 1, 0, /* | |
1241 Access the `child1_resize' slot of OBJ, a GtkPaned object. | |
1242 */ | |
1243 (obj)) | |
1244 { | |
1245 GtkPaned *the_obj = NULL; | |
1246 GtkArg arg; | |
1247 | |
1248 CHECK_GTK_OBJECT (obj); | |
1249 | |
1250 if (!GTK_IS_PANED (XGTK_OBJECT (obj)->object)) | |
1251 { | |
1252 signal_simple_error ("Object is not a GtkPaned", obj); | |
1253 }; | |
1254 | |
1255 the_obj = GTK_PANED (XGTK_OBJECT (obj)->object); | |
1256 arg.type = gtk_type_from_name ("gboolean"); | |
1257 GTK_VALUE_BOOL (arg) = the_obj->child1_resize; | |
1258 return (gtk_type_to_lisp (&arg)); | |
1259 } | |
1260 | |
1261 DEFUN ("gtk-paned-child2-resize", Fgtk_paned_child2_resize, 1, 1, 0, /* | |
1262 Access the `child2_resize' slot of OBJ, a GtkPaned object. | |
1263 */ | |
1264 (obj)) | |
1265 { | |
1266 GtkPaned *the_obj = NULL; | |
1267 GtkArg arg; | |
1268 | |
1269 CHECK_GTK_OBJECT (obj); | |
1270 | |
1271 if (!GTK_IS_PANED (XGTK_OBJECT (obj)->object)) | |
1272 { | |
1273 signal_simple_error ("Object is not a GtkPaned", obj); | |
1274 }; | |
1275 | |
1276 the_obj = GTK_PANED (XGTK_OBJECT (obj)->object); | |
1277 arg.type = gtk_type_from_name ("gboolean"); | |
1278 GTK_VALUE_BOOL (arg) = the_obj->child2_resize; | |
1279 return (gtk_type_to_lisp (&arg)); | |
1280 } | |
1281 | |
1282 DEFUN ("gtk-paned-child1-shrink", Fgtk_paned_child1_shrink, 1, 1, 0, /* | |
1283 Access the `child1_shrink' slot of OBJ, a GtkPaned object. | |
1284 */ | |
1285 (obj)) | |
1286 { | |
1287 GtkPaned *the_obj = NULL; | |
1288 GtkArg arg; | |
1289 | |
1290 CHECK_GTK_OBJECT (obj); | |
1291 | |
1292 if (!GTK_IS_PANED (XGTK_OBJECT (obj)->object)) | |
1293 { | |
1294 signal_simple_error ("Object is not a GtkPaned", obj); | |
1295 }; | |
1296 | |
1297 the_obj = GTK_PANED (XGTK_OBJECT (obj)->object); | |
1298 arg.type = gtk_type_from_name ("gboolean"); | |
1299 GTK_VALUE_BOOL (arg) = the_obj->child1_shrink; | |
1300 return (gtk_type_to_lisp (&arg)); | |
1301 } | |
1302 | |
1303 DEFUN ("gtk-paned-child2-shrink", Fgtk_paned_child2_shrink, 1, 1, 0, /* | |
1304 Access the `child2_shrink' slot of OBJ, a GtkPaned object. | |
1305 */ | |
1306 (obj)) | |
1307 { | |
1308 GtkPaned *the_obj = NULL; | |
1309 GtkArg arg; | |
1310 | |
1311 CHECK_GTK_OBJECT (obj); | |
1312 | |
1313 if (!GTK_IS_PANED (XGTK_OBJECT (obj)->object)) | |
1314 { | |
1315 signal_simple_error ("Object is not a GtkPaned", obj); | |
1316 }; | |
1317 | |
1318 the_obj = GTK_PANED (XGTK_OBJECT (obj)->object); | |
1319 arg.type = gtk_type_from_name ("gboolean"); | |
1320 GTK_VALUE_BOOL (arg) = the_obj->child2_shrink; | |
1321 return (gtk_type_to_lisp (&arg)); | |
1322 } | |
1323 | |
1324 DEFUN ("gtk-clist-rows", Fgtk_clist_rows, 1, 1, 0, /* | |
1325 Access the `rows' slot of OBJ, a GtkCList object. | |
1326 */ | |
1327 (obj)) | |
1328 { | |
1329 GtkCList *the_obj = NULL; | |
1330 GtkArg arg; | |
1331 | |
1332 CHECK_GTK_OBJECT (obj); | |
1333 | |
1334 if (!GTK_IS_CLIST (XGTK_OBJECT (obj)->object)) | |
1335 { | |
1336 signal_simple_error ("Object is not a GtkCList", obj); | |
1337 }; | |
1338 | |
1339 the_obj = GTK_CLIST (XGTK_OBJECT (obj)->object); | |
1340 arg.type = gtk_type_from_name ("gint"); | |
1341 GTK_VALUE_INT (arg) = the_obj->rows; | |
1342 return (gtk_type_to_lisp (&arg)); | |
1343 } | |
1344 | |
1345 DEFUN ("gtk-clist-columns", Fgtk_clist_columns, 1, 1, 0, /* | |
1346 Access the `columns' slot of OBJ, a GtkCList object. | |
1347 */ | |
1348 (obj)) | |
1349 { | |
1350 GtkCList *the_obj = NULL; | |
1351 GtkArg arg; | |
1352 | |
1353 CHECK_GTK_OBJECT (obj); | |
1354 | |
1355 if (!GTK_IS_CLIST (XGTK_OBJECT (obj)->object)) | |
1356 { | |
1357 signal_simple_error ("Object is not a GtkCList", obj); | |
1358 }; | |
1359 | |
1360 the_obj = GTK_CLIST (XGTK_OBJECT (obj)->object); | |
1361 arg.type = gtk_type_from_name ("gint"); | |
1362 GTK_VALUE_INT (arg) = the_obj->columns; | |
1363 return (gtk_type_to_lisp (&arg)); | |
1364 } | |
1365 | |
1366 DEFUN ("gtk-clist-hadjustment", Fgtk_clist_hadjustment, 1, 1, 0, /* | |
1367 Access the `hadjustment' slot of OBJ, a GtkCList object. | |
1368 */ | |
1369 (obj)) | |
1370 { | |
1371 GtkCList *the_obj = NULL; | |
1372 GtkArg arg; | |
1373 | |
1374 CHECK_GTK_OBJECT (obj); | |
1375 | |
1376 if (!GTK_IS_CLIST (XGTK_OBJECT (obj)->object)) | |
1377 { | |
1378 signal_simple_error ("Object is not a GtkCList", obj); | |
1379 }; | |
1380 | |
1381 the_obj = GTK_CLIST (XGTK_OBJECT (obj)->object); | |
1382 arg.type = gtk_type_from_name ("GtkAdjustment"); | |
1383 GTK_VALUE_OBJECT (arg) = GTK_OBJECT (the_obj->hadjustment); | |
1384 return (gtk_type_to_lisp (&arg)); | |
1385 } | |
1386 | |
1387 DEFUN ("gtk-clist-vadjustment", Fgtk_clist_vadjustment, 1, 1, 0, /* | |
1388 Access the `vadjustment' slot of OBJ, a GtkCList object. | |
1389 */ | |
1390 (obj)) | |
1391 { | |
1392 GtkCList *the_obj = NULL; | |
1393 GtkArg arg; | |
1394 | |
1395 CHECK_GTK_OBJECT (obj); | |
1396 | |
1397 if (!GTK_IS_CLIST (XGTK_OBJECT (obj)->object)) | |
1398 { | |
1399 signal_simple_error ("Object is not a GtkCList", obj); | |
1400 }; | |
1401 | |
1402 the_obj = GTK_CLIST (XGTK_OBJECT (obj)->object); | |
1403 arg.type = gtk_type_from_name ("GtkAdjustment"); | |
1404 GTK_VALUE_OBJECT (arg) = GTK_OBJECT (the_obj->vadjustment); | |
1405 return (gtk_type_to_lisp (&arg)); | |
1406 } | |
1407 | |
1408 DEFUN ("gtk-clist-sort-type", Fgtk_clist_sort_type, 1, 1, 0, /* | |
1409 Access the `sort_type' slot of OBJ, a GtkCList object. | |
1410 */ | |
1411 (obj)) | |
1412 { | |
1413 GtkCList *the_obj = NULL; | |
1414 GtkArg arg; | |
1415 | |
1416 CHECK_GTK_OBJECT (obj); | |
1417 | |
1418 if (!GTK_IS_CLIST (XGTK_OBJECT (obj)->object)) | |
1419 { | |
1420 signal_simple_error ("Object is not a GtkCList", obj); | |
1421 }; | |
1422 | |
1423 the_obj = GTK_CLIST (XGTK_OBJECT (obj)->object); | |
1424 arg.type = gtk_type_from_name ("GtkSortType"); | |
1425 GTK_VALUE_ENUM (arg) = the_obj->sort_type; | |
1426 return (gtk_type_to_lisp (&arg)); | |
1427 } | |
1428 | |
1429 DEFUN ("gtk-clist-focus-row", Fgtk_clist_focus_row, 1, 1, 0, /* | |
1430 Access the `focus_row' slot of OBJ, a GtkCList object. | |
1431 */ | |
1432 (obj)) | |
1433 { | |
1434 GtkCList *the_obj = NULL; | |
1435 GtkArg arg; | |
1436 | |
1437 CHECK_GTK_OBJECT (obj); | |
1438 | |
1439 if (!GTK_IS_CLIST (XGTK_OBJECT (obj)->object)) | |
1440 { | |
1441 signal_simple_error ("Object is not a GtkCList", obj); | |
1442 }; | |
1443 | |
1444 the_obj = GTK_CLIST (XGTK_OBJECT (obj)->object); | |
1445 arg.type = gtk_type_from_name ("gint"); | |
1446 GTK_VALUE_INT (arg) = the_obj->focus_row; | |
1447 return (gtk_type_to_lisp (&arg)); | |
1448 } | |
1449 | |
1450 DEFUN ("gtk-clist-sort-column", Fgtk_clist_sort_column, 1, 1, 0, /* | |
1451 Access the `sort_column' slot of OBJ, a GtkCList object. | |
1452 */ | |
1453 (obj)) | |
1454 { | |
1455 GtkCList *the_obj = NULL; | |
1456 GtkArg arg; | |
1457 | |
1458 CHECK_GTK_OBJECT (obj); | |
1459 | |
1460 if (!GTK_IS_CLIST (XGTK_OBJECT (obj)->object)) | |
1461 { | |
1462 signal_simple_error ("Object is not a GtkCList", obj); | |
1463 }; | |
1464 | |
1465 the_obj = GTK_CLIST (XGTK_OBJECT (obj)->object); | |
1466 arg.type = gtk_type_from_name ("gint"); | |
1467 GTK_VALUE_INT (arg) = the_obj->sort_column; | |
1468 return (gtk_type_to_lisp (&arg)); | |
1469 } | |
1470 | |
1471 DEFUN ("gtk-list-children", Fgtk_list_children, 1, 1, 0, /* | |
1472 Access the `children' slot of OBJ, a GtkList object. | |
1473 */ | |
1474 (obj)) | |
1475 { | |
1476 GtkList *the_obj = NULL; | |
1477 GtkArg arg; | |
1478 | |
1479 CHECK_GTK_OBJECT (obj); | |
1480 | |
1481 if (!GTK_IS_LIST (XGTK_OBJECT (obj)->object)) | |
1482 { | |
1483 signal_simple_error ("Object is not a GtkList", obj); | |
1484 }; | |
1485 | |
1486 the_obj = GTK_LIST (XGTK_OBJECT (obj)->object); | |
1487 arg.type = gtk_type_from_name ("GtkListOfObject"); | |
1488 GTK_VALUE_POINTER (arg) = the_obj->children; | |
1489 return (gtk_type_to_lisp (&arg)); | |
1490 } | |
1491 | |
1492 DEFUN ("gtk-list-selection", Fgtk_list_selection, 1, 1, 0, /* | |
1493 Access the `selection' slot of OBJ, a GtkList object. | |
1494 */ | |
1495 (obj)) | |
1496 { | |
1497 GtkList *the_obj = NULL; | |
1498 GtkArg arg; | |
1499 | |
1500 CHECK_GTK_OBJECT (obj); | |
1501 | |
1502 if (!GTK_IS_LIST (XGTK_OBJECT (obj)->object)) | |
1503 { | |
1504 signal_simple_error ("Object is not a GtkList", obj); | |
1505 }; | |
1506 | |
1507 the_obj = GTK_LIST (XGTK_OBJECT (obj)->object); | |
1508 arg.type = gtk_type_from_name ("GtkListOfObject"); | |
1509 GTK_VALUE_POINTER (arg) = the_obj->selection; | |
1510 return (gtk_type_to_lisp (&arg)); | |
1511 } | |
1512 | |
1513 DEFUN ("gtk-tree-children", Fgtk_tree_children, 1, 1, 0, /* | |
1514 Access the `children' slot of OBJ, a GtkTree object. | |
1515 */ | |
1516 (obj)) | |
1517 { | |
1518 GtkTree *the_obj = NULL; | |
1519 GtkArg arg; | |
1520 | |
1521 CHECK_GTK_OBJECT (obj); | |
1522 | |
1523 if (!GTK_IS_TREE (XGTK_OBJECT (obj)->object)) | |
1524 { | |
1525 signal_simple_error ("Object is not a GtkTree", obj); | |
1526 }; | |
1527 | |
1528 the_obj = GTK_TREE (XGTK_OBJECT (obj)->object); | |
1529 arg.type = gtk_type_from_name ("GtkListOfObject"); | |
1530 GTK_VALUE_POINTER (arg) = the_obj->children; | |
1531 return (gtk_type_to_lisp (&arg)); | |
1532 } | |
1533 | |
1534 DEFUN ("gtk-tree-root-tree", Fgtk_tree_root_tree, 1, 1, 0, /* | |
1535 Access the `root_tree' slot of OBJ, a GtkTree object. | |
1536 */ | |
1537 (obj)) | |
1538 { | |
1539 GtkTree *the_obj = NULL; | |
1540 GtkArg arg; | |
1541 | |
1542 CHECK_GTK_OBJECT (obj); | |
1543 | |
1544 if (!GTK_IS_TREE (XGTK_OBJECT (obj)->object)) | |
1545 { | |
1546 signal_simple_error ("Object is not a GtkTree", obj); | |
1547 }; | |
1548 | |
1549 the_obj = GTK_TREE (XGTK_OBJECT (obj)->object); | |
1550 arg.type = gtk_type_from_name ("GtkTree"); | |
1551 GTK_VALUE_OBJECT (arg) = GTK_OBJECT (the_obj->root_tree); | |
1552 return (gtk_type_to_lisp (&arg)); | |
1553 } | |
1554 | |
1555 DEFUN ("gtk-tree-tree-owner", Fgtk_tree_tree_owner, 1, 1, 0, /* | |
1556 Access the `tree_owner' slot of OBJ, a GtkTree object. | |
1557 */ | |
1558 (obj)) | |
1559 { | |
1560 GtkTree *the_obj = NULL; | |
1561 GtkArg arg; | |
1562 | |
1563 CHECK_GTK_OBJECT (obj); | |
1564 | |
1565 if (!GTK_IS_TREE (XGTK_OBJECT (obj)->object)) | |
1566 { | |
1567 signal_simple_error ("Object is not a GtkTree", obj); | |
1568 }; | |
1569 | |
1570 the_obj = GTK_TREE (XGTK_OBJECT (obj)->object); | |
1571 arg.type = gtk_type_from_name ("GtkWidget"); | |
1572 GTK_VALUE_OBJECT (arg) = GTK_OBJECT (the_obj->tree_owner); | |
1573 return (gtk_type_to_lisp (&arg)); | |
1574 } | |
1575 | |
1576 DEFUN ("gtk-tree-selection", Fgtk_tree_selection, 1, 1, 0, /* | |
1577 Access the `selection' slot of OBJ, a GtkTree object. | |
1578 */ | |
1579 (obj)) | |
1580 { | |
1581 GtkTree *the_obj = NULL; | |
1582 GtkArg arg; | |
1583 | |
1584 CHECK_GTK_OBJECT (obj); | |
1585 | |
1586 if (!GTK_IS_TREE (XGTK_OBJECT (obj)->object)) | |
1587 { | |
1588 signal_simple_error ("Object is not a GtkTree", obj); | |
1589 }; | |
1590 | |
1591 the_obj = GTK_TREE (XGTK_OBJECT (obj)->object); | |
1592 arg.type = gtk_type_from_name ("GtkListOfObject"); | |
1593 GTK_VALUE_POINTER (arg) = the_obj->selection; | |
1594 return (gtk_type_to_lisp (&arg)); | |
1595 } | |
1596 | |
1597 DEFUN ("gtk-tree-item-subtree", Fgtk_tree_item_subtree, 1, 1, 0, /* | |
1598 Access the `subtree' slot of OBJ, a GtkTreeItem object. | |
1599 */ | |
1600 (obj)) | |
1601 { | |
1602 GtkTreeItem *the_obj = NULL; | |
1603 GtkArg arg; | |
1604 | |
1605 CHECK_GTK_OBJECT (obj); | |
1606 | |
1607 if (!GTK_IS_TREE_ITEM (XGTK_OBJECT (obj)->object)) | |
1608 { | |
1609 signal_simple_error ("Object is not a GtkTreeItem", obj); | |
1610 }; | |
1611 | |
1612 the_obj = GTK_TREE_ITEM (XGTK_OBJECT (obj)->object); | |
1613 arg.type = gtk_type_from_name ("GtkWidget"); | |
1614 GTK_VALUE_OBJECT (arg) = GTK_OBJECT (the_obj->subtree); | |
1615 return (gtk_type_to_lisp (&arg)); | |
1616 } | |
1617 | |
1618 DEFUN ("gtk-scrolled-window-hscrollbar", Fgtk_scrolled_window_hscrollbar, 1, 1, 0, /* | |
1619 Access the `hscrollbar' slot of OBJ, a GtkScrolledWindow object. | |
1620 */ | |
1621 (obj)) | |
1622 { | |
1623 GtkScrolledWindow *the_obj = NULL; | |
1624 GtkArg arg; | |
1625 | |
1626 CHECK_GTK_OBJECT (obj); | |
1627 | |
1628 if (!GTK_IS_SCROLLED_WINDOW (XGTK_OBJECT (obj)->object)) | |
1629 { | |
1630 signal_simple_error ("Object is not a GtkScrolledWindow", obj); | |
1631 }; | |
1632 | |
1633 the_obj = GTK_SCROLLED_WINDOW (XGTK_OBJECT (obj)->object); | |
1634 arg.type = gtk_type_from_name ("GtkWidget"); | |
1635 GTK_VALUE_OBJECT (arg) = GTK_OBJECT (the_obj->hscrollbar); | |
1636 return (gtk_type_to_lisp (&arg)); | |
1637 } | |
1638 | |
1639 DEFUN ("gtk-scrolled-window-vscrollbar", Fgtk_scrolled_window_vscrollbar, 1, 1, 0, /* | |
1640 Access the `vscrollbar' slot of OBJ, a GtkScrolledWindow object. | |
1641 */ | |
1642 (obj)) | |
1643 { | |
1644 GtkScrolledWindow *the_obj = NULL; | |
1645 GtkArg arg; | |
1646 | |
1647 CHECK_GTK_OBJECT (obj); | |
1648 | |
1649 if (!GTK_IS_SCROLLED_WINDOW (XGTK_OBJECT (obj)->object)) | |
1650 { | |
1651 signal_simple_error ("Object is not a GtkScrolledWindow", obj); | |
1652 }; | |
1653 | |
1654 the_obj = GTK_SCROLLED_WINDOW (XGTK_OBJECT (obj)->object); | |
1655 arg.type = gtk_type_from_name ("GtkWidget"); | |
1656 GTK_VALUE_OBJECT (arg) = GTK_OBJECT (the_obj->vscrollbar); | |
1657 return (gtk_type_to_lisp (&arg)); | |
1658 } | |
1659 | |
1660 DEFUN ("gtk-scrolled-window-hscrollbar-visible", Fgtk_scrolled_window_hscrollbar_visible, 1, 1, 0, /* | |
1661 Access the `hscrollbar_visible' slot of OBJ, a GtkScrolledWindow object. | |
1662 */ | |
1663 (obj)) | |
1664 { | |
1665 GtkScrolledWindow *the_obj = NULL; | |
1666 GtkArg arg; | |
1667 | |
1668 CHECK_GTK_OBJECT (obj); | |
1669 | |
1670 if (!GTK_IS_SCROLLED_WINDOW (XGTK_OBJECT (obj)->object)) | |
1671 { | |
1672 signal_simple_error ("Object is not a GtkScrolledWindow", obj); | |
1673 }; | |
1674 | |
1675 the_obj = GTK_SCROLLED_WINDOW (XGTK_OBJECT (obj)->object); | |
1676 arg.type = gtk_type_from_name ("gboolean"); | |
1677 GTK_VALUE_BOOL (arg) = the_obj->hscrollbar_visible; | |
1678 return (gtk_type_to_lisp (&arg)); | |
1679 } | |
1680 | |
1681 DEFUN ("gtk-scrolled-window-vscrollbar-visible", Fgtk_scrolled_window_vscrollbar_visible, 1, 1, 0, /* | |
1682 Access the `vscrollbar_visible' slot of OBJ, a GtkScrolledWindow object. | |
1683 */ | |
1684 (obj)) | |
1685 { | |
1686 GtkScrolledWindow *the_obj = NULL; | |
1687 GtkArg arg; | |
1688 | |
1689 CHECK_GTK_OBJECT (obj); | |
1690 | |
1691 if (!GTK_IS_SCROLLED_WINDOW (XGTK_OBJECT (obj)->object)) | |
1692 { | |
1693 signal_simple_error ("Object is not a GtkScrolledWindow", obj); | |
1694 }; | |
1695 | |
1696 the_obj = GTK_SCROLLED_WINDOW (XGTK_OBJECT (obj)->object); | |
1697 arg.type = gtk_type_from_name ("gboolean"); | |
1698 GTK_VALUE_BOOL (arg) = the_obj->vscrollbar_visible; | |
1699 return (gtk_type_to_lisp (&arg)); | |
1700 } | |
1701 | |
1702 void syms_of_widget_accessors (void) | |
1703 { | |
1704 DEFSUBR (Fgtk_scrolled_window_vscrollbar_visible); | |
1705 DEFSUBR (Fgtk_scrolled_window_hscrollbar_visible); | |
1706 DEFSUBR (Fgtk_scrolled_window_vscrollbar); | |
1707 DEFSUBR (Fgtk_scrolled_window_hscrollbar); | |
1708 DEFSUBR (Fgtk_tree_item_subtree); | |
1709 DEFSUBR (Fgtk_tree_selection); | |
1710 DEFSUBR (Fgtk_tree_tree_owner); | |
1711 DEFSUBR (Fgtk_tree_root_tree); | |
1712 DEFSUBR (Fgtk_tree_children); | |
1713 DEFSUBR (Fgtk_list_selection); | |
1714 DEFSUBR (Fgtk_list_children); | |
1715 DEFSUBR (Fgtk_clist_sort_column); | |
1716 DEFSUBR (Fgtk_clist_focus_row); | |
1717 DEFSUBR (Fgtk_clist_sort_type); | |
1718 DEFSUBR (Fgtk_clist_vadjustment); | |
1719 DEFSUBR (Fgtk_clist_hadjustment); | |
1720 DEFSUBR (Fgtk_clist_columns); | |
1721 DEFSUBR (Fgtk_clist_rows); | |
1722 DEFSUBR (Fgtk_paned_child2_shrink); | |
1723 DEFSUBR (Fgtk_paned_child1_shrink); | |
1724 DEFSUBR (Fgtk_paned_child2_resize); | |
1725 DEFSUBR (Fgtk_paned_child1_resize); | |
1726 DEFSUBR (Fgtk_paned_child2); | |
1727 DEFSUBR (Fgtk_paned_child1); | |
1728 DEFSUBR (Fgtk_object_ref_count); | |
1729 DEFSUBR (Fgtk_object_flags); | |
1730 DEFSUBR (Fgtk_plug_same_app); | |
1731 DEFSUBR (Fgtk_plug_socket_window); | |
1732 DEFSUBR (Fgtk_input_dialog_save_button); | |
1733 DEFSUBR (Fgtk_input_dialog_close_button); | |
1734 DEFSUBR (Fgtk_dialog_action_area); | |
1735 DEFSUBR (Fgtk_dialog_vbox); | |
1736 DEFSUBR (Fgtk_color_selection_dialog_help_button); | |
1737 DEFSUBR (Fgtk_color_selection_dialog_cancel_button); | |
1738 DEFSUBR (Fgtk_color_selection_dialog_reset_button); | |
1739 DEFSUBR (Fgtk_color_selection_dialog_ok_button); | |
1740 DEFSUBR (Fgtk_color_selection_dialog_main_vbox); | |
1741 DEFSUBR (Fgtk_color_selection_dialog_colorsel); | |
1742 DEFSUBR (Fgtk_font_selection_dialog_cancel_button); | |
1743 DEFSUBR (Fgtk_font_selection_dialog_apply_button); | |
1744 DEFSUBR (Fgtk_font_selection_dialog_ok_button); | |
1745 DEFSUBR (Fgtk_font_selection_dialog_action_area); | |
1746 DEFSUBR (Fgtk_font_selection_dialog_main_vbox); | |
1747 DEFSUBR (Fgtk_font_selection_dialog_fontsel); | |
1748 DEFSUBR (Fgtk_file_selection_action_area); | |
1749 DEFSUBR (Fgtk_file_selection_help_button); | |
1750 DEFSUBR (Fgtk_file_selection_cancel_button); | |
1751 DEFSUBR (Fgtk_file_selection_ok_button); | |
1752 DEFSUBR (Fgtk_file_selection_main_vbox); | |
1753 DEFSUBR (Fgtk_file_selection_selection_text); | |
1754 DEFSUBR (Fgtk_file_selection_selection_entry); | |
1755 DEFSUBR (Fgtk_file_selection_file_list); | |
1756 DEFSUBR (Fgtk_file_selection_dir_list); | |
1757 DEFSUBR (Fgtk_text_vadj); | |
1758 DEFSUBR (Fgtk_text_hadj); | |
1759 DEFSUBR (Fgtk_notebook_tab_pos); | |
1760 DEFSUBR (Fgtk_check_menu_item_active); | |
1761 DEFSUBR (Fgtk_gamma_curve_gamma_text); | |
1762 DEFSUBR (Fgtk_gamma_curve_gamma_dialog); | |
1763 DEFSUBR (Fgtk_gamma_curve_gamma); | |
1764 DEFSUBR (Fgtk_gamma_curve_curve); | |
1765 DEFSUBR (Fgtk_gamma_curve_table); | |
1766 DEFSUBR (Fgtk_combo_list); | |
1767 DEFSUBR (Fgtk_combo_popwin); | |
1768 DEFSUBR (Fgtk_combo_popup); | |
1769 DEFSUBR (Fgtk_combo_button); | |
1770 DEFSUBR (Fgtk_combo_entry); | |
1771 DEFSUBR (Fgtk_button_button_down); | |
1772 DEFSUBR (Fgtk_button_in_button); | |
1773 DEFSUBR (Fgtk_button_child); | |
1774 DEFSUBR (Fgtk_widget_parent); | |
1775 DEFSUBR (Fgtk_widget_name); | |
1776 DEFSUBR (Fgtk_widget_state); | |
1777 DEFSUBR (Fgtk_widget_window); | |
1778 DEFSUBR (Fgtk_widget_style); | |
1779 DEFSUBR (Fgtk_adjustment_page_size); | |
1780 DEFSUBR (Fgtk_adjustment_page_increment); | |
1781 DEFSUBR (Fgtk_adjustment_step_increment); | |
1782 DEFSUBR (Fgtk_adjustment_value); | |
1783 DEFSUBR (Fgtk_adjustment_upper); | |
1784 DEFSUBR (Fgtk_adjustment_lower); | |
1785 } |