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

Revision 18404, 85.1 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
3;; updated for gtk+ 1.3:
4
5;; GtkButton, GtkWidget, GtkContainer, GtkFixed, GtkWindow, GtkHandleBox,
6;; GtkBox, GtkButtonBox, Gtk[HV]ButtonBox, GtkToolbar, GtkTable,
7;; GtkToggleButton, GtkCheckButton, GtkRadioButton, GtkMisc, GtkArrow,
8;; GtkLabel, GtkLayout, GtkTipsQuery, GtkVBox, GtkHBox, GtkItem, GtkCombo,
9;; GtkStatusBar, GtkGammaCurve, Gtk[HV]Separator, GtkFrame, GtkAspectFrame,
10;; GtkProgress, GtkProgressBar, GtkTooltips, GtkMenuShell, GtkMenuBar,
11;; GtkMenu, GtkMenuItem, GtkCheckMenuItem, GtkRadioMenuItem, GtkOptionMenu,
12;; GtkPixmap, GtkViewport, GtkScrolledWindow, GtkListItem, GtkList,
13;; GtkNotebook, GtkEditable, GtkEntry, GtkSpinButton, GtkDrawingArea,
14;; GtkCurve, GtkPreview, GtkFileSelection, GtkFontSelectionDialog,
15;; GtkColorSelectionDialog, GtkColorSelection, GtkRange, GtkScale,
16;; Gtk[HV]Scale, GtkScrollbar, Gtk[HV]Scrollbar, GtkRuler, Gtk[HV]Ruler,
17;; GtkDialog, GtkInputDialog, GtkPaned, Gtk[HV]Paned, GtkPlug, GtkSocket,
18;; GtkTearOffMenuItem, GtkCalendar, GtkIconFactory, GtkImage,
19;; GtkImageMenuItem, GtkInvisible, GtkSeparatorMenuItem
20
21;; Todo: TreeView/TreeModel et al; delete Tree and CList
22
23;;; Gtk enums
24
25(import "glib.defs")
26(import "gdk.defs")
27(import "gdk-pixbuf.defs")
28
29(define-enum GtkAnchorType
30  (center GTK_ANCHOR_CENTER)
31  (north GTK_ANCHOR_NORTH)
32  (south GTK_ANCHOR_SOUTH)
33  (east GTK_ANCHOR_EAST)
34  (west GTK_ANCHOR_WEST)
35  (north-west GTK_ANCHOR_NORTH_WEST)
36  (north-east GTK_ANCHOR_NORTH_EAST)
37  (south-west GTK_ANCHOR_SOUTH_WEST)
38  (south-east GTK_ANCHOR_SOUTH_EAST))
39
40(define-enum GtkArrowType
41  (up GTK_ARROW_UP)
42  (down GTK_ARROW_DOWN)
43  (left GTK_ARROW_LEFT)
44  (right GTK_ARROW_RIGHT))
45
46(define-flags GtkAttachOptions
47  (expand GTK_EXPAND)
48  (shrink GTK_SHRINK)
49  (fill GTK_FILL))
50
51(define-enum GtkButtonBoxStyle
52  (default-style GTK_BUTTONBOX_DEFAULT_STYLE)
53  (spread GTK_BUTTONBOX_SPREAD)
54  (edge GTK_BUTTONBOX_EDGE)
55  (start GTK_BUTTONBOX_START)
56  (end GTK_BUTTONBOX_END))
57
58(define-enum GtkCurveType
59  (linear GTK_CURVE_TYPE_LINEAR)
60  (spline GTK_CURVE_TYPE_SPLINE)
61  (free GTK_CURVE_TYPE_FREE))
62
63(define-enum GtkDeleteType
64  (chars GTK_DELETE_CHARS)
65  (word-ends GTK_DELETE_WORD_ENDS)
66  (words GTK_DELETE_WORDS)
67  (display-lines GTK_DELETE_DISPLAY_LINES)
68  (display-line-ends GTK_DELETE_DISPLAY_LINE_ENDS)
69  (paragraph-ends GTK_DELETE_PARAGRAPH_ENDS)
70  (paragraphs GTK_DELETE_PARAGRAPHS)
71  (whitespace GTK_DELETE_WHITESPACE))
72
73(define-enum GtkDirectionType
74  (tab-forward GTK_DIR_TAB_FORWARD)
75  (tab-backward GTK_DIR_TAB_BACKWARD)
76  (up GTK_DIR_UP)
77  (down GTK_DIR_DOWN)
78  (left GTK_DIR_LEFT)
79  (right GTK_DIR_RIGHT))
80
81(define-enum GtkExpanderStyle
82  (collapsed GTK_EXPANDER_COLLAPSED)
83  (semi-collapsed GTK_EXPANDER_SEMI_COLLAPSED)
84  (semi-expanded GTK_EXPANDER_SEMI_EXPANDED)
85  (expanded GTK_EXPANDER_EXPANDED))
86
87(define-enum GtkIconSize
88  (invalid GTK_ICON_SIZE_INVALID)
89  (menu GTK_ICON_SIZE_MENU)
90  (small-toolbar GTK_ICON_SIZE_SMALL_TOOLBAR)
91  (large-toolbar GTK_ICON_SIZE_LARGE_TOOLBAR)
92  (button GTK_ICON_SIZE_BUTTON)
93  (dnd GTK_ICON_SIZE_DND)
94  (dialog GTK_ICON_SIZE_DIALOG))
95
96(define-enum GtkTextDirection
97  (none GTK_TEXT_DIR_NONE)
98  (ltr GTK_TEXT_DIR_LTR)
99  (rtl GTK_TEXT_DIR_RTL))
100
101(define-enum GtkJustification
102  (left GTK_JUSTIFY_LEFT)
103  (right GTK_JUSTIFY_RIGHT)
104  (center GTK_JUSTIFY_CENTER)
105  (fill GTK_JUSTIFY_FILL))
106
107(define-enum GtkMenuDirectionType
108  (parent GTK_MENU_DIR_PARENT)
109  (child GTK_MENU_DIR_CHILD)
110  (next GTK_MENU_DIR_NEXT)
111  (prev GTK_MENU_DIR_PREV))
112
113(define-enum GtkMetricType
114  (pixels GTK_PIXELS)
115  (inches GTK_INCHES)
116  (centimeters GTK_CENTIMETERS))
117
118(define-enum GtkMovementStep
119  (logical-positions GTK_MOVEMENT_LOGICAL_POSITIONS)
120  (visual-positions GTK_MOVEMENT_VISUAL_POSITIONS)
121  (words GTK_MOVEMENT_WORDS)
122  (display-lines GTK_MOVEMENT_DISPLAY_LINES)
123  (display-line-ends GTK_MOVEMENT_DISPLAY_LINE_ENDS)
124  (paragraph-ends GTK_MOVEMENT_PARAGRAPH_ENDS)
125  (paragraphs GTK_MOVEMENT_PARAGRAPHS)
126  (pages GTK_MOVEMENT_PAGES)
127  (buffer-ends GTK_MOVEMENT_BUFFER_ENDS))
128
129(define-enum GtkOrientation
130  (horizontal GTK_ORIENTATION_HORIZONTAL)
131  (vertical GTK_ORIENTATION_VERTICAL))
132
133(define-enum GtkCornerType
134  (top-left GTK_CORNER_TOP_LEFT)
135  (bottom-left GTK_CORNER_BOTTOM_LEFT)
136  (top-right GTK_CORNER_TOP_RIGHT)
137  (bottom-right GTK_CORNER_BOTTOM_RIGHT))
138
139(define-enum GtkPackType
140  (start GTK_PACK_START)
141  (end GTK_PACK_END))
142
143(define-enum GtkPathPriorityType
144  (lowest GTK_PATH_PRIO_LOWEST)
145  (gtk GTK_PATH_PRIO_GTK)
146  (application GTK_PATH_PRIO_APPLICATION)
147  (theme GTK_PATH_PRIO_THEME)
148  (rc GTK_PATH_PRIO_RC)
149  (highest GTK_PATH_PRIO_HIGHEST))
150
151(define-enum GtkPathType
152  (widget GTK_PATH_WIDGET)
153  (widget-class GTK_PATH_WIDGET_CLASS)
154  (class GTK_PATH_CLASS))
155
156(define-enum GtkPolicyType
157  (always GTK_POLICY_ALWAYS)
158  (automatic GTK_POLICY_AUTOMATIC)
159  (never GTK_POLICY_NEVER))
160
161(define-enum GtkPositionType
162  (left GTK_POS_LEFT)
163  (right GTK_POS_RIGHT)
164  (top GTK_POS_TOP)
165  (bottom GTK_POS_BOTTOM))
166
167;; XXX deprecated
168(define-enum GtkPreviewType
169  (color GTK_PREVIEW_COLOR)
170  (grayscale GTK_PREVIEW_GRAYSCALE))
171
172(define-enum GtkReliefStyle
173  (normal GTK_RELIEF_NORMAL)
174  (half GTK_RELIEF_HALF)
175  (none GTK_RELIEF_NONE))
176
177(define-enum GtkResizeMode
178  (parent GTK_RESIZE_PARENT)
179  (queue GTK_RESIZE_QUEUE)
180  (immediate GTK_RESIZE_IMMEDIATE))
181
182;; XXX deprecated
183(define-flags GtkSignalRunType
184  (first GTK_RUN_FIRST)
185  (last GTK_RUN_LAST)
186  (both GTK_RUN_BOTH)
187  (no-recurse GTK_RUN_NO_RECURSE)
188  (action GTK_RUN_ACTION)
189  (no-hooks GTK_RUN_NO_HOOKS))
190
191(define-enum GtkScrollType
192  (none GTK_SCROLL_NONE)
193  (jump GTK_SCROLL_JUMP)
194  (step-backward GTK_SCROLL_STEP_BACKWARD)
195  (step-forward GTK_SCROLL_STEP_FORWARD)
196  (page-backward GTK_SCROLL_PAGE_BACKWARD)
197  (page-forward GTK_SCROLL_PAGE_FORWARD)
198  (step-up GTK_SCROLL_STEP_UP)
199  (step-down GTK_SCROLL_STEP_DOWN)
200  (page-up GTK_SCROLL_PAGE_UP)
201  (page-down GTK_SCROLL_PAGE_DOWN)
202  (step-left GTK_SCROLL_STEP_LEFT)
203  (step-right GTK_SCROLL_STEP_RIGHT)
204  (start GTK_SCROLL_START)
205  (end GTK_SCROLL_END))
206
207(define-enum GtkSelectionMode
208  (none GTK_SELECTION_NONE)
209  (single GTK_SELECTION_SINGLE)
210  (browse GTK_SELECTION_BROWSE)
211  (multiple GTK_SELECTION_MULTIPLE))
212
213(define-enum GtkShadowType
214  (none GTK_SHADOW_NONE)
215  (in GTK_SHADOW_IN)
216  (out GTK_SHADOW_OUT)
217  (etched-in GTK_SHADOW_ETCHED_IN)
218  (etched-out GTK_SHADOW_ETCHED_OUT))
219
220(define-enum GtkStateType
221  (normal GTK_STATE_NORMAL)
222  (active GTK_STATE_ACTIVE)
223  (prelight GTK_STATE_PRELIGHT)
224  (selected GTK_STATE_SELECTED)
225  (insensitive GTK_STATE_INSENSITIVE))
226
227;; XXX deprecated
228(define-enum GtkSubmenuDirection
229  (left GTK_DIRECTION_LEFT)
230  (right GTK_DIRECTION_RIGHT))
231(define-enum GtkSubmenuPlacement
232  (top-bottom GTK_TOP_BOTTOM)
233  (left-right GTK_LEFT_RIGHT))
234
235(define-enum GtkToolbarStyle
236  (icons GTK_TOOLBAR_ICONS)
237  (text GTK_TOOLBAR_TEXT)
238  (both GTK_TOOLBAR_BOTH)
239  (both-horiz GTK_TOOLBAR_BOTH_HORIZ))
240
241(define-enum GtkUpdateType
242  (continuous GTK_UPDATE_CONTINUOUS)
243  (discontinuous GTK_UPDATE_DISCONTINUOUS)
244  (delayed GTK_UPDATE_DELAYED))
245
246(define-enum GtkVisibility
247  (none GTK_VISIBILITY_NONE)
248  (partial GTK_VISIBILITY_PARTIAL)
249  (full GTK_VISIBILITY_FULL))
250
251(define-enum GtkWindowPosition
252  (none GTK_WIN_POS_NONE)
253  (center GTK_WIN_POS_CENTER)
254  (mouse GTK_WIN_POS_MOUSE)
255  (center-always GTK_WIN_POS_CENTER_ALWAYS)
256  (center-on-parent GTK_WIN_POS_CENTER_ON_PARENT))
257
258(define-enum GtkWindowType
259  (toplevel GTK_WINDOW_TOPLEVEL)
260  (popup GTK_WINDOW_POPUP))
261
262(define-enum GtkWrapMode
263  (none GTK_WRAP_NONE)
264  (char GTK_WRAP_CHAR)
265  (word GTK_WRAP_WORD))
266
267(define-enum GtkSortType
268  (ascending GTK_SORT_ASCENDING)
269  (descending GTK_SORT_DESCENDING))
270
271;(define-enum GtkMenuFactoryType
272;  (menu GTK_MENU_FACTORY_MENU)
273;  (menu-bar GTK_MENU_FACTORY_MENU_BAR)
274;  (option-menu GTK_MENU_FACTORY_OPTION_MENU))
275
276;(define-enum GtkTroughType
277;  (none GTK_TROUGH_NONE)
278;  (start GTK_TROUGH_START)
279;  (end GTK_TROUGH_END))
280
281(define-flags GtkWidgetFlags
282   (toplevel GTK_TOPLEVEL)
283   (no-window GTK_NO_WINDOW)
284   (realized GTK_REALIZED)
285   (mapped GTK_MAPPED)
286   (visible GTK_VISIBLE)
287   (sensitive GTK_SENSITIVE)
288   (parent-sensitive GTK_PARENT_SENSITIVE)
289   (can-focus GTK_CAN_FOCUS)
290   (has-focus GTK_HAS_FOCUS)
291   (can-default GTK_CAN_DEFAULT)
292   (has-default GTK_HAS_DEFAULT)
293   (has-grab GTK_HAS_GRAB)
294   (rc-style GTK_RC_STYLE)
295   (composite-child GTK_COMPOSITE_CHILD)
296   (no-reparent GTK_NO_REPARENT)
297   (app-paintable GTK_APP_PAINTABLE)
298   (receives-default GTK_RECEIVES_DEFAULT)
299   (double-buffered GTK_DOUBLE_BUFFERED))
300
301(define-enum GtkToolbarChildType
302  (space GTK_TOOLBAR_CHILD_SPACE)
303  (button GTK_TOOLBAR_CHILD_BUTTON)
304  (toggle-button GTK_TOOLBAR_CHILD_TOGGLEBUTTON)
305  (radio-button GTK_TOOLBAR_CHILD_RADIOBUTTON)
306  (widget GTK_TOOLBAR_CHILD_WIDGET))
307
308;(define-enum GtkTreeViewMode
309;  (line GTK_TREE_VIEW_LINE)
310;  (item GTK_TREE_VIEW_ITEM))
311
312(define-enum GtkFundamentalType
313  (invalid GTK_TYPE_INVALID)
314  (none GTK_TYPE_NONE)
315  (char GTK_TYPE_CHAR)
316  (bool GTK_TYPE_BOOL)
317  (int GTK_TYPE_INT)
318  (uint GTK_TYPE_UINT)
319  (long GTK_TYPE_LONG)
320  (ulong GTK_TYPE_ULONG)
321  (float GTK_TYPE_FLOAT)
322  (string GTK_TYPE_STRING)
323  (enum GTK_TYPE_ENUM)
324  (flags GTK_TYPE_FLAGS)
325  (boxed GTK_TYPE_BOXED)
326;  (foreign GTK_TYPE_FOREIGN)
327;  (callback GTK_TYPE_CALLBACK)
328;  (args GTK_TYPE_ARGS)
329  (pointer GTK_TYPE_POINTER)
330;  (signal GTK_TYPE_SIGNAL)
331;  (c-callback GTK_TYPE_C_CALLBACK)
332;  (object GTK_TYPE_OBJECT)
333)
334
335(define-enum GtkSpinButtonUpdatePolicy
336  (always GTK_UPDATE_ALWAYS)
337  (if-valid GTK_UPDATE_IF_VALID))
338
339(define-enum GtkSpinType
340  (step-forward GTK_SPIN_STEP_FORWARD)
341  (step-backward GTK_SPIN_STEP_BACKWARD)
342  (page-forward GTK_SPIN_PAGE_FORWARD)
343  (page-backward GTK_SPIN_PAGE_BACKWARD)
344  (home GTK_SPIN_HOME)
345  (end GTK_SPIN_END)
346  (user-defined GTK_SPIN_USER_DEFINED))
347
348(define-enum GtkCellType
349  (empty GTK_CELL_EMPTY)
350  (text GTK_CELL_TEXT)
351  (pixmap GTK_CELL_PIXMAP)
352  (pixtext GTK_CELL_PIXTEXT)
353  (widget GTK_CELL_WIDGET))
354
355(define-enum GtkProgressBarOrientation
356  (left-to-right GTK_PROGRESS_LEFT_TO_RIGHT)
357  (right-to-left GTK_PROGRESS_RIGHT_TO_LEFT)
358  (bottom-to-top GTK_PROGRESS_BOTTOM_TO_TOP)
359  (top-to-bottom GTK_PROGRESS_TOP_TO_BOTTOM))
360
361(define-flags GtkArgFlags
362  (readable GTK_ARG_READABLE)
363  (writeable GTK_ARG_WRITABLE)
364  (construct GTK_ARG_CONSTRUCT)
365  (construct-only GTK_ARG_CONSTRUCT_ONLY)
366  (child-arg GTK_ARG_CHILD_ARG)
367  (readwrite GTK_ARG_READWRITE))
368
369(define-flags GtkAccelFlags
370  (visible GTK_ACCEL_VISIBLE)
371;  (signal-visible GTK_ACCEL_SIGNAL_VISIBLE)
372  (locked GTK_ACCEL_LOCKED))
373
374(define-flags GtkCalendarDisplayOptions
375  (show-heading GTK_CALENDAR_SHOW_HEADING)
376  (show-day-names GTK_CALENDAR_SHOW_DAY_NAMES)
377  (no-month-changed GTK_CALENDAR_NO_MONTH_CHANGE)
378  (show-week-numbers GTK_CALENDAR_SHOW_WEEK_NUMBERS)
379  (week-start-monday GTK_CALENDAR_WEEK_START_MONDAY))
380 
381;;; Gtk boxed types
382
383(define-object GtkWidget (GtkObject)
384  (fields
385   (GtkStyle style)
386   (GdkWindow window)
387   (GtkWidget parent)
388   (SCM allocation (getter sgtk_gtk_widget_get_allocation))))
389
390(define-object GtkAccelGroup (GObject))
391
392(define-object GtkStyle (GObject))
393
394(define-func gtk_style_get_white_interp
395  GdkColor
396  ((GtkStyle style)))
397
398(define-func gtk_style_fg_gc
399  GdkGC
400  ((GtkStyle style)
401   (GtkStateType state)))
402
403(define-func gtk_style_bg_gc
404  GdkGC
405  ((GtkStyle style)
406   (GtkStateType state)))
407
408;;; Functions
409
410;;
411
412;; gtkmain.h
413
414(define-func gtk_set_locale
415  static_string
416  ())
417
418(define-func gtk_events_pending
419  int
420  ())
421
422(define-func gtk_main
423  none
424  ()
425  (undeferred t))
426
427(define-func gtk_main_level
428  uint
429  ())
430
431(define-func gtk_main_quit
432  none
433  ())
434
435(define-func gtk_main_iteration
436  bool
437  ())
438
439(define-func gtk_main_iteration_do
440  bool
441  ((bool blocking)))
442
443(define-func gtk_true
444  bool
445  ())
446
447(define-func gtk_false
448  bool
449  ())
450
451(define-func gtk_grab_add
452  none
453  ((GtkWidget widget)))
454
455(define-func gtk_grab_get_current
456  GtkWidget
457  ())
458
459(define-func gtk_grab_remove
460  none
461  ((GtkWidget widget)))
462
463(define-func gtk_quit_add_full
464  uint
465  ((uint main_level)
466   (full-callback function))
467  (scm-name "gtk-quit-add")
468  (protection t))
469
470(define-func gtk_quit_remove
471  none
472  ((uint handler_id)))
473
474(define-func gtk_timeout_add_full
475  int
476  ((int interval)
477   (full-callback function))
478  (scm-name "gtk-timeout-add")
479  (protection t))
480
481(define-func gtk_timeout_remove
482  none
483  ((int tag)))
484
485(define-func gtk_idle_add_full
486  int
487  ((int priority)
488   (full-callback function))
489  (protection t)
490  (scm-name "gtk-idle-add"))
491
492(define-func gtk_idle_remove
493  none
494  ((int tag)))
495
496(define-func gtk_input_add_full
497  int
498  ((file-descriptor source)
499   (GdkInputCondition condition)
500   (full-callback callback))
501  (protection t)
502  (scm-name "gtk-input-add"))
503
504(define-func gtk_input_remove
505  none
506  ((int tag)))
507
508(define-func gtk_get_current_event
509  GdkEvent
510  ())
511
512(define-func gtk_get_current_event_time
513  ulong
514  ())
515
516;; gtkrc.h
517
518(define-object GtkRcStyle (GObject))
519
520(define-func gtk_rc_add_default_file
521  none
522  ((string filename)))
523
524;; XXX
525;(define-func gtk_rc_set_default_files
526;  none
527;  ((tvec string in) filenames))
528;
529;(define-func gtk_rc_get_default_files
530;  (tvec string out)
531;  ())
532
533(define-func gtk_rc_get_style
534  GtkStyle
535  ((GtkWidget widget)))
536
537(define-func gtk_rc_parse
538  none
539  ((string file)))
540
541;; GtkObject
542
543(define-object GtkObject (GObject))
544
545(define-func gtk_object_destroy
546  none
547  ((GtkObject object)))
548
549(define-func GTK_OBJECT_TYPE
550  type
551  ((GtkObject object)))
552
553;(define-func sgtk_gtk_object_query_args
554;  SCM
555;  ((type type))
556;  (scm-name "gtk-object-query-args"))
557
558;; Signals
559
560;; GtkWidget
561
562(define-object GtkAdjustment (GtkWidget))
563
564(define-func GTK_WIDGET_STATE
565  GtkStateType
566  ((GtkWidget widget)))
567
568(define-func GTK_WIDGET_FLAGS
569  GtkWidgetFlags
570  ((GtkWidget widget)))
571
572(define-func GTK_WIDGET_SET_FLAGS
573  none
574  ((GtkWidget widget)
575   (GtkWidgetFlags flags)))
576
577(define-func GTK_WIDGET_UNSET_FLAGS
578  none
579  ((GtkWidget widget)
580   (GtkWidgetFlags flags)))
581
582;; XXX - gtk_widget_new or gtk_widget_newv would be really useful
583;; (maybe also gtk_widget_set(v), gtk_widget_get(v))
584
585(define-func gtk_widget_destroy
586  none
587  ((GtkWidget widget)))
588
589(define-func gtk_widget_unparent
590  none
591  ((GtkWidget widget)))
592
593(define-func gtk_widget_show
594  none
595  ((GtkWidget widget)))
596
597(define-func gtk_widget_show_now
598  none
599  ((GtkWidget widget)))
600
601(define-func gtk_widget_hide
602  none
603  ((GtkWidget widget)))
604
605(define-func gtk_widget_show_all
606  none
607  ((GtkWidget widget)))
608
609(define-func gtk_widget_hide_all
610  none
611  ((GtkWidget widget)))
612
613(define-func gtk_widget_map
614  none
615  ((GtkWidget widget)))
616
617(define-func gtk_widget_unmap
618  none
619  ((GtkWidget widget)))
620
621(define-func gtk_widget_realize
622  none
623  ((GtkWidget widget)))
624
625(define-func gtk_widget_unrealize
626  none
627  ((GtkWidget widget)))
628
629(define-func gtk_widget_draw_interp
630  none
631  ((GtkWidget widget)))
632
633(define-func gtk_widget_queue_draw
634  none
635  ((GtkWidget widget)))
636
637(define-func gtk_widget_queue_draw_area
638  none
639  ((GtkWidget widget)
640   (int x)
641   (int y)
642   (int width)
643   (int height)))
644
645(define-func gtk_widget_queue_resize
646  none
647  ((GtkWidget widget)))
648
649(define-func gtk_widget_add_accelerator
650  none
651  ((GtkWidget          widget)
652   (string             accel_signal)
653   (GtkAccelGroup      accel_group)
654   (uint               accel_key)
655   (GdkModifierType    accel_mods)
656   (GtkAccelFlags      accel_flags)))
657
658(define-func gtk_widget_remove_accelerator
659  none
660  ((GtkWidget widget)
661   (GtkAccelGroup accel_group)
662   (uint accel_key)
663   (GdkModifierType accel_mods)))
664
665(define-func gtk_widget_event
666  bool
667  ((GtkWidget widget)
668   (GdkEvent event)))
669
670(define-func gtk_widget_activate
671  none
672  ((GtkWidget widget)))
673
674(define-func gtk_widget_set_scroll_adjustments
675  bool
676  ((GtkWidget widget)
677   (GtkAdjustment hadj)
678   (GtkAdjustment vadj)))
679
680(define-func gtk_widget_reparent
681  none
682  ((GtkWidget widget)
683   (GtkWidget new_parent)))
684
685(define-func gtk_widget_is_focus
686  bool
687  ((GtkWidget widget)))
688
689(define-func gtk_widget_grab_focus
690  none
691  ((GtkWidget widget)))
692
693(define-func gtk_widget_grab_default
694  none
695  ((GtkWidget widget)))
696
697(define-func gtk_widget_set_name
698  none
699  ((GtkWidget widget)
700   (string name)))
701
702(define-func gtk_widget_get_name
703  static_string
704  ((GtkWidget widget)))
705
706(define-func gtk_widget_set_state
707  none
708  ((GtkWidget widget)
709   (GtkStateType state)))
710
711(define-func gtk_widget_set_sensitive
712  none
713  ((GtkWidget widget)
714   (bool sensitive)))
715
716(define-func gtk_widget_set_app_paintable
717  none
718  ((GtkWidget widget)
719   (bool app_paintable)))
720
721(define-func gtk_widget_set_double_buffered
722  none
723  ((GtkWidget widget)
724   (bool double_buffered)))
725
726(define-func gtk_widget_set_redraw_on_allocate
727  none
728  ((GtkWidget widget)
729   (bool redraw_on_allocate)))
730
731(define-func gtk_widget_set_parent
732  none
733  ((GtkWidget widget)
734   (GtkWidget parent)))
735
736(define-func gtk_widget_set_parent_window
737  none
738  ((GtkWidget widget)
739   (GdkWindow parent_window)))
740
741(define-func gtk_widget_set_child_visible
742  none
743  ((GtkWidget widget)
744   (bool child_visible)))
745
746(define-func gtk_widget_get_child_visible
747  bool
748  ((GtkWidget widget)))
749
750(define-func gtk_widget_get_parent
751  GtkWidget
752  ((GtkWidget widget)))
753
754(define-func gtk_widget_get_parent_window
755  GdkWindow
756  ((GtkWidget widget)))
757
758(define-func gtk_widget_child_focus
759  none
760  ((GtkWidget widget)
761   (GtkDirectionType direction)))
762
763(define-func gtk_widget_set_size_request
764  none
765  ((GtkWidget widget)
766   (int width)
767   (int height)))
768
769(define-func gtk_widget_get_size_request
770  none
771  ((GtkWidget widget)
772   ((ret int) width)
773   ((ret int) height)))
774
775(define-func gtk_widget_set_events
776  none
777  ((GtkWidget widget)
778   (GdkEventMask events)))
779
780(define-func gtk_widget_add_events
781  none
782  ((GtkWidget widget)
783   (GdkEventMask events)))
784
785(define-func gtk_widget_set_extension_events
786  none
787  ((GtkWidget widget)
788   (GdkEventMask events)))
789
790;(define-func gtk_widget_get_ancestor
791;  GtkWidget
792;  ((GtkWidget widget)
793;   (GtkType type)))
794
795(define-func gtk_widget_get_toplevel
796  GtkWidget
797  ((GtkWidget widget)))
798
799(define-func gtk_widget_get_colormap
800  GdkColormap
801  ((GtkWidget widget)))
802
803(define-func gtk_widget_get_visual
804  GdkVisual
805  ((GtkWidget widget)))
806
807;; XXX - need multiple return values
808;; (define-func gtk_widget_get_pointer)
809
810(define-func gtk_widget_is_ancestor
811  bool
812  ((GtkWidget widget)
813   (GtkWidget ancestor)))
814
815(define-func gtk_widget_hide_on_delete
816  bool
817  ((GtkWidget widget)))
818
819(define-func gtk_widget_set_style
820  none
821  ((GtkWidget widget)
822   (GtkStyle style)))
823
824(define-func gtk_widget_ensure_style
825  none
826  ((GtkWidget widget)))
827
828(define-func gtk_widget_get_style
829  GtkStyle
830  ((GtkWidget widget)))
831
832(define-func gtk_widget_modify_style
833  none
834  ((GtkWidget widget)
835   (GtkRcStyle style)))
836
837(define-func gtk_widget_get_modifier_style
838  GtkRcStyle
839  ((GtkWidget widget)))
840
841(define-func gtk_widget_modify_fg
842  none
843  ((GtkWidget widget)
844   (GtkStateType state)
845   (GdkColor color)))
846
847(define-func gtk_widget_modify_bg
848  none
849  ((GtkWidget widget)
850   (GtkStateType state)
851   (GdkColor color)))
852
853(define-func gtk_widget_modify_text
854  none
855  ((GtkWidget widget)
856   (GtkStateType state)
857   (GdkColor color)))
858
859(define-func gtk_widget_modify_base
860  none
861  ((GtkWidget widget)
862   (GtkStateType state)
863   (GdkColor color)))
864
865;; XXX gdk_widget_modify_font
866
867(define-func gtk_widget_render_icon
868  GdkPixbuf
869  ((GtkWidget widget)
870   (string stock_id)
871   (GtkIconSize size)
872   (string detail)))
873
874(define-func gtk_widget_get_events
875  GdkEventMask
876  ((GtkWidget widget)))
877
878(define-func gtk_widget_get_extension_events
879  GdkEventMask
880  ((GtkWidget widget)))
881
882(define-func gtk_widget_push_colormap
883  none
884  ((GdkColormap cmap)))
885
886(define-func gtk_widget_push_composite_child
887  none
888  ())
889
890(define-func gtk_widget_pop_colormap
891  none
892  ())
893
894(define-func gtk_widget_pop_composite_child
895  none
896  ())
897
898(define-func gtk_widget_set_default_colormap
899  none
900  ((GdkColormap cmap)))
901
902(define-func gtk_widget_get_default_colormap
903  GdkColormap
904  ())
905
906(define-func gtk_widget_get_default_visual
907  GdkVisual
908  ())
909
910(define-func gtk_widget_get_default_style
911  GtkStyle
912  ())
913
914;; XXX - need GdkBitmap for the shape mask
915;; (define-func gtk_widget_shape_combine_mask)
916
917;; XXX - dnd stuff needs closer examination.
918
919;;; Container
920
921(define-object GtkContainer (GtkWidget))
922
923(define-func gtk_container_set_border_width
924  none
925  ((GtkContainer container)
926   (int border_width)))
927
928(define-func gtk_container_get_border_width
929  int
930  ((GtkContainer container)))
931
932(define-func gtk_container_add
933  none
934  ((GtkContainer container)
935   (GtkWidget widget)))
936
937(define-func gtk_container_remove
938  none
939  ((GtkContainer container)
940   (GtkWidget widget)))
941
942(define-func gtk_container_set_resize_mode
943  none
944  ((GtkContainer container)
945   (GtkResizeMode resize_mode)))
946
947(define-func gtk_container_get_resize_mode
948  GtkResizeMode
949  ((GtkContainer container)))
950
951(define-func gtk_container_check_resize
952  none
953  ((GtkContainer container)))
954
955;; XXX this is deprecated?
956(define-func gtk_container_foreach_full
957  none
958  ((GtkContainer container)
959   (full-callback function (protect-during)))
960  (scm-name "gtk-container-foreach"))
961
962(define-func gtk_container_get_children
963  ((list GtkWidget))
964  ((GtkContainer container)))
965
966(define-func gtk_container_set_focus_chain
967  none
968  ((GtkContainer container)
969   ((list GtkWidget) focusable_widgets)))
970
971(define-func gtk_container_unset_focus_chain
972  none
973  ((GtkContainer container)))
974
975;;; Fixed
976
977(define-object GtkFixed (GtkContainer))
978
979(define-func gtk_fixed_new
980  GtkWidget
981  ())
982
983(define-func gtk_fixed_put
984  none
985  ((GtkFixed fixed)
986   (GtkWidget widget)
987   (int x)
988   (int y)))
989
990(define-func gtk_fixed_move
991  none
992  ((GtkFixed fixed)
993   (GtkWidget widget)
994   (int x)
995   (int y)))
996
997(define-func gtk_fixed_set_has_window
998  none
999  ((GtkFixed fixed)
1000   (bool has_window)))
1001
1002(define-func gtk_fixed_get_has_window
1003  bool
1004  ((GtkFixed fixed)))
1005
1006;; TreeItem
1007
1008(define-object GtkTreeItem (GtkItem))
1009
1010(define-func gtk_tree_item_new
1011  GtkWidget
1012  ())
1013
1014(define-func gtk_tree_item_new_with_label
1015  GtkWidget
1016  ((string label)))
1017
1018(define-func gtk_tree_item_set_subtree
1019  none
1020  ((GtkTreeItem tree_item)
1021   (GtkWidget subtree)))
1022
1023(define-func gtk_tree_item_remove_subtree
1024  none
1025  ((GtkTreeItem tree_item)))
1026
1027(define-func gtk_tree_item_select
1028  none
1029  ((GtkTreeItem tree_item)))
1030
1031(define-func gtk_tree_item_deselect
1032  none
1033  ((GtkTreeItem tree_item)))
1034
1035(define-func gtk_tree_item_expand
1036  none
1037  ((GtkTreeItem tree_item)))
1038
1039(define-func gtk_tree_item_collapse
1040  none
1041  ((GtkTreeItem tree_item)))
1042
1043;; Tree
1044
1045(define-object GtkTree (GtkContainer))
1046
1047(define-func gtk_tree_new
1048  GtkWidget
1049  ())
1050
1051(define-func gtk_tree_append
1052  none
1053  ((GtkTree tree)
1054   (GtkWidget child)))
1055
1056(define-func gtk_tree_prepend
1057  none
1058  ((GtkTree tree)
1059   (GtkWidget child)))
1060
1061(define-func gtk_tree_insert
1062  none
1063  ((GtkTree tree)
1064   (GtkWidget child)
1065   (int position)))
1066
1067(define-func gtk_tree_remove_item
1068  none
1069  ((GtkTree tree)
1070   (GtkWidget child)))
1071
1072;; XXX - need GList support
1073;; (define-func gtk_tree_remove_items)
1074
1075(define-func gtk_tree_clear_items
1076  none
1077  ((GtkTree tree)
1078   (int start)
1079   (int end)))
1080
1081(define-func gtk_tree_select_item
1082  none
1083  ((GtkTree tree)
1084   (int item)))
1085
1086(define-func gtk_tree_unselect_item
1087  none
1088  ((GtkTree tree)
1089   (int item)))
1090
1091(define-func gtk_tree_select_child
1092  none
1093  ((GtkTree tree)
1094   (GtkWidget child)))
1095
1096(define-func gtk_tree_unselect_child
1097  none
1098  ((GtkTree tree)
1099   (GtkWidget child)))
1100
1101(define-func gtk_tree_child_position
1102  int
1103  ((GtkTree tree)
1104   (GtkWidget child)))
1105
1106(define-func gtk_tree_set_selection_mode
1107  none
1108  ((GtkTree tree)
1109   (GtkSelectionMode mode)))
1110
1111;(define-func gtk_tree_set_view_mode
1112;  none
1113;  ((GtkTree tree)
1114;   (GtkTreeViewMode mode)))
1115
1116(define-func gtk_tree_set_view_lines
1117  none
1118  ((GtkTree tree)
1119   (bool flag)))
1120
1121;;; GtkCList
1122
1123(define-object GtkCList (GtkContainer)
1124  (fields
1125   (int rows)
1126   (int columns)))
1127
1128(define-func gtk_clist_new
1129  GtkWidget
1130  ((int columns)))
1131
1132(define-func gtk_clist_new_with_titles
1133  GtkWidget
1134  (((cvec string) titles)))
1135
1136(define-func gtk_clist_set_hadjustment
1137  none
1138  ((GtkCList clist)
1139   (GtkAdjustment adjustment)))
1140
1141(define-func gtk_clist_set_vadjustment
1142  none
1143  ((GtkCList clist)
1144   (GtkAdjustment adjustment)))
1145
1146(define-func gtk_clist_get_hadjustment
1147  GtkAdjustment
1148  ((GtkCList clist)))
1149
1150(define-func gtk_clist_get_vadjustment
1151  GtkAdjustment
1152  ((GtkCList clist)))
1153
1154(define-func gtk_clist_set_shadow_type
1155  none
1156  ((GtkCList clist)
1157   (GtkShadowType type)))
1158
1159(define-func gtk_clist_set_selection_mode
1160 none
1161 ((GtkCList clist)
1162  (GtkSelectionMode mode)))
1163
1164(define-func gtk_clist_set_reorderable
1165 none
1166 ((GtkCList clist)
1167  (bool reorderable)))
1168
1169(define-func gtk_clist_set_use_drag_icons
1170 none
1171 ((GtkCList list)
1172  (bool use_icons)))
1173
1174(define-func gtk_clist_set_button_actions
1175 none
1176 ((GtkCList list)
1177  (uint button)
1178  (uint button_actions)))
1179
1180(define-func gtk_clist_freeze
1181 none
1182 ((GtkCList clist)))
1183
1184(define-func gtk_clist_thaw
1185 none
1186 ((GtkCList clist)))
1187
1188(define-func gtk_clist_column_titles_show
1189 none
1190 ((GtkCList clist)))
1191
1192(define-func gtk_clist_column_titles_hide
1193 none
1194 ((GtkCList clist)))
1195
1196(define-func gtk_clist_column_title_active
1197 none
1198 ((GtkCList clist)
1199  (int column)))
1200
1201(define-func gtk_clist_column_title_passive
1202 none
1203 ((GtkCList clist)
1204  (int column)))
1205
1206(define-func gtk_clist_column_titles_active
1207 none
1208 ((GtkCList clist)))
1209
1210(define-func gtk_clist_column_titles_passive
1211 none
1212 ((GtkCList clist)))
1213
1214(define-func gtk_clist_set_column_title
1215  none
1216  ((GtkCList clist)
1217   (int column)
1218   (string title)))
1219
1220(define-func gtk_clist_set_column_widget
1221  none
1222  ((GtkCList clist)
1223   (int column)
1224   (GtkWidget widget)))
1225
1226(define-func gtk_clist_get_column_widget
1227  GtkWidget
1228  ((GtkCList clist)
1229   (int column)))
1230
1231(define-func gtk_clist_set_column_justification
1232  none
1233  ((GtkCList clist)
1234   (int column)
1235   (GtkJustification justification)))
1236
1237(define-func gtk_clist_set_column_visibility
1238  none
1239  ((GtkCList clist)
1240   (int column)
1241   (bool visible)))
1242
1243(define-func gtk_clist_set_column_resizeable
1244  none
1245  ((GtkCList clist)
1246   (int column)
1247   (bool resizeable)))
1248
1249(define-func gtk_clist_set_column_auto_resize
1250  none
1251  ((GtkCList clist)
1252   (int column)
1253   (bool auto_resize)))
1254
1255(define-func gtk_clist_columns_autosize
1256  int
1257  ((GtkCList clist)))
1258
1259(define-func gtk_clist_optimal_column_width
1260  int
1261  ((GtkCList clist)
1262   (int column)))
1263
1264(define-func gtk_clist_set_column_width
1265  none
1266  ((GtkCList clist)
1267   (int column)
1268   (int width)))
1269
1270(define-func gtk_clist_set_column_min_width
1271  none
1272  ((GtkCList clist)
1273   (int column)
1274   (int min_width)))
1275
1276(define-func gtk_clist_set_column_max_width
1277  none
1278  ((GtkCList clist)
1279   (int column)
1280   (int max_width)))
1281
1282(define-func gtk_clist_set_row_height
1283  none
1284  ((GtkCList clist)
1285   (int height)))
1286
1287(define-func gtk_clist_moveto
1288  none
1289  ((GtkCList clist)
1290   (int row)
1291   (int column)
1292   (float row_align (= "0.5"))
1293   (float column_align (= "0.5"))))
1294
1295
1296(define-func gtk_clist_row_is_visible
1297  GtkVisibility
1298  ((GtkCList clist)
1299   (int row)))
1300
1301(define-func gtk_clist_get_cell_type
1302  GtkCellType
1303  ((GtkCList clist)
1304   (int row)
1305   (int column)))
1306
1307(define-func gtk_clist_set_text
1308  none
1309  ((GtkCList clist)
1310   (int row)
1311   (int column)
1312   (string text)))
1313
1314(define-func gtk_clist_get_text
1315  int
1316  ((GtkCList clist)
1317   (int row)
1318   (int column)
1319   ((ret string) text)))                ;; XXX should be static_string?
1320
1321;; XXX - the following all use GdkPixmaps and GdkBitmaps rather than
1322;; a GtkPixmap, this sucks.
1323;; (define-func gtk_clist_set_pixmap)
1324;; (define-func gtk_clist_get_pixmap)
1325;; (define-func gtk_clist_set_pixtext)
1326;; (define-func gtk_clist_get_pixtext)
1327
1328(define-func gtk_clist_set_foreground
1329  none
1330  ((GtkCList clist)
1331   (int row)
1332   (GdkColor color)))
1333
1334(define-func gtk_clist_set_background
1335  none
1336  ((GtkCList clist)
1337   (int row)
1338   (GdkColor color)))
1339
1340(define-func gtk_clist_set_cell_style
1341  none
1342  ((GtkCList clist)
1343   (int row)
1344   (int column)
1345   (GtkStyle style)))
1346
1347(define-func gtk_clist_get_cell_style
1348  GtkStyle
1349  ((GtkCList clist)
1350   (int row)
1351   (int column)))
1352
1353(define-func gtk_clist_set_row_style
1354  none
1355  ((GtkCList clist)
1356   (int row)
1357   (GtkStyle style)))
1358
1359(define-func gtk_clist_get_row_style
1360  GtkStyle
1361  ((GtkCList clist)
1362   (int row)))
1363
1364(define-func gtk_clist_set_shift
1365  none
1366  ((GtkCList clist)
1367   (int row)
1368   (int column)
1369   (int vertical)
1370   (int horizontal)))
1371
1372(define-func gtk_clist_set_selectable
1373  none
1374  ((GtkCList clist)
1375   (int row)
1376   (bool selectable)))
1377
1378(define-func gtk_clist_get_selectable
1379  bool
1380  ((GtkCList clist)
1381   (int row)))
1382
1383(define-func gtk_clist_prepend
1384  int
1385  ((GtkCList clist)
1386   ;; uhhh, this is hacky
1387   ((fvec string "((GtkCList*)sgtk_get_gtkobj (p_clist))->columns") text)))
1388
1389(define-func gtk_clist_append
1390  int
1391  ((GtkCList clist)
1392   ;; uhhh, this is hacky
1393   ((fvec string "((GtkCList*)sgtk_get_gtkobj (p_clist))->columns") text)))
1394   
1395(define-func gtk_clist_insert
1396  int
1397  ((GtkCList clist)
1398   (int row)
1399   ;; uhhh, this is hacky
1400   ((fvec string "((GtkCList*)sgtk_get_gtkobj (p_clist))->columns") text)))
1401   
1402(define-func gtk_clist_remove
1403  none
1404  ((GtkCList clist)
1405   (int row)))
1406
1407(define-func gtk_clist_select_row
1408  none
1409  ((GtkCList clist)
1410   (int row)
1411   (int column (= "0"))))
1412
1413(define-func gtk_clist_unselect_row
1414  none
1415  ((GtkCList clist)
1416   (int row)
1417   (int column (= "0"))))
1418
1419(define-func gtk_clist_undo_selection
1420  none
1421  ((GtkCList clist)))
1422
1423(define-func gtk_clist_clear
1424  none
1425  ((GtkCList clist)))
1426
1427(define-func gtk_clist_get_selection_info
1428  int
1429  ((GtkCList clist)
1430   (int x)
1431   (int y)
1432   ((ret int) row)
1433   ((ret int) column)))
1434
1435(define-func gtk_clist_unselect_all
1436  none
1437  ((GtkCList clist)))
1438
1439(define-func gtk_clist_swap_rows
1440  none
1441  ((GtkCList clist)
1442   (int row1)
1443   (int row2)))
1444
1445;; (define-func gtk_clist_set_compare_func_full
1446;;   none
1447;;   ((GtkCList clist)
1448;;    (full-callback cmp_func)))
1449
1450(define-func gtk_clist_set_sort_column
1451  none
1452  ((GtkCList clist)
1453   (int column)))
1454
1455(define-func gtk_clist_set_sort_type
1456  none
1457  ((GtkCList clist)
1458   (GtkSortType sort_type)))
1459
1460(define-func gtk_clist_sort
1461  none
1462  ((GtkCList clist)))
1463
1464(define-func gtk_clist_set_auto_sort
1465  none
1466  ((GtkCList clist)
1467   (bool auto_sort)))
1468
1469;;; Bin
1470
1471(define-object GtkBin (GtkContainer))
1472
1473;;; Event Box
1474
1475(define-object GtkEventBox (GtkBin))
1476
1477(define-func gtk_event_box_new
1478  GtkWidget
1479  ())
1480
1481;;; Window
1482
1483(define-object GtkWindow (GtkBin))
1484
1485(define-func gtk_window_new
1486  GtkWidget
1487  ((GtkWindowType type)))
1488
1489(define-func gtk_window_set_title
1490  none
1491  ((GtkWindow window)
1492   (string title)))
1493
1494(define-func gtk_window_get_title
1495  static_string
1496  ((GtkWindow window)))
1497
1498(define-func gtk_window_set_wmclass
1499  none
1500  ((GtkWindow window)
1501   (string wmclass_class)
1502   (string wmclass_name)))
1503
1504(define-func gtk_window_set_role
1505  none
1506  ((GtkWindow window)
1507   (string role)))
1508
1509(define-func gtk_window_get_role
1510  static_string
1511  ((GtkWindow window)))
1512
1513(define-func gtk_window_add_accel_group
1514  none
1515  ((GtkWindow window)
1516   (GtkAccelGroup accel_gruop)))
1517
1518(define-func gtk_window_remove_accel_group
1519  none
1520  ((GtkWindow window)
1521   (GtkAccelGroup accel_group)))
1522
1523(define-func gtk_window_set_position
1524  none
1525  ((GtkWindow window)
1526   (GtkWindowPosition position)))
1527
1528(define-func gtk_window_set_default
1529  none
1530  ((GtkWindow window)
1531   (GtkWidget default)))
1532
1533(define-func gtk_window_activate_focus
1534  int
1535  ((GtkWindow window)))
1536
1537(define-func gtk_window_activate_default
1538  int
1539  ((GtkWindow window)))
1540
1541(define-func gtk_window_set_transient_for
1542  none
1543  ((GtkWindow window)
1544   (GtkWindow parent (null-ok))))
1545
1546(define-func gtk_window_get_transient_for
1547  GtkWindow
1548  ((GtkWindow window)))
1549
1550;; XXX GdkWindowTypeHint?
1551;(define-func gtk_window_set_type_hint
1552;  none
1553;  ((GtkWindow window)
1554;   (GdkWindowTypeHint hint)))
1555;
1556;(define-func gtk_window_get_type_hint
1557;  GdkWindowTypeHint
1558;  ((GtkWindow window)))
1559
1560(define-func gtk_window_set_destroy_with_parent
1561  none
1562  ((GtkWindow window)
1563   (bool setting)))
1564
1565(define-func gtk_window_get_destroy_with_parent
1566  bool
1567  ((GtkWindow window)))
1568
1569(define-func gtk_window_set_resizable
1570  none
1571  ((GtkWindow window)
1572   (bool resizable)))
1573
1574(define-func gtk_window_get_resizable
1575  bool
1576  ((GtkWindow window)))
1577
1578;; XXX GdkGravity?
1579;(define-func gtk_window_set_gravity
1580;  none
1581;  ((GtkWindow window)
1582;   (GdkGravity gravity)))
1583;
1584;(define-func gtk_window_get_gravity
1585;  GdkGravity
1586;  ((GtkWindow window)))
1587
1588;; XXX gtk_window_set_geometry_hints
1589
1590(define-func gtk_window_set_has_frame
1591  none
1592  ((GtkWindow window)
1593   (bool has_frame)))
1594
1595(define-func gtk_window_get_has_frame
1596  bool
1597  ((GtkWindow window)))
1598
1599(define-func gtk_window_set_frame_dimensions
1600  none
1601  ((GtkWindow window)
1602   (int left)
1603   (int top)
1604   (int right)
1605   (int bottom)))
1606
1607;; XXX gtk_window_get_frame_dimensions
1608
1609(define-func gtk_window_set_decorated
1610  none
1611  ((GtkWindow window)
1612   (bool decorated)))
1613
1614(define-func gtk_window_get_decorated
1615  bool
1616  ((GtkWindow window)))
1617
1618;; XXX icon-list stuff
1619
1620(define-func gtk_window_set_modal
1621  none
1622  ((GtkWindow window)
1623   (bool modal)))
1624
1625(define-func gtk_window_get_modal
1626  bool
1627  ((GtkWindow window)))
1628
1629
1630(define-func gtk_window_list_toplevels
1631  ((list GtkWindow))
1632  ())
1633
1634(define-func gtk_window_add_mnemonic
1635  none
1636  ((GtkWindow window)
1637   (uint keyval)
1638   (GtkWidget target)))
1639
1640(define-func gtk_window_remove_mnemonic
1641  none
1642  ((GtkWindow window)
1643   (uint keyval)
1644   (GtkWidget target)))
1645
1646(define-func gtk_window_mnemonic_activate
1647  bool
1648  ((GtkWindow window)
1649   (uint keyval)
1650   (GdkModifierType modifier)))
1651
1652(define-func gtk_window_set_mnemonic_modifier
1653  none
1654  ((GtkWindow window)
1655   (GdkModifierType modifier)))
1656
1657(define-func gtk_window_get_mnemonic_modifier
1658  GdkModifierType
1659  ((GtkWindow window)))
1660
1661(define-func gtk_window_present
1662  none
1663  ((GtkWindow window)))
1664
1665(define-func gtk_window_iconify
1666  none
1667  ((GtkWindow window)))
1668
1669(define-func gtk_window_deiconify
1670  none
1671  ((GtkWindow window)))
1672
1673(define-func gtk_window_stick
1674  none
1675  ((GtkWindow window)))
1676
1677(define-func gtk_window_unstick
1678  none
1679  ((GtkWindow window)))
1680
1681(define-func gtk_window_maximize
1682  none
1683  ((GtkWindow window)))
1684
1685(define-func gtk_window_unmaximize
1686  none
1687  ((GtkWindow window)))
1688
1689;; XXX begin_{move,resize}_drag
1690
1691(define-func gtk_window_set_default_size
1692  none
1693  ((GtkWindow window)
1694   (int width)
1695   (int height)))
1696
1697;; XXX get_default_size
1698
1699(define-func gtk_window_resize
1700  none
1701  ((GtkWindow window)
1702   (int width)
1703   (int height)))
1704
1705;; XXX get_size
1706
1707(define-func gtk_window_move
1708  none
1709  ((GtkWindow window)
1710   (int x)
1711   (int y)))
1712
1713;; XXX get_position
1714
1715(define-func gtk_window_parse_geometry
1716  bool
1717  ((GtkWindow window)
1718   (string geometry)))
1719
1720;; XXX GtkWindowGroup
1721
1722;; XXX marked as internal
1723(define-func _gtk_window_internal_set_focus
1724  none
1725  ((GtkWindow window)
1726   (GtkWidget focus))
1727  (scm-name "gtk-window-set-focus"))
1728
1729;;; HandleBox
1730
1731(define-object GtkHandleBox (GtkBin))
1732
1733(define-func gtk_handle_box_new
1734  GtkWidget
1735  ())
1736
1737(define-func gtk_handle_box_set_shadow_type
1738  none
1739  ((GtkHandleBox handlebox)
1740   (GtkShadowType type)))
1741
1742(define-func gtk_handle_box_get_shadow_type
1743  GtkShadowType
1744  ((GtkHandleBox handlebox)))
1745
1746(define-func gtk_handle_box_set_handle_position
1747  none
1748  ((GtkHandleBox handlebox)
1749   (GtkPositionType position)))
1750
1751(define-func gtk_handle_box_get_handle_position
1752  GtkPositionType
1753  ((GtkHandleBox handlebox)))
1754
1755(define-func gtk_handle_box_set_snap_edge
1756  none
1757  ((GtkHandleBox handlebox)
1758   (GtkPositionType edge)))
1759
1760(define-func gtk_handle_box_get_snap_edge
1761  GtkPositionType
1762  ((GtkHandleBox handlebox)))
1763
1764;;; Box
1765
1766(define-object GtkBox (GtkContainer))
1767
1768(define-func gtk_box_pack_start
1769  none
1770  ((GtkBox box)
1771   (GtkWidget child)
1772   (bool expand)
1773   (bool fill)
1774   (int padding (= "0"))))
1775
1776(define-func gtk_box_pack_end
1777  none
1778  ((GtkBox box)
1779   (GtkWidget child)
1780   (bool expand)
1781   (bool fill)
1782   (int padding (= "0"))))
1783
1784(define-func gtk_box_pack_start_defaults
1785  none
1786  ((GtkBox box)
1787   (GtkWidget child)))
1788
1789(define-func gtk_box_pack_end_defaults
1790  none
1791  ((GtkBox box)
1792   (GtkWidget child)))
1793
1794(define-func gtk_box_set_homogeneous
1795  none
1796  ((GtkBox box)
1797   (bool homogenous)))
1798
1799(define-func gtk_box_get_homogeneous
1800  bool
1801  ((GtkBox box)))
1802
1803(define-func gtk_box_set_spacing
1804  none
1805  ((GtkBox box)
1806   (int spacing)))
1807
1808(define-func gtk_box_get_spacing
1809  int
1810  ((GtkBox box)))
1811
1812(define-func gtk_box_reorder_child
1813  none
1814  ((GtkBox box)
1815   (GtkWidget child)
1816   (int pos)))
1817
1818;; XXX - needs multiple return values
1819;; (define-func gtk_box_query_child_packing)
1820
1821(define-func gtk_box_set_child_packing
1822  none
1823  ((GtkBox box)
1824   (GtkWidget child)
1825   (bool expand)
1826   (bool fill)
1827   (int padding)
1828   (GtkPackType pack_type)))
1829
1830;;; ButtonBox
1831
1832(define-object GtkButtonBox (GtkBox))
1833
1834(define-func gtk_button_box_set_layout
1835  none
1836  ((GtkButtonBox widget)
1837   (GtkButtonBoxStyle layout_style)))
1838
1839(define-func gtk_button_box_get_layout
1840  GtkButtonBoxStyle
1841  ((GtkButtonBox widget)))
1842
1843(define-func gtk_button_box_set_child_secondary
1844  none
1845  ((GtkButtonBox widget)
1846   (GtkWidget child)
1847   (bool is_secondary)))
1848
1849(define-func gtk_button_box_set_child_size
1850  none
1851  ((GtkButtonBox widget)
1852   (int min_width)
1853   (int min_height)))
1854
1855(define-func gtk_button_box_set_child_ipadding
1856  none
1857  ((GtkButtonBox widget)
1858   (int ipad_x)
1859   (int ipad_y)))
1860
1861;; XXX get_child_size, get_child_ipadding
1862
1863;;; HButtonBox
1864
1865(define-object GtkHButtonBox (GtkButtonBox))
1866
1867(define-func gtk_hbutton_box_new 
1868  GtkWidget
1869  ())
1870
1871;;; VButtonBox
1872
1873(define-object GtkVButtonBox (GtkButtonBox))
1874
1875(define-func gtk_vbutton_box_new 
1876  GtkWidget
1877  ())
1878
1879;;;; Toolbar
1880
1881(define-object GtkToolbar (GtkContainer))
1882
1883(define-func gtk_toolbar_new
1884  GtkWidget
1885  ())
1886
1887;; XXX - blech, need interp versions of these
1888;; (define-func gtk_toolbar_append_item)
1889;; (define-func gtk_toolbar_prepend_item)
1890;; (define-func gtk_toolbar_insert_item)
1891;; (define-func gtk_toolbar_insert_stock)
1892 
1893(define-func gtk_toolbar_append_space
1894  none
1895  ((GtkToolbar toolbar)))
1896
1897(define-func gtk_toolbar_prepend_space
1898  none
1899  ((GtkToolbar toolbar)))
1900
1901(define-func gtk_toolbar_insert_space
1902  none
1903  ((GtkToolbar toolbar)
1904   (int position)))
1905
1906(define-func gtk_toolbar_remove_space
1907  none
1908  ((GtkToolbar toolbar)
1909   (int position)))
1910
1911;; XXX - need interp version to handle the callback properly, probably
1912;; some null-ok stuff to handle missing fields.
1913;; (define-func gtk_toolbar_append_element)
1914;; (define-func gtk_toolbar_prepend_element)
1915;; (define-func gtk_toolbar_insert_element)
1916
1917(define-func gtk_toolbar_append_widget
1918  none
1919  ((GtkToolbar Toolbar)
1920   (GtkWidget Widget)
1921   (string tooltip_text)
1922   (string tooltip_private_text)))
1923
1924(define-func gtk_toolbar_prepend_widget
1925  none
1926  ((GtkToolbar Toolbar)
1927   (GtkWidget Widget)
1928   (string tooltip_text)
1929   (string tooltip_private_text)))
1930
1931(define-func gtk_toolbar_insert_widget
1932  none
1933  ((GtkToolbar toolbar)
1934   (GtkWidget widget)
1935   (string tooltip_text)
1936   (string tooltip_private_text)
1937   (int position)))
1938
1939(define-func gtk_toolbar_set_orientation
1940  none
1941  ((GtkToolbar toolbar)
1942   (GtkOrientation orientation)))
1943
1944(define-func gtk_toolbar_set_style
1945  none
1946  ((GtkToolbar toolbar)
1947   (GtkToolbarStyle style)))
1948
1949(define-func gtk_toolbar_set_icon_size
1950  none
1951  ((GtkToolbar toolbar)
1952   (GtkIconSize size)))
1953
1954(define-func gtk_toolbar_set_tooltips
1955  none
1956  ((GtkToolbar toolbar)
1957   (bool enable)))
1958
1959(define-func gtk_toolbar_unset_style
1960  none
1961  ((GtkToolbar toolbar)))
1962
1963(define-func gtk_toolbar_unset_icon_size
1964  none
1965  ((GtkToolbar toolbar)))
1966
1967(define-func gtk_toolbar_get_orientation
1968  GtkOrientation
1969  ((GtkToolbar toolbar)))
1970
1971(define-func gtk_toolbar_get_style
1972  GtkToolbarStyle
1973  ((GtkToolbar toolbar)))
1974
1975(define-func gtk_toolbar_get_icon_size
1976  GtkIconSize
1977  ((GtkToolbar toolbar)))
1978
1979(define-func gtk_toolbar_get_tooltips
1980  bool
1981  ((GtkToolbar toolbar)))
1982
1983;;; Table
1984
1985(define-object GtkTable (GtkContainer))
1986
1987(define-func gtk_table_new
1988  GtkWidget
1989  ((uint rows)
1990   (uint columns)
1991   (bool homogenous)))
1992
1993(define-func gtk_table_resize
1994  none
1995  ((GtkTable table)
1996   (uint rows)
1997   (uint columns)))
1998
1999(define-func gtk_table_attach
2000  none
2001  ((GtkTable table)
2002   (GtkWidget child)
2003   (uint left_attach)
2004   (uint right_attach)
2005   (uint top_attach)
2006   (uint bottom_attach)
2007   (GtkAttachOptions xoptions (= "GTK_EXPAND|GTK_FILL"))
2008   (GtkAttachOptions yoptions (= "GTK_EXPAND|GTK_FILL"))
2009   (uint xpadding (= "0"))
2010   (uint ypadding (= "0"))))
2011
2012(define-func gtk_table_attach_defaults
2013  none
2014  ((GtkTable table)
2015   (GtkWidget child)
2016   (uint left_attach)
2017   (uint right_attach)
2018   (uint top_attach)
2019   (uint bottom_attach)))
2020
2021(define-func gtk_table_set_row_spacing
2022  none
2023  ((GtkTable table)
2024   (uint row)
2025   (uint spacing)))
2026
2027(define-func gtk_table_get_row_spacing
2028  uint
2029  ((GtkTable table)
2030   (uint row)))
2031
2032(define-func gtk_table_set_col_spacing
2033  none
2034  ((GtkTable table)
2035   (uint column)
2036   (uint spacing)))
2037
2038(define-func gtk_table_get_col_spacing
2039  uint
2040  ((GtkTable table)
2041   (uint column)))
2042
2043(define-func gtk_table_set_row_spacings
2044  none
2045  ((GtkTable table)
2046   (int spacing)))
2047
2048(define-func gtk_table_get_default_row_spacing
2049  uint
2050  ((GtkTable table)))
2051
2052(define-func gtk_table_set_col_spacings
2053  none
2054  ((GtkTable table)
2055   (uint spacing)))
2056
2057(define-func gtk_table_set_homogeneous
2058  none
2059  ((GtkTable table)
2060   (bool homogeneous)))
2061
2062(define-func gtk_table_get_homogeneous
2063  bool
2064  ((GtkTable table)))
2065
2066;;; Button
2067
2068(define-object GtkButton (GtkContainer)
2069  (fields
2070   (bool in_button)
2071   (bool button_down)))
2072
2073(define-func gtk_button_new
2074  GtkWidget
2075  ())
2076
2077(define-func gtk_button_new_with_label
2078  GtkWidget
2079  ((string label)))
2080
2081(define-func gtk_button_new_from_stock
2082  GtkWidget
2083  ((string stock_id)))
2084
2085(define-func gtk_button_new_with_mnemonic
2086  GtkWidget
2087  ((string label)))
2088
2089(define-func gtk_button_pressed
2090  none
2091  ((GtkButton button)))
2092
2093(define-func gtk_button_released
2094  none
2095  ((GtkButton button)))
2096
2097(define-func gtk_button_clicked
2098  none
2099  ((GtkButton button)))
2100
2101(define-func gtk_button_enter
2102  none
2103  ((GtkButton button)))
2104
2105(define-func gtk_button_leave
2106  none
2107  ((GtkButton button)))
2108
2109(define-func gtk_button_set_relief
2110  none
2111  ((GtkButton button)
2112   (GtkReliefStyle relief)))
2113
2114(define-func gtk_button_get_relief
2115  GtkReliefStyle
2116  ((GtkButton button)))
2117
2118(define-func gtk_button_set_label
2119  none
2120  ((GtkButton button)
2121   (string label)))
2122
2123(define-func gtk_button_get_label
2124  static_string
2125  ((GtkButton button)))
2126
2127(define-func gtk_button_set_use_underline
2128  none
2129  ((GtkButton button)
2130   (bool use_underline)))
2131
2132(define-func gtk_button_get_use_underline
2133  bool
2134  ((GtkButton button)))
2135
2136(define-func gtk_button_set_use_stock
2137  none
2138  ((GtkButton button)
2139   (bool use_stock)))
2140
2141(define-func gtk_button_get_use_stock
2142  bool
2143  ((GtkButton button)))
2144
2145;;; ToggleButton
2146
2147(define-object GtkToggleButton (GtkButton))
2148
2149(define-func gtk_toggle_button_new
2150  GtkWidget
2151  ())
2152
2153(define-func gtk_toggle_button_new_with_label
2154  GtkWidget
2155  ((string label)))
2156
2157(define-func gtk_toggle_button_new_with_mnemonic
2158  GtkWidget
2159  ((string mnemonic)))
2160
2161(define-func gtk_toggle_button_set_mode
2162  none
2163  ((GtkToggleButton toggle_button)
2164   (bool draw_indicator)))
2165
2166(define-func gtk_toggle_button_get_mode
2167  bool
2168  ((GtkToggleButton toggle_button)))
2169
2170(define-func gtk_toggle_button_set_active
2171  none
2172  ((GtkToggleButton toggle_button)
2173   (bool is_active)))
2174
2175(define-func gtk_toggle_button_get_active
2176  bool
2177  ((GtkToggleButton toggle_button)))
2178
2179(define-func gtk_toggle_button_toggled
2180  none
2181  ((GtkToggleButton toggle_button)))
2182
2183(define-func gtk_toggle_button_set_inconsistent
2184  none
2185  ((GtkToggleButton toggle_button)
2186   (bool setting)))
2187
2188(define-func gtk_toggle_button_get_inconsistent
2189  bool
2190  ((GtkToggleButton toggle_button)))
2191
2192;;; CheckButton
2193
2194(define-object GtkCheckButton (GtkToggleButton))
2195
2196(define-func gtk_check_button_new
2197  GtkWidget
2198  ())
2199
2200(define-func gtk_check_button_new_with_label
2201  GtkWidget
2202  ((string label)))
2203
2204(define-func gtk_check_button_new_with_mnemonic
2205  GtkWidget
2206  ((string mnemonic)))
2207
2208;;; RadioButton
2209
2210(define-object GtkRadioButton (GtkCheckButton))
2211
2212(define-func gtk_radio_button_new_from_widget
2213  GtkWidget
2214  ((GtkRadioButton group (null-ok))))
2215
2216(define-func gtk_radio_button_new_with_label_from_widget
2217  GtkWidget
2218  ((GtkRadioButton group (null-ok))
2219   (string label)))
2220
2221(define-func gtk_radio_button_new_with_mnemonic_from_widget
2222  GtkWidget
2223  ((GtkRadioButton group (null-ok))
2224   (string label)))
2225
2226;; XXX
2227;(define-func gtk_radio_button_get_group
2228;  ((slist GtkWidget))
2229;  ((GtkRadioButton button)))
2230;
2231;(define-func gtk_radio_button_set_group
2232;  none
2233;  ((GtkRadioButton button)
2234;   (slist GtkWidget)))
2235
2236;;; Misc
2237
2238(define-object GtkMisc (GtkWidget))
2239
2240(define-func gtk_misc_set_alignment
2241  none
2242  ((GtkMisc misc)
2243   (float xalign)
2244   (float yalign)))
2245
2246;; XXX get_alignment
2247
2248(define-func gtk_misc_set_padding
2249  none
2250  ((GtkMisc misc)
2251   (int xpad)
2252   (int ypad)))
2253
2254;; XXX get_padding
2255
2256;;; Arrow
2257
2258(define-object GtkArrow (GtkWidget))
2259
2260(define-func gtk_arrow_new
2261  GtkWidget
2262  ((GtkArrowType arrow_type)
2263   (GtkShadowType shadow_type)))
2264
2265(define-func gtk_arrow_set
2266  none
2267  ((GtkArrow arrow)
2268   (GtkArrowType arrow_type)
2269   (GtkShadowType shadow_type)))
2270
2271;;; Label
2272
2273(define-object GtkLabel (GtkMisc))
2274
2275(define-func gtk_label_new
2276  GtkWidget
2277  ((string str)))
2278
2279(define-func gtk_label_new_with_mnemonic
2280  GtkWidget
2281  ((string str)))
2282
2283(define-func gtk_label_set_text
2284  none
2285  ((GtkLabel label)
2286   (string str)))
2287
2288(define-func gtk_label_get_text
2289  static_string
2290  ((GtkLabel label)))
2291
2292(define-func gtk_label_set_label
2293  none
2294  ((GtkLabel label)
2295   (string str)))
2296
2297(define-func gtk_label_get_label
2298  static_string
2299  ((GtkLabel label)))
2300
2301(define-func gtk_label_set_markup
2302  none
2303  ((GtkLabel label)
2304   (string str)))
2305
2306(define-func gtk_label_set_use_markup
2307  none
2308  ((GtkLabel label)
2309   (bool setting)))
2310
2311(define-func gtk_label_get_use_markup
2312  bool
2313  ((GtkLabel label)))
2314
2315(define-func gtk_label_set_use_underline
2316  none
2317  ((GtkLabel label)
2318   (bool setting)))
2319
2320(define-func gtk_label_get_use_underline
2321  bool
2322  ((GtkLabel label)))
2323
2324(define-func gtk_label_set_markup_with_mnemonic
2325  none
2326  ((GtkLabel label)
2327   (string str)))
2328
2329(define-func gtk_label_get_mnemonic_keyval
2330  uint
2331  ((GtkLabel label)))
2332
2333(define-func gtk_label_set_mnemonic_widget
2334  none
2335  ((GtkLabel label)
2336   (GtkWidget widget)))
2337
2338(define-func gtk_label_get_mnemonic_widget
2339  GtkWidget
2340  ((GtkLabel label)))
2341
2342(define-func gtk_label_set_text_with_mnemonic
2343  none
2344  ((GtkLabel label)
2345   (string str)))
2346
2347(define-func gtk_label_set_justify
2348  none
2349  ((GtkLabel label)
2350   (GtkJustification jtype)))
2351
2352(define-func gtk_label_get_justify
2353  GtkJustification
2354  ((GtkLabel label)))
2355
2356(define-func gtk_label_set_pattern
2357  none
2358  ((GtkLabel label)
2359   (string pattern)))
2360
2361(define-func gtk_label_set_line_wrap
2362  none
2363  ((GtkLabel label)
2364   (bool wrap)))
2365
2366(define-func gtk_label_get_line_wrap
2367  bool
2368  ((GtkLabel label)))
2369
2370(define-func gtk_label_set_selectable
2371  none
2372  ((GtkLabel label)
2373   (bool setting)))
2374
2375(define-func gtk_label_get_selectable
2376  bool
2377  ((GtkLabel label)))
2378
2379(define-func gtk_label_select_region
2380  none
2381  ((GtkLabel label)
2382   (int start_offset)
2383   (int end_offset)))
2384
2385;; XXX get_layout, get_layout_offsets
2386
2387;;; GtkLayout
2388
2389(define-object GtkLayout (GtkContainer))
2390
2391(define-func gtk_layout_new
2392  GtkWidget
2393  ((GtkAdjustment hadjustment)
2394   (GtkAdjustment vadjustment)))
2395
2396(define-func gtk_layout_put
2397  none
2398  ((GtkLayout layout)
2399   (GtkWidget child_widget)
2400   (int x)
2401   (int y)))
2402
2403(define-func gtk_layout_move
2404  none
2405  ((GtkLayout layout)
2406   (GtkWidget child_widget)
2407   (int x)
2408   (int y)))
2409
2410(define-func gtk_layout_set_size
2411  none
2412  ((GtkLayout layout)
2413   (uint width)
2414   (uint height)))
2415
2416;; XXX get_size
2417
2418(define-func gtk_layout_get_hadjustment
2419  GtkAdjustment
2420  ((GtkLayout layout)))
2421
2422(define-func gtk_layout_get_vadjustment
2423  GtkAdjustment
2424  ((GtkLayout layout)))
2425
2426(define-func gtk_layout_set_hadjustment
2427  none
2428  ((GtkLayout layout)
2429   (GtkAdjustment adjustment)))
2430
2431(define-func gtk_layout_set_vadjustment
2432  none
2433  ((GtkLayout layout)
2434   (GtkAdjustment adjustment)))
2435
2436;;; GtkTipsQuery
2437
2438(define-object GtkTipsQuery (GtkLabel))
2439
2440(define-func gtk_tips_query_new
2441  GtkWidget
2442  ())
2443
2444(define-func gtk_tips_query_start_query
2445  none
2446  ((GtkTipsQuery tips_query)))
2447
2448(define-func gtk_tips_query_stop_query
2449  none
2450  ((GtkTipsQuery tips_query)))
2451
2452(define-func gtk_tips_query_set_caller
2453  none
2454  ((GtkTipsQuery tips_query)
2455   (GtkWidget caller)))
2456
2457(define-func gtk_tips_query_set_labels
2458  none
2459  ((GtkTipsQuery tips_query)
2460   (string label_inactive)
2461   (string label_no_tip)))
2462
2463;; VBox
2464
2465(define-object GtkVBox (GtkBox))
2466
2467(define-func gtk_vbox_new
2468  GtkWidget
2469  ((bool homogenous)
2470   (int spacing)))
2471
2472;; HBox
2473
2474(define-object GtkHBox (GtkBox))
2475
2476(define-func gtk_hbox_new
2477  GtkWidget
2478  ((bool homogenous)
2479   (int spacing)))
2480
2481;; Item
2482
2483(define-object GtkItem (GtkBin))
2484
2485(define-func gtk_item_select
2486  none
2487  ((GtkItem item)))
2488
2489(define-func gtk_item_deselect
2490  none
2491  ((GtkItem item)))
2492
2493(define-func gtk_item_toggle
2494  none
2495  ((GtkItem item)))
2496
2497;;;; GtkCombo
2498
2499(define-object GtkCombo (GtkHBox)
2500  (fields
2501   (GtkWidget entry)
2502   (GtkWidget button)
2503   (GtkWidget popup)
2504   (GtkWidget popwin)
2505   (GtkWidget list)))
2506
2507(define-func gtk_combo_new
2508  GtkWidget
2509  ())
2510
2511(define-func gtk_combo_set_value_in_list
2512  none
2513  ((GtkCombo combo)
2514   (bool val)
2515   (bool ok_if_empty)))
2516
2517(define-func gtk_combo_set_use_arrows
2518  none
2519  ((GtkCombo combo)
2520   (bool val)))
2521
2522(define-func gtk_combo_set_use_arrows_always
2523  none
2524  ((GtkCombo combo)
2525   (bool val)))
2526
2527(define-func gtk_combo_set_case_sensitive
2528  none
2529  ((GtkCombo combo)
2530   (bool val)))
2531
2532(define-func gtk_combo_set_item_string
2533  none
2534  ((GtkCombo combo)
2535   (GtkItem item)
2536   (string item_value)))
2537
2538(define-func gtk_combo_disable_activate
2539  none
2540  ((GtkCombo combo)))
2541
2542(define-func gtk_combo_set_popdown_strings
2543  none
2544  ((GtkCombo combo)
2545   ((list string) strings)))
2546
2547;;;; StatusBar
2548
2549(define-object GtkStatusbar (GtkHBox))
2550
2551(define-func gtk_statusbar_new
2552  GtkWidget
2553  ())
2554
2555(define-func gtk_statusbar_get_context_id
2556  uint
2557  ((GtkStatusbar statusbar)
2558   (string context_description)))
2559
2560(define-func gtk_statusbar_push
2561  uint
2562  ((GtkStatusbar statusbar)
2563   (uint context_id)
2564   (string text)))
2565
2566(define-func gtk_statusbar_pop
2567  none
2568  ((GtkStatusbar statusbar)
2569   (uint context_id)))
2570
2571(define-func gtk_statusbar_remove
2572  none
2573  ((GtkStatusbar statusbar)
2574   (uint context_id)
2575   (uint message_id)))
2576
2577;;;; GammaCurve
2578
2579(define-object GtkGammaCurve (GtkVBox)
2580  (fields
2581   (GtkWidget table)
2582   (GtkWidget curve)
2583   (float gamma)
2584   (GtkWidget gamma_dialog)
2585   (GtkWidget gamma_text)))
2586
2587(define-func gtk_gamma_curve_new
2588  GtkWidget
2589  ())
2590
2591;; Separator
2592
2593(define-object GtkSeparator (GtkWidget))
2594
2595;; HSeparator
2596
2597(define-object GtkHSeparator (GtkSeparator))
2598
2599(define-func gtk_hseparator_new
2600  GtkWidget
2601  ())
2602
2603;; VSeparator
2604
2605(define-object GtkVSeparator (GtkSeparator))
2606
2607(define-func gtk_vseparator_new
2608  GtkWidget
2609  ())
2610
2611;; Frame
2612
2613(define-object GtkFrame (GtkBin))
2614
2615(define-func gtk_frame_new
2616  GtkWidget
2617  ((string label (null-ok))))
2618
2619(define-func gtk_frame_set_label
2620  none
2621  ((GtkFrame frame)
2622   (string label)))
2623
2624(define-func gtk_frame_get_label
2625  static_string
2626  ((GtkFrame frame)))
2627
2628(define-func gtk_frame_set_label_widget
2629  none
2630  ((GtkFrame frame)
2631   (GtkWidget widget)))
2632
2633(define-func gtk_frame_get_label_widget
2634  GtkWidget
2635  ((GtkFrame frame)))
2636
2637(define-func gtk_frame_set_label_align
2638  none
2639  ((GtkFrame frame)
2640   (float xalign)
2641   (float yalign)))
2642
2643;; XXX get_label_align
2644
2645(define-func gtk_frame_set_shadow_type
2646  none
2647  ((GtkFrame frame)
2648   (GtkShadowType type)))
2649
2650(define-func gtk_frame_get_shadow_type
2651  GtkShadowType
2652  ((GtkFrame frame)))
2653
2654;; Aspect Frame
2655
2656(define-object GtkAspectFrame (GtkFrame))
2657
2658(define-func gtk_aspect_frame_new
2659  GtkWidget
2660  ((string label)
2661   (float xalign)
2662   (float yalign)
2663   (float ratio)
2664   (bool obey_child)))
2665
2666(define-func gtk_aspect_frame_set
2667  none
2668  ((GtkAspectFrame aspect_frame)
2669   (float xalign)
2670   (float yalign)
2671   (float ratio)
2672   (bool obey_child)))
2673
2674;; Progress
2675
2676(define-object GtkProgress (GtkWidget))
2677
2678;; Progress Bar
2679
2680(define-object GtkProgressBar (GtkWidget)
2681  (fields))
2682
2683(define-func gtk_progress_bar_new
2684  GtkWidget
2685  ())
2686
2687(define-func gtk_progress_bar_pulse
2688  none
2689  ((GtkProgressBar pbar)))
2690
2691(define-func gtk_progress_bar_set_text
2692  none
2693  ((GtkProgressBar pbar)
2694   (string text)))
2695
2696(define-func gtk_progress_bar_set_fraction
2697  none
2698  ((GtkProgressBar pbar)
2699   (double fraction)))
2700
2701(define-func gtk_progress_bar_set_pulse_step
2702  none
2703  ((GtkProgressBar pbar)
2704   (double fraction)))
2705
2706(define-func gtk_progress_bar_set_orientation
2707  none
2708  ((GtkProgressBar pbar)
2709   (GtkProgressBarOrientation orientation)))
2710
2711(define-func gtk_progress_bar_get_text
2712  static_string
2713  ((GtkProgressBar pbar)))
2714
2715(define-func gtk_progress_bar_get_fraction
2716  double
2717  ((GtkProgressBar pbar)))
2718
2719(define-func gtk_progress_bar_get_pulse_step
2720  double
2721  ((GtkProgressBar pbar)))
2722
2723(define-func gtk_progress_bar_get_orientation
2724  GtkProgressBarOrientation
2725  ((GtkProgressBar pbar)))
2726
2727;; Tooltips
2728
2729(define-object GtkTooltips (GtkObject))
2730
2731(define-func gtk_tooltips_new
2732  GtkTooltips
2733  ())
2734
2735(define-func gtk_tooltips_enable
2736  none
2737  ((GtkTooltips tooltips)))
2738
2739(define-func gtk_tooltips_disable
2740  none
2741  ((GtkTooltips tooltips)))
2742
2743(define-func gtk_tooltips_set_tip
2744  none
2745  ((GtkTooltips tooltips)
2746   (GtkWidget widget)
2747   (string tip_text (null-ok))
2748   (string tip_private)))
2749
2750;; XXX data_get
2751
2752(define-func gtk_tooltips_force_window
2753  none
2754  ((GtkTooltips tooltips)))
2755
2756;; MenuShell
2757
2758(define-object GtkMenuShell (GtkContainer))
2759
2760(define-func gtk_menu_shell_append
2761  none
2762  ((GtkMenuShell menu_shell)
2763   (GtkWidget child)))
2764
2765(define-func gtk_menu_shell_prepend
2766  none
2767  ((GtkMenuShell menu_shell)
2768   (GtkWidget child)))
2769
2770(define-func gtk_menu_shell_insert
2771  none
2772  ((GtkMenuShell menu_shell)
2773   (GtkWidget child)
2774   (int position)))
2775
2776(define-func gtk_menu_shell_deactivate
2777  none
2778  ((GtkMenuShell menu_shell)))
2779
2780(define-func gtk_menu_shell_select_item
2781  none
2782  ((GtkMenuShell menu_shell)
2783   (GtkWidget menu_item)))
2784
2785(define-func gtk_menu_shell_deselect
2786  none
2787  ((GtkMenuShell menu_shell)))
2788
2789(define-func gtk_menu_shell_activate_item
2790  none
2791  ((GtkMenuShell menu_shell)
2792   (GtkWidget menu_item)
2793   (bool force_deactivate)))
2794
2795;; MenuBar
2796
2797(define-object GtkMenuBar (GtkMenuShell))
2798
2799(define-func gtk_menu_bar_new
2800  GtkWidget
2801  ())
2802
2803;; Menu
2804
2805(define-object GtkMenu (GtkMenuShell))
2806
2807(define-func gtk_menu_new
2808  GtkWidget
2809  ())
2810
2811(define-func gtk_menu_popup_interp
2812  none
2813  ((GtkMenu menu)
2814   (GtkWidget parent_menu_shell (null-ok))
2815   (GtkWidget parent_menu_item (null-ok))
2816   (uint button)
2817   (uint activate_time)
2818   (SCM position)))
2819
2820(define-func gtk_menu_reposition
2821  none
2822  ((GtkMenu menu)))
2823
2824(define-func gtk_menu_popdown
2825  none
2826  ((GtkMenu menu)))
2827
2828(define-func gtk_menu_get_active
2829  GtkWidget
2830  ((GtkMenu menu)))
2831
2832(define-func gtk_menu_set_active
2833  none
2834  ((GtkMenu menu)
2835   (uint index)))
2836
2837(define-func gtk_menu_set_accel_group
2838  none
2839  ((GtkMenu menu)
2840   (GtkAccelGroup accel_group)))
2841
2842(define-func gtk_menu_get_accel_group
2843  GtkAccelGroup
2844  ((GtkMenu menu)))
2845
2846(define-func gtk_menu_set_accel_path
2847  none
2848  ((GtkMenu menu)
2849   (string accel_path)))
2850
2851;; XXX - probably needs _interp version
2852;; gtk_menu_attach_to_widget
2853
2854(define-func gtk_menu_detach
2855  none
2856  ((GtkMenu menu)))
2857
2858(define-func gtk_menu_get_attach_widget
2859  GtkWidget
2860  ((GtkMenu menu)))
2861
2862(define-func gtk_menu_set_tearoff_state
2863  none
2864  ((GtkMenu menu)
2865   (bool torn_off)))
2866
2867(define-func gtk_menu_get_tearoff_state
2868  bool
2869  ((GtkMenu menu)))
2870
2871(define-func gtk_menu_set_title
2872  none
2873  ((GtkMenu menu)
2874   (string title)))
2875
2876(define-func gtk_menu_get_title
2877  static_string
2878  ((GtkMenu menu)))
2879
2880(define-func gtk_menu_reorder_child
2881  none
2882  ((GtkMenu menu)
2883   (GtkWidget child)
2884   (int position)))
2885
2886;; MenuItem
2887
2888(define-object GtkMenuItem (GtkItem))
2889
2890(define-func gtk_menu_item_new
2891  GtkWidget
2892  ())
2893
2894(define-func gtk_menu_item_new_with_label
2895  GtkWidget
2896  ((string label)))
2897
2898(define-func gtk_menu_item_new_with_mnemonic
2899  GtkWidget
2900  ((string label)))
2901
2902(define-func gtk_menu_item_set_submenu
2903  none
2904  ((GtkMenuItem menu_item)
2905   (GtkWidget submenu)))
2906
2907(define-func gtk_menu_item_get_submenu
2908  GtkWidget
2909  ((GtkMenuItem menu_item)))
2910
2911(define-func gtk_menu_item_remove_submenu
2912  none
2913  ((GtkMenuItem menu_item)))
2914
2915(define-func gtk_menu_item_select
2916  none
2917  ((GtkMenuItem menu_item)))
2918
2919(define-func gtk_menu_item_deselect
2920  none
2921  ((GtkMenuItem menu_item)))
2922
2923(define-func gtk_menu_item_activate
2924  none
2925  ((GtkMenuItem menu_item)))
2926
2927;; XXX toggle_size_request, toggle_size_allocate
2928
2929(define-func gtk_menu_item_set_right_justified
2930  none
2931  ((GtkMenuItem menu_item)
2932   (bool setting)))
2933
2934(define-func gtk_menu_item_get_right_justified
2935  bool
2936  ((GtkMenuItem menu_item)))
2937
2938(define-func gtk_menu_item_set_accel_path
2939  none
2940  ((GtkMenuItem menu_item)
2941   (string accel_path)))
2942
2943;; CheckMenuItem
2944
2945(define-object GtkCheckMenuItem (GtkMenuItem)
2946  (fields
2947   (bool active)))
2948
2949(define-func gtk_check_menu_item_new
2950  GtkWidget
2951  ())
2952
2953(define-func gtk_check_menu_item_new_with_label
2954  GtkWidget
2955  ((string label)))
2956
2957(define-func gtk_check_menu_item_new_with_mnemonic
2958  GtkWidget
2959  ((string label)))
2960
2961(define-func gtk_check_menu_item_set_active
2962  none
2963  ((GtkCheckMenuItem check_menu_item)
2964   (bool is_active)))
2965
2966(define-func gtk_check_menu_item_get_active
2967  bool
2968  ((GtkCheckMenuItem check_menu_item)))
2969
2970(define-func gtk_check_menu_item_toggled
2971  none
2972  ((GtkCheckMenuItem check_menu_item)))
2973
2974(define-func gtk_check_menu_item_set_inconsistent
2975  none
2976  ((GtkCheckMenuItem menu_item)
2977   (bool setting)))
2978
2979(define-func gtk_check_menu_item_get_inconsistent
2980  bool
2981  ((GtkCheckMenuItem menu_item)))
2982
2983;; RadioMenuItem
2984
2985(define-object GtkRadioMenuItem (GtkCheckMenuItem))
2986
2987(define-func gtk_radio_menu_item_new_from_widget
2988  GtkWidget
2989  ((GtkRadioMenuItem group (null-ok))))
2990
2991(define-func gtk_radio_menu_item_new_with_label_from_widget
2992  GtkWidget
2993  ((GtkRadioMenuItem group (null-ok))
2994   (string label)))
2995
2996(define-func gtk_radio_menu_item_new_with_mnemonic_from_widget
2997  GtkWidget
2998  ((GtkRadioMenuItem group (null-ok))
2999   (string label)))
3000
3001;; OptionMenu
3002
3003(define-object GtkOptionMenu (GtkButton))
3004
3005(define-func gtk_option_menu_new
3006  GtkWidget
3007  ())
3008
3009(define-func gtk_option_menu_get_menu
3010  GtkWidget
3011  ((GtkOptionMenu option_menu)))
3012
3013(define-func gtk_option_menu_set_menu
3014  none
3015  ((GtkOptionMenu option_menu)
3016   (GtkWidget menu)))
3017
3018(define-func gtk_option_menu_remove_menu
3019  none
3020  ((GtkOptionMenu option_menu)))
3021
3022(define-func gtk_option_menu_get_history
3023  int
3024  ((GtkOptionMenu option_menu)))
3025
3026(define-func gtk_option_menu_set_history
3027  none
3028  ((GtkOptionMenu option_menu)
3029   (int index)))
3030
3031;; Pixmaps
3032
3033(define-object GtkPixmap (GtkMisc))
3034
3035(define-func gtk_pixmap_new_interp
3036  GtkWidget
3037  ((string xpm_file)
3038   (GtkWidget intended_parent)))
3039
3040;;; Viewport
3041
3042(define-object GtkViewport (GtkBin))
3043
3044(define-func gtk_viewport_new
3045  GtkWidget
3046  ((GtkAdjustment hadjustment)
3047   (GtkAdjustment vadjustment)))
3048
3049(define-func gtk_viewport_get_hadjustment
3050  GtkAdjustment
3051  ((GtkViewport viewport)))
3052
3053(define-func gtk_viewport_get_vadjustment
3054  GtkAdjustment
3055  ((GtkViewport viewport)))
3056
3057(define-func gtk_viewport_set_hadjustment
3058  none
3059  ((GtkViewport viewport)
3060   (GtkAdjustment adjustment)))
3061
3062(define-func gtk_viewport_set_vadjustment
3063  none
3064  ((GtkViewport viewport)
3065   (GtkAdjustment adjustment)))
3066
3067(define-func gtk_viewport_set_shadow_type
3068  none
3069  ((GtkViewport viewport)
3070   (GtkShadowType type)))
3071
3072(define-func gtk_viewport_get_shadow_type
3073  GtkShadowType
3074  ((GtkViewport viewport)))
3075
3076;; ScrolledWindow
3077
3078(define-object GtkScrolledWindow (GtkContainer))
3079
3080(define-func gtk_scrolled_window_new
3081  GtkWidget
3082  ((GtkAdjustment hadjustment (null-ok) (= "NULL"))
3083   (GtkAdjustment vadjustment (null-ok) (= "NULL"))))
3084
3085(define-func gtk_scrolled_window_set_hadjustment
3086  none
3087  ((GtkScrolledWindow scrolled_window)
3088   (GtkAdjustment hadjustment)))
3089
3090(define-func gtk_scrolled_window_set_vadjustment
3091  none
3092  ((GtkScrolledWindow scrolled_window)
3093   (GtkAdjustment vadjustment)))
3094
3095(define-func gtk_scrolled_window_get_hadjustment
3096  GtkAdjustment
3097  ((GtkScrolledWindow scrolled_window)))
3098
3099(define-func gtk_scrolled_window_get_vadjustment
3100  GtkAdjustment
3101  ((GtkScrolledWindow scrolled_window)))
3102
3103(define-func gtk_scrolled_window_set_policy
3104  none
3105  ((GtkScrolledWindow scrolled_window)
3106   (GtkPolicyType hscrollbar_policy)
3107   (GtkPolicyType vscrollbar_policy)))
3108
3109;; XXX get_policy
3110
3111(define-func gtk_scrolled_window_set_placement
3112  none
3113  ((GtkScrolledWindow scrolled_window)
3114   (GtkCornerType window_placement)))
3115
3116(define-func gtk_scrolled_window_get_placement
3117  GtkCornerType
3118  ((GtkScrolledWindow scrolled_window)))
3119
3120(define-func gtk_scrolled_window_set_shadow_type
3121  none
3122  ((GtkScrolledWindow scrolled_window)
3123   (GtkShadowType type)))
3124
3125(define-func gtk_scrolled_window_get_shadow_type
3126  GtkShadowType
3127  ((GtkScrolledWindow scrolled_window)))
3128
3129(define-func gtk_scrolled_window_add_with_viewport
3130  none
3131  ((GtkScrolledWindow scrolled_window)
3132   (GtkWidget child)))
3133
3134;; ListItem
3135
3136(define-object GtkListItem (GtkItem))
3137
3138(define-func gtk_list_item_new
3139  GtkWidget
3140  ())
3141
3142(define-func gtk_list_item_new_with_label
3143  GtkWidget
3144  ((string label)))
3145
3146(define-func gtk_list_item_select
3147  none
3148  ((GtkListItem list_item)))
3149
3150(define-func gtk_list_item_deselect
3151  none
3152  ((GtkListItem list_item)))
3153
3154;; List
3155
3156(define-object GtkList (GtkContainer))
3157
3158(define-func gtk_list_new
3159  GtkWidget
3160  ())
3161
3162(define-func gtk_list_insert_items
3163  none
3164  ((GtkList list)
3165   ((list GtkListItem) items)
3166   (int position)))
3167
3168(define-func gtk_list_append_items
3169  none
3170  ((GtkList list)
3171   ((list GtkListItem) items)))
3172
3173(define-func gtk_list_prepend_items
3174  none
3175  ((GtkList list)
3176   ((list GtkListItem) items)))
3177
3178(define-func gtk_list_remove_items
3179  none
3180  ((GtkList list)
3181   ((list GtkListItem) items)))
3182
3183;; in gtk-compat.c
3184(define-func gtk_list_append_item
3185  none
3186  ((GtkList list)
3187   (GtkListItem item)))
3188(define-func gtk_list_prepend_item
3189  none
3190  ((GtkList list)
3191   (GtkListItem item)))
3192
3193;; XXX many missing
3194
3195(define-func gtk_list_clear_items
3196  none
3197  ((GtkList list)
3198   (int start)
3199   (int end)))
3200
3201(define-func gtk_list_select_item
3202  none
3203  ((GtkList list)
3204   (int item)))
3205
3206(define-func gtk_list_unselect_item
3207  none
3208  ((GtkList list)
3209   (int item)))
3210
3211(define-func gtk_list_select_child
3212  none
3213  ((GtkList list)
3214   (GtkWidget child)))
3215
3216(define-func gtk_list_unselect_child
3217  none
3218  ((GtkList list)
3219   (GtkWidget child)))
3220
3221(define-func gtk_list_child_position
3222  int
3223  ((GtkList list)
3224   (GtkWidget child)))
3225
3226(define-func gtk_list_set_selection_mode
3227  none
3228  ((GtkList list)
3229   (GtkSelectionMode mode)))
3230
3231(define-func gtk_list_extend_selection
3232  none
3233  ((GtkList list)
3234   (GtkScrollType scroll_type)
3235   (float position)
3236   (bool auto_start_selection)))
3237
3238(define-func gtk_list_start_selection
3239  none
3240  ((GtkList list)))
3241
3242(define-func gtk_list_end_selection
3243  none
3244  ((GtkList list)))
3245
3246(define-func gtk_list_select_all
3247  none
3248  ((GtkList list)))
3249
3250(define-func gtk_list_unselect_all
3251  none
3252  ((GtkList list)))
3253
3254(define-func gtk_list_scroll_horizontal
3255  none
3256  ((GtkList list)
3257   (GtkScrollType type)
3258   (float position)))
3259
3260(define-func gtk_list_scroll_vertical
3261  none
3262  ((GtkList list)
3263   (GtkScrollType type)
3264   (float position)))
3265
3266(define-func gtk_list_toggle_add_mode
3267  none
3268  ((GtkList list)))
3269
3270(define-func gtk_list_toggle_focus_row
3271  none
3272  ((GtkList list)))
3273
3274(define-func gtk_list_toggle_row
3275  none
3276  ((GtkList list)
3277   (GtkWidget item)))
3278
3279(define-func gtk_list_undo_selection
3280  none
3281  ((GtkList list)))
3282
3283(define-func gtk_list_end_drag_selection
3284  none
3285  ((GtkList list)))
3286
3287;; Notebook
3288
3289(define-object GtkNotebook (GtkContainer)
3290  (fields
3291   (GtkPositionType tab_pos)))
3292
3293(define-func gtk_notebook_new
3294  GtkWidget
3295  ())
3296
3297(define-func gtk_notebook_append_page
3298  none
3299  ((GtkNotebook notebook)
3300   (GtkWidget child)
3301   (GtkWidget tab_label)))
3302
3303(define-func gtk_notebook_append_page_menu 
3304  none
3305  ((GtkNotebook notebook)
3306   (GtkWidget child)
3307   (GtkWidget tab_label)
3308   (GtkWidget menu_label)))
3309
3310(define-func gtk_notebook_prepend_page
3311  none
3312  ((GtkNotebook notebook)
3313   (GtkWidget child)
3314   (GtkWidget tab_label)))
3315
3316(define-func gtk_notebook_prepend_page_menu
3317  none
3318  ((GtkNotebook notebook)
3319   (GtkWidget child)
3320   (GtkWidget tab_label)
3321   (GtkWidget menu_label)))
3322
3323(define-func gtk_notebook_insert_page
3324  none
3325  ((GtkNotebook notebook)
3326   (GtkWidget child)
3327   (GtkWidget tab_label)
3328   (int position)))
3329
3330(define-func gtk_notebook_insert_page_menu
3331  none
3332  ((GtkNotebook notebook)
3333   (GtkWidget child)
3334   (GtkWidget tab_label)
3335   (GtkWidget menu_label)
3336   (int position)))
3337
3338(define-func gtk_notebook_remove_page
3339  none
3340  ((GtkNotebook notebook)
3341   (int page_num)))
3342
3343(define-func gtk_notebook_get_current_page
3344  int
3345  ((GtkNotebook notebook)))
3346
3347(define-func gtk_notebook_get_nth_page
3348  GtkWidget
3349  ((GtkNotebook notebook)
3350   (int page_num)))
3351
3352(define-func gtk_notebook_page_num
3353  int
3354  ((GtkNotebook notebook)
3355   (GtkWidget child)))
3356
3357(define-func gtk_notebook_set_current_page
3358  none
3359  ((GtkNotebook notebook)
3360   (int page_num)))
3361
3362(define-func gtk_notebook_next_page
3363  none
3364  ((GtkNotebook notebook)))
3365
3366(define-func gtk_notebook_prev_page
3367  none
3368  ((GtkNotebook notebook)))
3369
3370(define-func gtk_notebook_set_show_border
3371  none
3372  ((GtkNotebook notebook)
3373   (bool show_border)))
3374
3375(define-func gtk_notebook_get_show_border
3376  bool
3377  ((GtkNotebook notebook)))
3378
3379(define-func gtk_notebook_set_show_tabs
3380  none
3381  ((GtkNotebook notebook)
3382   (bool show_tabs)))
3383
3384(define-func gtk_notebook_get_show_tabs
3385  bool
3386  ((GtkNotebook notebook)))
3387
3388(define-func gtk_notebook_set_tab_pos
3389  none
3390  ((GtkNotebook notebook)
3391   (GtkPositionType pos)))
3392
3393(define-func gtk_notebook_get_tab_pos
3394  GtkPositionType
3395  ((GtkNotebook notebook)))
3396
3397(define-func gtk_notebook_set_scrollable
3398  none
3399  ((GtkNotebook notebook)
3400   (bool scrollable)))
3401
3402(define-func gtk_notebook_get_scrollable
3403  bool
3404  ((GtkNotebook notebook)))
3405
3406(define-func gtk_notebook_popup_enable
3407  none
3408  ((GtkNotebook notebook)))
3409   
3410(define-func gtk_notebook_popup_disable
3411  none
3412  ((GtkNotebook notebook)))
3413
3414(define-func gtk_notebook_get_tab_label
3415  GtkWidget
3416  ((GtkNotebook notebook)
3417   (GtkWidget child)))
3418
3419(define-func gtk_notebook_set_tab_label
3420  none
3421  ((GtkNotebook notebook)
3422   (GtkWidget child)
3423   (GtkWidget tab_label)))
3424
3425(define-func gtk_notebook_set_tab_label_text
3426  none
3427  ((GtkNotebook notebook)
3428   (GtkWidget child)
3429   (string text)))
3430
3431(define-func gtk_notebook_get_tab_label_text
3432  static_string
3433  ((GtkNotebook notebook)
3434   (GtkWidget child)))
3435
3436(define-func gtk_notebook_get_menu_label
3437  GtkWidget
3438  ((GtkNotebook notebook)
3439   (GtkWidget child)))
3440
3441(define-func gtk_notebook_set_menu_label
3442  none
3443  ((GtkNotebook notebook)
3444   (GtkWidget child)
3445   (GtkWidget menu_label)))
3446
3447(define-func gtk_notebook_set_menu_label_text
3448  none
3449  ((GtkNotebook notebook)
3450   (GtkWidget child)
3451   (string text)))
3452
3453(define-func gtk_notebook_get_menu_label_text
3454  static_string
3455  ((GtkNotebook notebook)
3456   (GtkWidget child)))
3457
3458;; XXX query_tab_label_packing, set_tab_label_packing
3459
3460(define-func gtk_notebook_reorder_child
3461  none
3462  ((GtkNotebook notebook)
3463   (GtkWidget child)
3464   (int position)))
3465
3466;; Editable
3467
3468(define-object GtkEditable (GtkWidget))
3469
3470(define-func gtk_editable_select_region
3471  none
3472  ((GtkEditable editable)
3473   (int start)
3474   (int end)))
3475
3476;; XXX get_selection_bounds
3477
3478(define-func gtk_editable_insert_text
3479  none
3480  ((GtkEditable editable)
3481   (string new_text)
3482   (int new_text_length)
3483   ((fvec int 1 inout) position)))
3484
3485(define-func gtk_editable_delete_text
3486  none
3487  ((GtkEditable editable)
3488   (int start_pos)
3489   (int end_pos)))
3490
3491(define-func gtk_editable_get_chars
3492  string
3493  ((GtkEditable editable)
3494   (int start_pos)
3495   (int end_pos)))
3496
3497(define-func gtk_editable_cut_clipboard
3498  none
3499  ((GtkEditable editable)))
3500
3501(define-func gtk_editable_copy_clipboard
3502  none
3503  ((GtkEditable editable)))
3504
3505(define-func gtk_editable_paste_clipboard
3506  none
3507  ((GtkEditable editable)))
3508
3509(define-func gtk_editable_delete_selection
3510  none
3511  ((GtkEditable editable)))
3512
3513(define-func gtk_editable_set_position
3514  none
3515  ((GtkEditable editable)
3516   (int position)))
3517
3518(define-func gtk_editable_get_position
3519  int
3520  ((GtkEditable editable)))
3521
3522(define-func gtk_editable_set_editable
3523  none
3524  ((GtkEditable editable)
3525   (bool is_editable)))
3526
3527(define-func gtk_editable_get_editable
3528  bool
3529  ((GtkEditable editable)))
3530
3531;; Entry
3532
3533(define-object GtkEntry (GtkEditable))
3534
3535(define-func gtk_entry_new
3536  GtkWidget
3537  ())
3538
3539(define-func gtk_entry_set_visibility
3540  none
3541  ((GtkEntry entry)
3542   (bool visible)))
3543
3544(define-func gtk_entry_get_visibility
3545  bool
3546  ((GtkEntry entry)))
3547
3548;; XXX unichar?
3549;(define-func gtk_entry_set_invisibile_char
3550;  none
3551;  ((GtkEntry entry)
3552;   (unichar ch)))
3553;
3554;(define-func gtk_entry_get_invisibile_char
3555;  unichar
3556;  ((GtkEntry entry)))
3557
3558(define-func gtk_entry_set_has_frame
3559  none
3560  ((GtkEntry entry)
3561   (bool setting)))
3562
3563(define-func gtk_entry_get_has_frame
3564  bool
3565  ((GtkEntry entry)))
3566
3567(define-func gtk_entry_set_max_length
3568  none
3569  ((GtkEntry entry)
3570   (int max)))
3571
3572(define-func gtk_entry_get_max_length
3573  int
3574  ((GtkEntry entry)))
3575
3576(define-func gtk_entry_set_activates_default
3577  none
3578  ((GtkEntry entry)
3579   (bool setting)))
3580
3581(define-func gtk_entry_get_activates_default
3582  bool
3583  ((GtkEntry entry)))
3584
3585(define-func gtk_entry_set_width_chars
3586  none
3587  ((GtkEntry entry)
3588   (int n_chars)))
3589
3590(define-func gtk_entry_get_width_chars
3591  int
3592  ((GtkEntry entry)))
3593
3594(define-func gtk_entry_set_text
3595  none
3596  ((GtkEntry entry)
3597   (string text)))
3598
3599(define-func gtk_entry_get_text
3600  static_string
3601  ((GtkEntry entry)))
3602
3603;; SpinButton
3604
3605(define-object GtkSpinButton (GtkEntry))
3606
3607(define-func gtk_spin_button_new
3608  GtkWidget
3609  ((GtkAdjustment adjustment)
3610   (double climb_rate)
3611   (int digits)))
3612 
3613(define-func gtk_spin_button_new_with_range
3614  GtkWidget
3615  ((double min)
3616   (double max)
3617   (double step)))
3618
3619(define-func gtk_spin_button_set_adjustment
3620  none
3621  ((GtkSpinButton spin_button)
3622   (GtkAdjustment adjustment)))
3623
3624(define-func gtk_spin_button_get_adjustment
3625  GtkAdjustment
3626  ((GtkSpinButton spin_button)))
3627
3628(define-func gtk_spin_button_set_digits
3629  none
3630  ((GtkSpinButton spin_button)
3631   (int digits)))
3632
3633(define-func gtk_spin_button_get_digits
3634  int
3635  ((GtkSpinButton spin_button)))
3636
3637(define-func gtk_spin_button_set_increments
3638  none
3639  ((GtkSpinButton spin_button)
3640   (double step)
3641   (double page)))
3642
3643;; XXX get_increments
3644
3645(define-func gtk_spin_button_set_range
3646  none
3647  ((GtkSpinButton spin_button)
3648   (double min)
3649   (double max)))
3650
3651;; XXX get_range
3652
3653(define-func gtk_spin_button_get_value
3654  double
3655  ((GtkSpinButton spin_button)))
3656
3657(define-func gtk_spin_button_get_value_as_int 
3658  int
3659  ((GtkSpinButton spin_button)))
3660
3661(define-func gtk_spin_button_set_value
3662  none
3663  ((GtkSpinButton spin_button)
3664   (double value)))
3665
3666(define-func gtk_spin_button_set_update_policy
3667  none
3668  ((GtkSpinButton spin_button)
3669   (GtkSpinButtonUpdatePolicy policy)))
3670
3671(define-func gtk_spin_button_get_update_policy
3672  GtkSpinButtonUpdatePolicy
3673  ((GtkSpinButton spin_button)))
3674
3675(define-func gtk_spin_button_set_numeric
3676  none
3677  ((GtkSpinButton spin_button)
3678   (bool numeric)))
3679
3680(define-func gtk_spin_button_get_numeric
3681  bool
3682  ((GtkSpinButton spin_button)))
3683
3684(define-func gtk_spin_button_spin
3685  none
3686  ((GtkSpinButton spin_button)
3687   (GtkSpinType direction)
3688   (double increment)))
3689
3690(define-func gtk_spin_button_set_wrap
3691  none
3692  ((GtkSpinButton spin_button)
3693   (bool wrap)))
3694
3695(define-func gtk_spin_button_get_wrap
3696  bool
3697  ((GtkSpinButton spin_button)))
3698
3699(define-func gtk_spin_button_set_snap_to_ticks
3700  none
3701  ((GtkSpinButton spin_button)
3702   (bool snap_to_ticks)))
3703
3704(define-func gtk_spin_button_get_snap_to_ticks
3705  bool
3706  ((GtkSpinButton spin_button)))
3707
3708(define-func gtk_spin_button_update
3709  none
3710  ((GtkSpinButton spin_button)))
3711
3712;; Alignment
3713
3714(define-object GtkAlignment (GtkBin))
3715
3716(define-func gtk_alignment_new
3717  GtkWidget
3718  ((float xalign)
3719   (float yalign)
3720   (float xscale)
3721   (float yscale)))
3722
3723(define-func gtk_alignment_set
3724  none
3725  ((GtkAlignment alignment)
3726   (float xalign)
3727   (float yalign)
3728   (float xscale)
3729   (float yscale)))
3730
3731;; DrawingArea
3732
3733(define-object GtkDrawingArea (GtkWidget))
3734
3735(define-func gtk_drawing_area_new
3736  GtkWidget
3737  ())
3738
3739;; Curve
3740
3741(define-object GtkCurve (GtkDrawingArea))
3742
3743(define-func gtk_curve_new
3744  GtkWidget
3745  ())
3746
3747(define-func gtk_curve_reset
3748  none
3749  ((GtkCurve curve)))
3750
3751(define-func gtk_curve_set_gamma
3752  none
3753  ((GtkCurve curve)
3754   (float gamma)))
3755
3756(define-func gtk_curve_set_range
3757  none
3758  ((GtkCurve curve)
3759   (float min_x)
3760   (float max_x)
3761   (float min_y)
3762   (float max_y)))
3763
3764;; XXX - needs to convert something to length and array of floats
3765;; (define-func gtk_curve_set_vector)
3766
3767;; XXX - needs to convert something to length and array of floats
3768;; (define-func gtk_curve_get_vector)
3769
3770(define-func gtk_curve_set_curve_type
3771  none
3772  ((GtkCurve curve)
3773   (GtkCurveType type)))
3774
3775
3776;; Preview
3777
3778(define-object GtkPreview (GtkWidget))
3779
3780(define-func gtk_preview_new
3781  GtkWidget
3782  ((GtkPreviewType type)))
3783
3784(define-func gtk_preview_size
3785  none
3786  ((GtkPreview preview)
3787   (int width)
3788   (int height)))
3789
3790(define-func gtk_preview_put
3791  none
3792  ((GtkPreview preview)
3793   (GdkWindow window)
3794   (GdkGC gc)
3795   (int srcx)
3796   (int srcy)
3797   (int destx)
3798   (int desty)
3799   (int width)
3800   (int height)))
3801
3802(define-func gtk_preview_draw_row
3803  none
3804  ((GtkPreview preview)
3805   (string data)
3806   (int x)
3807   (int y)
3808   (int w)))
3809
3810(define-func gtk_preview_set_expand
3811  none
3812  ((GtkPreview preview)
3813   (bool expand)))
3814
3815(define-func gtk_preview_set_gamma
3816  none
3817  ((double gamma)))
3818
3819(define-func gtk_preview_set_color_cube
3820  none
3821  ((uint nred_shades)
3822   (uint ngreen_shades)
3823   (uint nblue_shades)
3824   (uint ngray_shades)))
3825
3826(define-func gtk_preview_set_install_cmap
3827  none
3828  ((bool install_cmap)))
3829
3830(define-func gtk_preview_set_reserved
3831  none
3832  ((int nreserved)))
3833
3834;; FileSelection
3835
3836(define-object GtkFileSelection (GtkWindow)
3837  (fields
3838   (GtkWidget dir_list)
3839   (GtkWidget file_list)
3840   (GtkWidget selection_entry)
3841   (GtkWidget selection_text)
3842   (GtkWidget main_vbox)
3843   (GtkWidget ok_button)
3844   (GtkWidget cancel_button)
3845   (GtkWidget help_button)
3846   (GtkWidget action_area)))
3847
3848(define-func gtk_file_selection_new
3849  GtkWidget
3850  ((string title)))
3851
3852(define-func gtk_file_selection_set_filename
3853  none
3854  ((GtkFileSelection filesel)
3855   (string filename)))
3856
3857(define-func gtk_file_selection_get_filename
3858  static_string
3859  ((GtkFileSelection filesel)))
3860
3861(define-func gtk_file_selection_complete
3862  none
3863  ((GtkFileSelection filesel)
3864   (string pattern)))
3865
3866(define-func gtk_file_selection_show_fileop_buttons
3867  none
3868  ((GtkFileSelection filesel)))
3869
3870(define-func gtk_file_selection_hide_fileop_buttons
3871  none
3872  ((GtkFileSelection filesel)))
3873
3874;; FontSelectionDialog
3875
3876(define-object GtkFontSelectionDialog (GtkWindow)
3877  (fields
3878   (GtkWidget main_vbox)
3879   (GtkWidget action_area)
3880   (GtkWidget ok_button)
3881   (GtkWidget apply_button)
3882   (GtkWidget cancel_button)))
3883   
3884(define-func gtk_font_selection_dialog_new
3885  GtkWidget
3886  ((string title)))
3887
3888(define-func gtk_font_selection_dialog_get_font_name
3889  string
3890  ((GtkFontSelectionDialog fontsel)))
3891
3892(define-func gtk_font_selection_dialog_set_font_name
3893  bool
3894  ((GtkFontSelectionDialog fontsel)
3895   (string fontname)))
3896
3897(define-func gtk_font_selection_dialog_get_preview_text
3898  static_string
3899  ((GtkFontSelectionDialog fontsel)))
3900 
3901(define-func gtk_font_selection_dialog_set_preview_text
3902  none
3903  ((GtkFontSelectionDialog fontsel)
3904   (string text)))
3905   
3906;; ColorSelectionDialog
3907
3908(define-object GtkColorSelectionDialog (GtkWindow)
3909  (fields
3910   (GtkWidget colorsel)
3911   (GtkWidget ok_button)
3912   (GtkWidget cancel_button)
3913   (GtkWidget help_button)))
3914
3915(define-func gtk_color_selection_dialog_new
3916  GtkWidget
3917  ((string title)))
3918
3919;; ColorSelection
3920
3921(define-object GtkColorSelection (GtkVBox))
3922
3923(define-func gtk_color_selection_new
3924  GtkWidget
3925  ())
3926
3927(define-func gtk_color_selection_set_has_opacity_control
3928  none
3929  ((GtkColorSelection colorsel)
3930   (bool has_opacity)))
3931
3932(define-func gtk_color_selection_get_has_opacity_control
3933  bool
3934  ((GtkColorSelection colorsel)))
3935
3936(define-func gtk_color_selection_get_has_palette
3937  bool
3938  ((GtkColorSelection colorsel)))
3939
3940(define-func gtk_color_selection_set_has_palette
3941  none
3942  ((GtkColorSelection colorsel)
3943   (bool setting)))
3944
3945(define-func gtk_color_selection_set_current_color
3946  none
3947  ((GtkColorSelection colorsel)
3948   (GdkColor color)))
3949
3950(define-func gtk_color_selection_set_current_alpha
3951  none
3952  ((GtkColorSelection colorsel)
3953   (ushort alpha)))
3954
3955;; XXX get_current_color
3956
3957(define-func gtk_color_selection_get_current_alpha
3958  ushort
3959  ((GtkColorSelection colorsel)))
3960
3961;; XXX `previous' functions
3962
3963(define-func gtk_color_selection_is_adjusting
3964  bool
3965  ((GtkColorSelection colorsel)))
3966
3967;; XXX palette_from,to_string
3968
3969(define-func gtk_color_selection_set_color_interp
3970  none
3971  ((GtkColorSelection colorsel)
3972   (GdkColor color)))
3973
3974;; This returns a color which is not allocated in any colormap.
3975(define-func gtk_color_selection_get_color_interp
3976  GdkColor
3977  ((GtkColorSelection colorsel))) 
3978
3979;; Range
3980
3981(define-object GtkRange (GtkWidget))
3982
3983(define-func gtk_range_set_update_policy
3984  none
3985  ((GtkRange range)
3986   (GtkUpdateType policy)))
3987
3988(define-func gtk_range_get_update_policy
3989  GtkUpdateType
3990  ((GtkRange range)))
3991
3992(define-func gtk_range_set_adjustment
3993  none
3994  ((GtkRange range)
3995   (GtkAdjustment adjustment)))
3996
3997(define-func gtk_range_get_adjustment
3998  GtkAdjustment
3999  ((GtkRange range)))
4000
4001(define-func gtk_range_set_inverted
4002  none
4003  ((GtkRange range)
4004   (bool setting)))
4005
4006(define-func gtk_range_get_inverted
4007  bool
4008  ((GtkRange range)))
4009
4010(define-func gtk_range_set_increments
4011  none
4012  ((GtkRange range)
4013   (double step)
4014   (double page)))
4015
4016(define-func gtk_range_set_range
4017  none
4018  ((GtkRange range)
4019   (double min)
4020   (double max)))
4021
4022(define-func gtk_range_set_value
4023  none
4024  ((GtkRange range)
4025   (double value)))
4026
4027(define-func gtk_range_get_value
4028  double
4029  ((GtkRange range)))
4030
4031;; Scale
4032
4033(define-object GtkScale (GtkRange))
4034
4035(define-func gtk_scale_set_digits
4036  none
4037  ((GtkScale scale)
4038   (int digits)))
4039
4040(define-func gtk_scale_get_digits
4041  int
4042  ((GtkScale scale)))
4043
4044(define-func gtk_scale_set_draw_value
4045  none
4046  ((GtkScale scale)
4047   (bool draw_value)))
4048
4049(define-func gtk_scale_get_draw_value
4050  bool
4051  ((GtkScale scale)))
4052
4053(define-func gtk_scale_set_value_pos
4054  none
4055  ((GtkScale scale)
4056   (GtkPositionType pos)))
4057
4058(define-func gtk_scale_get_value_pos
4059  GtkPositionType
4060  ((GtkScale scale)))
4061
4062;; HScale
4063
4064(define-object GtkHScale (GtkScale))
4065
4066(define-func gtk_hscale_new
4067  GtkWidget
4068  ((GtkAdjustment adjustment)))
4069
4070(define-func gtk_hscale_new_with_range
4071  GtkWidget
4072  ((double min)
4073   (double max)
4074   (double step)))
4075
4076;; VScale
4077
4078(define-object GtkVScale (GtkScale))
4079
4080(define-func gtk_vscale_new
4081  GtkWidget
4082  ((GtkAdjustment adjustment)))
4083
4084(define-func gtk_vscale_new_with_range
4085  GtkWidget
4086  ((double min)
4087   (double max)
4088   (double step)))
4089
4090;; Scrollbar
4091
4092(define-object GtkScrollbar (GtkRange))
4093
4094;; HScrollbar
4095
4096(define-object GtkHScrollbar (GtkScrollbar))
4097
4098(define-func gtk_hscrollbar_new
4099  GtkWidget
4100  ((GtkAdjustment adjustment)))
4101
4102;; VScrollbar
4103
4104(define-object GtkVScrollbar (GtkScrollbar))
4105
4106(define-func gtk_vscrollbar_new
4107  GtkWidget
4108  ((GtkAdjustment adjustment)))
4109
4110;; Ruler
4111
4112(define-object GtkRuler (GtkWidget))
4113
4114(define-func gtk_ruler_set_metric
4115  none
4116  ((GtkRuler ruler)
4117   (GtkMetricType metric)))
4118
4119(define-func gtk_ruler_set_range
4120  none
4121  ((GtkRuler ruler)
4122   (float lower)
4123   (float upper)
4124   (float position)
4125   (float max_size)))
4126
4127(define-func gtk_ruler_draw_ticks
4128  none
4129  ((GtkRuler ruler)))
4130
4131(define-func gtk_ruler_draw_pos
4132  none
4133  ((GtkRuler ruler)))
4134
4135(define-func gtk_ruler_get_metric
4136  GtkMetricType
4137  ((GtkRuler ruler)))
4138
4139;; XXX get_range
4140
4141;; HRuler
4142
4143(define-object GtkHRuler (GtkRuler))
4144
4145(define-func gtk_hruler_new
4146  GtkWidget
4147  ())
4148
4149;; VRuler
4150
4151(define-object GtkVRuler (GtkRuler))
4152
4153(define-func gtk_vruler_new
4154  GtkWidget
4155  ())
4156
4157;; Dialog
4158
4159(define-object GtkDialog (GtkWindow)
4160  (fields
4161   (GtkWidget vbox)
4162   (GtkWidget action_area)))
4163
4164(define-func gtk_dialog_new
4165  GtkWidget
4166  ())
4167
4168;; XXX new_with_buttons
4169
4170(define-func gtk_dialog_add_button
4171  GtkWidget
4172  ((GtkDialog dialog)
4173   (string button_text)
4174   (int response_id)))
4175
4176;; XXX add_buttons
4177
4178(define-func gtk_dialog_set_response_sensitive
4179  none
4180  ((GtkDialog dialog)
4181   (int response_id)
4182   (bool setting)))
4183
4184(define-func gtk_dialog_set_default_response
4185  none
4186  ((GtkDialog dialog)
4187   (int response_id)))
4188
4189(define-func gtk_dialog_set_has_separator
4190  none
4191  ((GtkDialog dialog)
4192   (bool setting)))
4193
4194(define-func gtk_dialog_get_has_separator
4195  bool
4196  ((GtkDialog dialog)))
4197
4198(define-func gtk_dialog_response
4199  none
4200  ((GtkDialog dialog)
4201   (int response_id)))
4202
4203(define-func gtk_dialog_run
4204  int
4205  ((GtkDialog dialog)))
4206
4207;; InputDialog
4208
4209(define-object GtkInputDialog (GtkDialog)
4210  (fields
4211   (GtkWidget close_button)
4212   (GtkWidget save_button)))
4213
4214(define-func gtk_input_dialog_new
4215  GtkWidget
4216  ())
4217
4218;; Paned
4219
4220(define-object GtkPaned (GtkContainer))
4221
4222(define-func gtk_paned_add1
4223  none
4224  ((GtkPaned paned)
4225   (GtkWidget child)))
4226
4227(define-func gtk_paned_add2
4228  none
4229  ((GtkPaned paned)
4230   (GtkWidget child)))
4231
4232(define-func gtk_paned_pack1
4233  none
4234  ((GtkPaned paned)
4235   (GtkWidget child)
4236   (bool resize)
4237   (bool shrink)))
4238
4239(define-func gtk_paned_pack2
4240  none
4241  ((GtkPaned paned)
4242   (GtkWidget child)
4243   (bool resize)
4244   (bool shrink)))
4245
4246(define-func gtk_paned_get_position
4247  int
4248  ((GtkPaned paned)))
4249
4250(define-func gtk_paned_set_position
4251  none
4252  ((GtkPaned paned)
4253   (int position)))
4254
4255;; HPaned
4256
4257(define-object GtkHPaned (GtkPaned))
4258
4259(define-func gtk_hpaned_new
4260  GtkWidget
4261  ())
4262
4263;; VPaned
4264
4265(define-object GtkVPaned (GtkPaned))
4266
4267(define-func gtk_vpaned_new
4268  GtkWidget
4269  ())
4270
4271;; Types
4272
4273(define-func gtk_type_name
4274  static_string
4275  ((type type)))
4276
4277(define-func gtk_type_from_name
4278  type
4279  ((string name)))
4280
4281;(define-func gtk_class_new
4282;  type
4283;  ((type parent)
4284;   (string name)))
4285;
4286;(define-func gtk_signal_new_generic
4287;  int
4288;  ((string name)
4289;   (GtkSignalRunType signal_flags)
4290;   (type class_type)
4291;   (type return_type)
4292;   ((cvec type) params)))
4293;
4294;(define-func sgtk_signal_emit
4295;  none
4296;  ((GtkObject object)
4297;   (string signal)
4298;   (SCM args))
4299;  (scm-name "gtk-signal-emit")
4300;  (rest-arg t))
4301
4302(define-func gtk_signal_set_class_function_full
4303  none
4304  ((type class)
4305   (string signal)
4306   (full-callback function))
4307  (protection t)
4308  (scm-name "gtk-signal-set-class-function"))
4309
4310;; Plug
4311
4312(define-object GtkPlug (GtkWindow)
4313  (fields
4314   (GdkWindow socket_window)))
4315
4316(define-func gtk_plug_construct
4317  none
4318  ((GtkPlug plug)
4319   (uint id)))
4320
4321(define-func gtk_plug_new
4322  GtkWidget
4323  ((uint socket_id)))
4324
4325;; Socket
4326
4327(define-object GtkSocket (GtkContainer)
4328  (fields
4329   (GdkWindow plug_window)))
4330
4331(define-func gtk_socket_new
4332  GtkWidget
4333  ())
4334
4335(define-func gtk_socket_add_id
4336  none
4337  ((GtkSocket socket)
4338   (ulong window_id)))
4339
4340(define-func gtk_socket_get_id
4341  ulong
4342  ((GtkSocket socket)))
4343
4344;; TearoffMenuItem
4345
4346(define-object GtkTearoffMenuItem (GtkMenuItem)
4347  (fields
4348   (bool torn_off)))
4349
4350(define-func gtk_tearoff_menu_item_new
4351  GtkWidget
4352  ())
4353
4354;; Calendar
4355
4356(define-object GtkCalendar (GtkWidget))
4357
4358(define-func gtk_calendar_new
4359  GtkWidget
4360  ())
4361
4362(define-func gtk_calendar_select_month
4363  none
4364  ((GtkCalendar cal)
4365   (uint month)
4366   (uint year)))
4367
4368(define-func gtk_calendar_select_day
4369  none
4370  ((GtkCalendar cal)
4371   (uint day)))
4372
4373(define-func gtk_calendar_mark_day
4374  bool
4375  ((GtkCalendar cal)
4376   (uint day)))
4377
4378(define-func gtk_calendar_unmark_day
4379  bool
4380  ((GtkCalendar cal)
4381   (uint day)))
4382
4383(define-func gtk_calendar_clear_marks
4384  none
4385  ((GtkCalendar cal)))
4386
4387(define-func gtk_calendar_display_options
4388  none
4389  ((GtkCalendar cal)
4390   (GtkCalendarDisplayOptions flags)))
4391
4392(define-func gtk_calendar_get_date
4393  none
4394  ((GtkCalendar cal)
4395   ((fvec uint 1 out) year)
4396   ((fvec uint 1 out) month)
4397   ((fvec uint 1 out) day)))
4398
4399(define-func gtk_calendar_freeze
4400  none
4401  ((GtkCalendar cal)))
4402
4403(define-func gtk_calendar_thaw
4404  none
4405  ((GtkCalendar cal)))
4406
4407;; IconFactory
4408
4409(define-object GtkIconFactory (GObject))
4410
4411(define-boxed GtkIconSet
4412  (copy gtk_icon_set_copy)
4413  (free gtk_icon_set_unref))
4414
4415(define-func gtk_icon_factory_new
4416  GtkIconFactory
4417  ())
4418
4419(define-func gtk_icon_factory_add
4420  none
4421  ((GtkIconFactory factory)
4422   (string stock_id)
4423   (GtkIconSet icon_set)))
4424
4425(define-func gtk_icon_factory_lookup
4426  GtkIconSet
4427  ((GtkIconFactory factory)
4428   (string stock_id)))
4429
4430(define-func gtk_icon_factory_add_default
4431  none
4432  ((GtkIconFactory factory)))
4433
4434(define-func gtk_icon_factory_remove_default
4435  none
4436  ((GtkIconFactory factory)))
4437
4438(define-func gtk_icon_factory_lookup_default
4439  GtkIconSet
4440  ((string stock_id)))
4441
4442;; XXX size_lookup
4443
4444(define-func gtk_icon_size_register
4445  GtkIconSize
4446  ((string name)
4447   (int width)
4448   (int height)))
4449
4450(define-func gtk_icon_size_register_alias
4451  none
4452  ((string alias)
4453   (GtkIconSize target)))
4454
4455(define-func gtk_icon_size_from_name
4456  GtkIconSize
4457  ((string name)))
4458
4459(define-func gtk_icon_size_get_name
4460  static_string
4461  ((GtkIconSize size)))
4462
4463(define-func gtk_icon_set_render_icon
4464  GdkPixbuf
4465  ((GtkIconSet icon_set)
4466   (GtkStyle style (null-ok))
4467   (GtkTextDirection direction)
4468   (GtkStateType state)
4469   (GtkIconSize size)
4470   (GtkWidget widget (null-ok))
4471   (string detail (null-ok))))
4472
4473;; XXX icon_source foo
4474
4475;; Image
4476
4477(define-object GtkImage (GtkMisc))
4478
4479(define-func gtk_image_new
4480  GtkWidget
4481  ())
4482
4483(define-func gtk_image_new_from_file
4484  GtkWidget
4485  ((string filename)))
4486
4487(define-func gtk_image_new_from_pixbuf
4488  GtkWidget
4489  ((GdkPixbuf pixbuf)))
4490
4491(define-func gtk_image_new_from_stock
4492  GtkWidget
4493  ((string stock_id)
4494   (GtkIconSize size)))
4495
4496(define-func gtk_image_new_from_icon_set
4497  GtkWidget
4498  ((GtkIconSet icon_set)
4499   (GtkIconSize size)))
4500
4501(define-func gtk_image_set_from_file
4502  none
4503  ((GtkImage image)
4504   (string filename)))
4505
4506(define-func gtk_image_set_from_pixbuf
4507  none
4508  ((GtkImage image)
4509   (GdkPixbuf pixbuf)))
4510
4511(define-func gtk_image_set_from_stock
4512  none
4513  ((GtkImage image)
4514   (string stock_id)
4515   (GtkIconSize size)))
4516
4517(define-func gtk_image_set_from_icon_set
4518  none
4519  ((GtkImage image)
4520   (GtkIconSet icon_set)
4521   (GtkIconSize size)))
4522
4523(define-func gtk_image_get_pixbuf
4524  GdkPixbuf
4525  ((GtkImage image)))
4526
4527;; ImageMenuItem
4528
4529(define-object GtkImageMenuItem (GtkMenuItem))
4530
4531(define-func gtk_image_menu_item_new
4532  GtkWidget
4533  ())
4534
4535(define-func gtk_image_menu_item_new_with_label
4536  GtkWidget
4537  ((string label)))
4538
4539(define-func gtk_image_menu_item_new_with_mnemonic
4540  GtkWidget
4541  ((string label)))
4542
4543(define-func gtk_image_menu_item_new_from_stock
4544  GtkWidget
4545  ((string stock_id)
4546   (GtkAccelGroup accel_group)))
4547
4548(define-func gtk_image_menu_item_set_image
4549  none
4550  ((GtkImageMenuItem item)
4551   (GtkWidget image)))
4552
4553(define-func gtk_image_menu_item_get_image
4554  GtkWidget
4555  ((GtkImageMenuItem item)))
4556
4557;; Invisible
4558
4559(define-object GtkInvisible (GtkWidget))
4560
4561(define-func gtk_invisible_new
4562  GtkWidget
4563  ())
4564
4565;; SeparatorMenuItem
4566
4567(define-object GtkSeparatorMenuItem (GtkMenuItem))
4568
4569(define-func gtk_separator_menu_item_new
4570  GtkWidget
4571  ())
4572
4573;; More defs files
4574
4575(include "gtktext.defs")
4576
4577;; Options
4578
4579(options
4580 ;; XXX remove the enable-broken when possible
4581 (includes "#define GTK_ENABLE_BROKEN\n#include <gtk/gtk.h>")
4582 (init-func "sgtk_init_gtk_gtk_glue")
4583 (other-inits "sgtk_init_gtk_glib_glue")
4584 (other-inits "sgtk_init_gtk_gdk_glue")
4585 (other-inits "sgtk_init_gdk_pixbuf_glue"))
Note: See TracBrowser for help on using the repository browser.