chiark / gitweb /
Workaround for wrong topological sorting of auto defined types
[clg] / gtk / gtk.lisp
CommitLineData
560af5c5 1;; Common Lisp bindings for GTK+ v2.0
bbaeff4b 2;; Copyright (C) 1999-2001 Espen S. Johnsen <esj@stud.cs.uit.no>
560af5c5 3;;
4;; This library is free software; you can redistribute it and/or
5;; modify it under the terms of the GNU Lesser General Public
6;; License as published by the Free Software Foundation; either
7;; version 2 of the License, or (at your option) any later version.
8;;
9;; This library is distributed in the hope that it will be useful,
10;; but WITHOUT ANY WARRANTY; without even the implied warranty of
11;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12;; Lesser General Public License for more details.
13;;
14;; You should have received a copy of the GNU Lesser General Public
15;; License along with this library; if not, write to the Free Software
16;; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
aaa6e6cb 18;; $Id: gtk.lisp,v 1.11 2002-03-25 09:24:55 espen Exp $
560af5c5 19
20
21(in-package "GTK")
22
23;;; Gtk version
24
bbaeff4b 25(defbinding check-version () string
560af5c5 26 (required-major unsigned-int)
27 (required-minor unsigned-int)
28 (required-micro unsigned-int))
29
bbaeff4b 30(defbinding query-version () nil
560af5c5 31 (major unsigned-int :out)
32 (minor unsigned-int :out)
33 (micro unsigned-int :out))
34
35(defun gtk-version ()
36 (multiple-value-bind (major minor micro)
37 (query-version)
38 (if (zerop micro)
39 (format nil "Gtk+ v~A.~A" major minor)
40 (format nil "Gtk+ v~A.~A.~A" major minor micro))))
41
0f476ab5 42(defbinding get-default-language () string)
560af5c5 43
44
0f476ab5 45;;; Acccel group
560af5c5 46
47
48;;; Acccel label
49
bbaeff4b 50(defbinding accel-label-refetch () boolean
560af5c5 51 (accel-label accel-label))
52
53
0f476ab5 54;;; Adjustment
560af5c5 55
0f476ab5 56(defbinding adjustment-changed () nil
57 (adjustment adjustment))
58
59(defbinding adjustment-value-changed () nil
60 (adjustment adjustment))
61
62(defbinding adjustment-clamp-page () nil
63 (adjustment adjustment)
64 (lower single-float)
65 (upper single-float))
560af5c5 66
0f476ab5 67
68
69;;; Alignment -- no functions
70;;; Arrow -- no functions
71
72
73
74;;; Aspect frame
75
76
77;;; Bin
560af5c5 78
79(defun (setf bin-child) (child bin)
0f476ab5 80 (when-bind (current-child (bin-child bin))
81 (container-remove bin current-child))
560af5c5 82 (container-add bin child)
83 child)
84
f36ca6af 85
0f476ab5 86
87;;; Button box -- no functions
88
89
90;;; Binding
91
92
93
94;;; Box
95
96(defbinding box-pack-start () nil
97 (box box)
98 (child widget)
99 (expand boolean)
100 (fill boolean)
101 (padding unsigned-int))
102
103(defbinding box-pack-end () nil
104 (box box)
105 (child widget)
106 (expand boolean)
107 (fill boolean)
108 (padding unsigned-int))
109
110(defun box-pack (box child &key (pack :start) (expand t) (fill t) (padding 0))
111 (if (eq pack :start)
112 (box-pack-start box child expand fill padding)
113 (box-pack-end box child expand fill padding)))
114
115(defbinding box-reorder-child () nil
116 (box box)
117 (child widget)
118 (position int))
119
120(defbinding box-query-child-packing () nil
121 (box box)
122 (child widget)
123 (expand boolean :out)
124 (fill boolean :out)
125 (padding unsigned-int :out)
126 (pack-type pack-type :out))
127
128(defbinding box-set-child-packing () nil
129 (box box)
130 (child widget)
131 (expand boolean)
132 (fill boolean)
133 (padding unsigned-int)
134 (pack-type pack-type))
135
136
137
560af5c5 138;;; Button
139
bbaeff4b 140(defbinding button-pressed () nil
560af5c5 141 (button button))
142
0f476ab5 143(defbinding button-released () nil
144 (button button))
145
146(defbinding button-clicked () nil
147 (button button))
148
149(defbinding button-enter () nil
150 (button button))
151
152(defbinding button-leave () nil
153 (button button))
154
155
156
157;;; Calendar
158
159(defbinding calendar-select-month () int
160 (calendar calendar)
161 (month unsigned-int)
162 (year unsigned-int))
163
164(defbinding calendar-select-day () nil
165 (calendar calendar)
166 (day unsigned-int))
167
168(defbinding calendar-mark-day () int
169 (calendar calendar)
170 (day unsigned-int))
171
172(defbinding calendar-unmark-day () int
173 (calendar calendar)
174 (day unsigned-int))
175
176(defbinding calendar-clear-marks () nil
177 (calendar calendar))
178
179(defbinding calendar-display-options () nil
180 (calendar calendar)
181 (options calendar-display-options))
182
183(defbinding (calendar-date "gtk_calendar_get_date") () nil
184 (calendar calendar)
185 (year unsigned-int :out)
186 (month unsigned-int :out)
187 (day unsigned-int :out))
188
189(defbinding calendar-freeze () nil
190 (calendar calendar))
191
192(defbinding calendar-thaw () nil
193 (calendar calendar))
194
195
196
197;;; Cell editable
198
199
200
201;;; Cell renderer
202
203
204
205;;; Cell renderer pixbuf -- no functions
206
207
208
209;;; Cell renderer text
210
211
212
213;;; Cell renderer toggle -- no functions
214
215
216
217;;; Check button -- no functions
218
219
220
221;;; Check menu item
222
223(defbinding check-menu-item-toggled () nil
224 (check-menu-item check-menu-item))
225
226
227
228;;; Clipboard
229
230
231;;; Color selection
232
233(defbinding (color-selection-is-adjusting-p
234 "gtk_color_selection_is_adjusting") () boolean
235 (colorsel color-selection))
236
237
238
239;;; Color selection dialog -- no functions
240
241
242
243;;; Combo
244
245(defbinding combo-set-value-in-list () nil
246 (combo combo)
247 (value boolean)
248 (ok-if-empty boolean))
249
250(defbinding combo-set-item-string () nil
251 (combo combo)
252 (item item)
253 (item-value string))
254
255(defbinding combo-set-popdown-strings () nil
256 (combo combo)
257 (strings (glist string)))
258
259(defbinding combo-disable-activate () nil
260 (combo combo))
261
262
263
48da76bf 264;;;; Dialog
0f476ab5 265
48da76bf 266(defmethod shared-initialize ((dialog dialog) names &rest initargs)
267 (call-next-method)
0f476ab5 268 (dolist (button-definition (get-all initargs :button))
48da76bf 269 (apply #'dialog-add-button dialog button-definition)))
270
0f476ab5 271
272(defvar %*response-id-key* (gensym))
273
48da76bf 274(defun %dialog-find-response-id-num (dialog response-id &optional create-p error-p)
0f476ab5 275 (or
276 (cadr (assoc response-id (rest (type-expand-1 'response-type))))
277 (let* ((response-ids (object-data dialog %*response-id-key*))
278 (response-id-num (position response-id response-ids)))
279 (cond
280 (response-id-num)
281 (create-p
282 (cond
283 (response-ids
284 (setf (cdr (last response-ids)) (list response-id))
285 (1- (length response-ids)))
286 (t
287 (setf (object-data dialog %*response-id-key*) (list response-id))
288 0)))
48da76bf 289 (error-p
290 (error "Invalid response: ~A" response-id))))))
0f476ab5 291
292(defun %dialog-find-response-id (dialog response-id-num)
293 (if (< response-id-num 0)
294 (car
295 (rassoc
296 (list response-id-num)
297 (rest (type-expand-1 'response-type)) :test #'equalp))
298 (nth response-id-num (object-data dialog %*response-id-key*))))
299
300
48da76bf 301(defmethod signal-connect ((dialog dialog) signal function &key object after)
302 (let ((response-id-num (%dialog-find-response-id-num dialog signal)))
303 (cond
304 (response-id-num
305 (call-next-method
306 dialog 'response
307 #'(lambda (dialog id)
308 (when (= id response-id-num)
309 (cond
310 ((eq object t) (funcall function dialog))
311 (object (funcall function object))
312 (t (funcall function)))))
313 :object t :after after))
0f476ab5 314 (t
48da76bf 315 (call-next-method)))))
0f476ab5 316
317
48da76bf 318(defbinding dialog-run () nil
319 (dialog dialog))
0f476ab5 320
48da76bf 321(defbinding dialog-response (dialog response-id) nil
0f476ab5 322 (dialog dialog)
48da76bf 323 ((%dialog-find-response-id-num dialog response-id nil t) int))
0f476ab5 324
325
326(defbinding %dialog-add-button () button
327 (dialog dialog)
328 (text string)
329 (response-id-num int))
330
331(defun dialog-add-button (dialog label &optional response-id default-p)
332 (let* ((response-id-num
333 (if response-id
334 (%dialog-find-response-id-num dialog response-id t)
335 (length (object-data dialog %*response-id-key*))))
336 (button (%dialog-add-button dialog label response-id-num)))
337 (unless response-id
338 (%dialog-find-response-id-num dialog button t))
339 (when default-p
340 (%dialog-set-default-response dialog response-id-num))
341 button))
342
343
344(defbinding %dialog-add-action-widget () button
345 (dialog dialog)
346 (action-widget widget)
347 (response-id-num int))
348
349(defun dialog-add-action-widget (dialog widget &optional (response-id widget)
350 default-p)
351 (let ((response-id-num (%dialog-find-response-id-num dialog response-id t)))
352 (%dialog-add-action-widget dialog widget response-id-num)
353 (when default-p
354 (%dialog-set-default-response dialog response-id-num))
355 widget))
0f476ab5 356
0f476ab5 357
48da76bf 358(defbinding %dialog-set-default-response () nil
359 (dialog dialog)
360 (response-id-num int))
0f476ab5 361
48da76bf 362(defun dialog-set-default-response (dialog response-id)
363 (%dialog-set-default-response
364 dialog (%dialog-find-response-id-num dialog response-id nil t)))
0f476ab5 365
48da76bf 366(defbinding dialog-set-response-sensitive (dialog response-id sensitive) nil
367 (dialog dialog)
368 ((%dialog-find-response-id-num dialog response-id nil t) int)
369 (sensitive boolean))
0f476ab5 370
371
48da76bf 372;; Addition dialog functions
373
374(defmethod container-add ((dialog dialog) (child widget) &rest args)
375 (apply #'container-add (slot-value dialog 'main-area) child args))
376
377(defmethod container-remove ((dialog dialog) (child widget))
378 (container-remove (slot-value dialog 'main-area) child))
0f476ab5 379
48da76bf 380(defmethod container-children ((dialog dialog))
381 (container-children (dialog-main-area dialog)))
382
383(defmethod (setf container-children) (children (dialog dialog))
384 (setf (container-children (dialog-main-area dialog)) children))
560af5c5 385
560af5c5 386
560af5c5 387
48da76bf 388;;; Drawing area -- no functions
560af5c5 389
390
aaa6e6cb 391;;; Entry
560af5c5 392
aaa6e6cb 393(defbinding entry-get-layout () pango:layout
394 (entry entry))
395
396(defbinding entry-get-layout-offsets () nil
397 (entry entry)
398 (x int :out)
399 (y int :out))
560af5c5 400
560af5c5 401
402
0f476ab5 403;;; Label
560af5c5 404
aaa6e6cb 405(defbinding label-get-layout-offsets () nil
406 (labe label)
407 (x int :out)
408 (y int :out))
409
0f476ab5 410(defbinding label-select-region () nil
411 (label label)
412 (start int)
413 (end int))
560af5c5 414
aaa6e6cb 415(defbinding label-get-text () string
416 (label label))
417
418(defbinding label-get-layout () pango:layout
419 (label label))
420
421(defbinding label-get-selection-bounds () boolean
422 (label label)
423 (start int :out)
424 (end int :out))
f36ca6af 425
560af5c5 426
427
428;;; Radio button
429
e5b416f0 430(defbinding %radio-button-get-group () pointer
d520140e 431 (radio-button radio-button))
432
bbaeff4b 433(defbinding %radio-button-set-group () nil
d520140e 434 (radio-button radio-button)
435 (group pointer))
560af5c5 436
d520140e 437(defun radio-button-add-to-group (button1 button2)
438 "Add BUTTON1 to the group which BUTTON2 belongs to."
439 (%radio-button-set-group button1 (%radio-button-get-group button2)))
440
e5b416f0 441
d520140e 442(defmethod initialize-instance ((button radio-button)
e5b416f0 443 &rest initargs &key group-with)
444 (declare (ignore initargs))
d520140e 445 (call-next-method)
e5b416f0 446 (when group-with
447 (radio-button-add-to-group item group-with)))
560af5c5 448
449
450;;; Option menu
451
bbaeff4b 452(defbinding %option-menu-set-menu () nil
f36ca6af 453 (option-menu option-menu)
454 (menu widget))
560af5c5 455
bbaeff4b 456(defbinding %option-menu-remove-menu () nil
f36ca6af 457 (option-menu option-menu))
560af5c5 458
f36ca6af 459(defun (setf option-menu-menu) (menu option-menu)
460 (if (not menu)
461 (%option-menu-remove-menu option-menu)
462 (%option-menu-set-menu option-menu menu))
463 menu)
560af5c5 464
465
466
467;;; Item
468
bbaeff4b 469(defbinding item-select () nil
560af5c5 470 (item item))
471
bbaeff4b 472(defbinding item-deselect () nil
560af5c5 473 (item item))
474
bbaeff4b 475(defbinding item-toggle () nil
560af5c5 476 (item item))
477
478
479
480;;; Menu item
481
f36ca6af 482(defun (setf menu-item-label) (label menu-item)
483 (make-instance 'accel-label
484 :label label :xalign 0.0 :yalign 0.5 :accel-widget menu-item
485 :visible t :parent menu-item)
486 label)
560af5c5 487
bbaeff4b 488(defbinding %menu-item-set-submenu () nil
f36ca6af 489 (menu-item menu-item)
490 (submenu menu))
560af5c5 491
bbaeff4b 492(defbinding %menu-item-remove-submenu () nil
f36ca6af 493 (menu-item menu-item))
560af5c5 494
f36ca6af 495(defun (setf menu-item-submenu) (submenu menu-item)
496 (if (not submenu)
497 (%menu-item-remove-submenu menu-item)
498 (%menu-item-set-submenu menu-item submenu))
499 submenu)
560af5c5 500
bbaeff4b 501(defbinding menu-item-select () nil
f36ca6af 502 (menu-item menu-item))
560af5c5 503
bbaeff4b 504(defbinding menu-item-deselect () nil
f36ca6af 505 (menu-item menu-item))
560af5c5 506
bbaeff4b 507(defbinding menu-item-activate () nil
f36ca6af 508 (menu-item menu-item))
560af5c5 509
560af5c5 510
511
f36ca6af 512;;; Radio menu item
560af5c5 513
e5b416f0 514(defbinding %radio-menu-item-get-group () pointer
d520140e 515 (radio-menu-item radio-menu-item))
516
bbaeff4b 517(defbinding %radio-menu-item-set-group () nil
d520140e 518 (radio-menu-item radio-menu-item)
519 (group pointer))
520
d520140e 521(defun radio-menu-item-add-to-group (item1 item2)
522 "Add ITEM1 to the group which ITEM2 belongs to."
523 (%radio-menu-item-set-group item1 (%radio-menu-item-get-group item2)))
524
525(defmethod initialize-instance ((item radio-menu-item)
e5b416f0 526 &rest initargs &key group-with)
527 (declare (ignore initargs))
d520140e 528 (call-next-method)
e5b416f0 529 (when group-with
530 (radio-menu-item-add-to-group item group-with)))
d520140e 531
560af5c5 532
533
aaa6e6cb 534;;; Toggle button
535
536(defbinding toggle-button-toggled () nil
537 (toggle-button toggle-button))
538
539
540
560af5c5 541;;; Window
542
7625ebd8 543(defbinding window-set-wmclass () nil
560af5c5 544 (window window)
545 (wmclass-name string)
546 (wmclass-class string))
547
bbaeff4b 548(defbinding window-add-accel-group () nil
560af5c5 549 (window window)
550 (accel-group accel-group))
551
bbaeff4b 552(defbinding window-remove-accel-group () nil
560af5c5 553 (window window)
554 (accel-group accel-group))
555
bbaeff4b 556(defbinding window-activate-focus () int
560af5c5 557 (window window))
558
bbaeff4b 559(defbinding window-activate-default () int
560af5c5 560 (window window))
561
7625ebd8 562(defbinding window-set-default-size (window width height) int
560af5c5 563 (window window)
7625ebd8 564 ((or width -1) int)
565 ((or height -1) int))
560af5c5 566
bbaeff4b 567;(defbinding window-set-geometry-hints)
560af5c5 568
7625ebd8 569(defbinding window-list-toplevels () (glist window))
570
571(defbinding window-add-mnemonic (window key target) nil
572 (window window)
573 ((gdk:keyval-from-name key) unsigned-int)
574 (target widget))
575
576(defbinding window-remove-mnemonic (window key target) nil
577 (window window)
578 ((gdk:keyval-from-name key) unsigned-int)
579 (target widget))
580
581(defbinding window-mnemonic-activate (window key modifier) nil
582 (window window)
583 ((gdk:keyval-from-name key) unsigned-int)
584 (modifier gdk:modifier-type))
585
586(defbinding window-present () nil
587 (window window))
588
589(defbinding window-iconify () nil
590 (window window))
591
592(defbinding window-deiconify () nil
593 (window window))
594
595(defbinding window-stick () nil
596 (window window))
597
598(defbinding window-unstick () nil
599 (window window))
600
601(defbinding window-maximize () nil
602 (window window))
603
604(defbinding window-unmaximize () nil
605 (window window))
606
607(defbinding window-begin-resize-drag () nil
608 (window window)
609 (edge gdk:window-edge)
610 (button int)
611 (root-x int) (root-y int)
612 (timestamp (unsigned-int 32)))
613
614(defbinding window-begin-move-drag () nil
615 (window window)
616 (edge gdk:window-edge)
617 (button int)
618 (root-x int) (root-y int)
619 (timestamp (unsigned-int 32)))
620
621(defbinding window-set-frame-dimensions () nil
622 (window window)
623 (left int) (top int) (rigth int) (bottom int))
624
625(defbinding (window-default-icons "gtk_window_get_default_icon_list")
626 () (glist gdk:pixbuf))
627
628(defbinding %window-get-default-size () nil
629 (window window)
630 (width int :out)
631 (height int :out))
632
633(defun window-get-default-size (window)
634 (multiple-value-bind (width height) (%window-get-default-size window)
635 (values (unless (= width -1) width) (unless (= height -1) height))))
636
637(defbinding window-get-frame-dimensions () nil
638 (window window)
639 (left int :out) (top int :out) (rigth int :out) (bottom int :out))
640
641(defbinding %window-get-icon-list () (glist gdk:pixbuf)
642 (window window))
643
644(defmethod window-icon ((window window))
645 (let ((icon-list (%window-get-icon-list window)))
646 (if (endp (rest icon-list))
647 (first icon-list)
648 icon-list)))
649
650(defbinding window-get-position () nil
651 (window window)
652 (root-x int :out)
653 (root-y int :out))
654
655(defbinding window-get-size () nil
656 (window window)
657 (width int :out)
658 (height int :out))
659
660(defbinding window-move () nil
661 (window window)
662 (x int)
663 (y int))
664
665(defbinding window-parse-geometry () boolean
666 (window window)
667 (geometry string))
668
669(defbinding window-reshow-with-initial-size () nil
670 (window window))
671
672(defbinding window-resize () nil
673 (window window)
674 (width int)
675 (heigth int))
676
677(defbinding %window-set-icon-list () nil
678 (window window)
679 (icon-list (glist gdk:pixbuf)))
680
681(defmethod (setf window-icon) (icon (window window))
682 (%window-set-icon-list window (mklist icon)))
683
684
560af5c5 685
686
687;;; File selection
688
bbaeff4b 689(defbinding file-selection-complete () nil
d520140e 690 (file-selection file-selection)
691 (pattern string))
560af5c5 692
560af5c5 693
694
f36ca6af 695;;; Scrolled window
560af5c5 696
560af5c5 697(defun (setf scrolled-window-scrollbar-policy) (policy window)
698 (setf (scrolled-window-hscrollbar-policy window) policy)
699 (setf (scrolled-window-vscrollbar-policy window) policy))
700
bbaeff4b 701(defbinding scrolled-window-add-with-viewport () nil
560af5c5 702 (scrolled-window scrolled-window)
703 (child widget))
704
705
706
d520140e 707
708
709
560af5c5 710
560af5c5 711
560af5c5 712
560af5c5 713
560af5c5 714
560af5c5 715
560af5c5 716
560af5c5 717
f36ca6af 718;;; Statusbar
560af5c5 719
bbaeff4b 720(defbinding (statusbar-context-id "gtk_statusbar_get_context_id")
721 () unsigned-int
f36ca6af 722 (statusbar statusbar)
723 (context-description string))
560af5c5 724
bbaeff4b 725(defbinding statusbar-push () unsigned-int
f36ca6af 726 (statusbar statusbar)
727 (context-id unsigned-int)
728 (text string))
560af5c5 729
bbaeff4b 730(defbinding statusbar-pop () nil
f36ca6af 731 (statusbar statusbar)
732 (context-id unsigned-int))
560af5c5 733
bbaeff4b 734(defbinding statusbar-remove () nil
f36ca6af 735 (statusbar statusbar)
736 (context-id unsigned-int)
737 (message-id unsigned-int))
560af5c5 738
560af5c5 739
740
741;;; Fixed
742
bbaeff4b 743(defbinding fixed-put () nil
f36ca6af 744 (fixed fixed)
745 (widget widget)
746 (x (signed 16))
747 (y (signed 16)))
560af5c5 748
bbaeff4b 749(defbinding fixed-move () nil
f36ca6af 750 (fixed fixed)
751 (widget widget)
752 (x (signed 16))
753 (y (signed 16)))
560af5c5 754
755
756
d520140e 757;;; Notebook
560af5c5 758
bbaeff4b 759(defbinding (notebook-insert-page "gtk_notebook_insert_page_menu")
f36ca6af 760 (notebook position child tab-label &optional menu-label) nil
761 (notebook notebook)
762 (child widget)
763 ((if (stringp tab-label)
764 (label-new tab-label)
765 tab-label) widget)
766 ((if (stringp menu-label)
767 (label-new menu-label)
768 menu-label) (or null widget))
769 (position int))
560af5c5 770
f36ca6af 771(defun notebook-append-page (notebook child tab-label &optional menu-label)
772 (notebook-insert-page notebook -1 child tab-label menu-label))
560af5c5 773
f36ca6af 774(defun notebook-prepend-page (notebook child tab-label &optional menu-label)
775 (notebook-insert-page notebook 0 child tab-label menu-label))
560af5c5 776
bbaeff4b 777(defbinding notebook-remove-page () nil
f36ca6af 778 (notebook notebook)
779 (page-num int))
560af5c5 780
781; (defun notebook-current-page-num (notebook)
782; (let ((page-num (notebook-current-page notebook)))
783; (if (= page-num -1)
784; nil
785; page-num)))
786
bbaeff4b 787(defbinding (notebook-nth-page-child "gtk_notebook_get_nth_page") () widget
f36ca6af 788 (notebook notebook)
789 (page-num int))
560af5c5 790
f36ca6af 791(defun notebook-page-child (notebook)
792 (notebook-nth-page-child notebook (notebook-page notebook)))
560af5c5 793
bbaeff4b 794(defbinding %notebook-page-num () int
f36ca6af 795 (notebook notebook)
796 (child widget))
797
798(defun notebook-child-num (notebook child)
799 (let ((page-num (%notebook-page-num notebook child)))
800 (if (= page-num -1)
801 nil
802 page-num)))
803
bbaeff4b 804(defbinding notebook-next-page () nil
f36ca6af 805 (notebook notebook))
560af5c5 806
bbaeff4b 807(defbinding notebook-prev-page () nil
f36ca6af 808 (notebook notebook))
809
bbaeff4b 810(defbinding notebook-popup-enable () nil
f36ca6af 811 (notebook notebook))
812
bbaeff4b 813(defbinding notebook-popup-disable () nil
f36ca6af 814 (notebook notebook))
815
e5b416f0 816; (defbinding (notebook-tab-label "gtk_notebook_get_tab_label")
817; (notebook ref) widget
818; (notebook notebook)
819; ((if (typep ref 'widget)
820; ref
821; (notebook-nth-page-child notebook ref))
822; widget))
823
824; (defbinding %notebook-set-tab-label () nil
825; (notebook notebook)
826; (reference widget)
827; (tab-label widget))
828
829; (defun (setf notebook-tab-label) (tab-label notebook reference)
830; (let ((tab-label-widget (if (stringp tab-label)
831; (label-new tab-label)
832; tab-label)))
833; (%notebook-set-tab-label
834; notebook
835; (if (typep reference 'widget)
836; reference
837; (notebook-nth-page-child notebook reference))
838; tab-label-widget)
839; tab-label-widget))
560af5c5 840
e5b416f0 841; (defbinding (notebook-menu-label "gtk_notebook_get_menu_label")
842; (notebook ref) widget
843; (notebook notebook)
844; ((if (typep ref 'widget)
845; ref
846; (notebook-nth-page-child notebook ref))
847; widget))
848
849; (defbinding %notebook-set-menu-label () nil
850; (notebook notebook)
851; (reference widget)
852; (menu-label widget))
853
854; (defun (setf notebook-menu-label) (menu-label notebook reference)
855; (let ((menu-label-widget (if (stringp menu-label)
856; (label-new menu-label)
857; menu-label)))
858; (%notebook-set-menu-label
859; notebook
860; (if (typep reference 'widget)
861; reference
862; (notebook-nth-page-child notebook reference))
863; menu-label-widget)
864; menu-label-widget))
f36ca6af 865
bbaeff4b 866(defbinding notebook-query-tab-label-packing (notebook ref) nil
f36ca6af 867 (notebook notebook)
868 ((if (typep ref 'widget)
869 ref
870 (notebook-nth-page-child notebook ref))
871 widget)
872 (expand boolean :out)
873 (fill boolean :out)
874 (pack-type pack-type :out))
875
bbaeff4b 876(defbinding
f36ca6af 877 notebook-set-tab-label-packing (notebook ref expand fill pack-type) nil
878 (notebook notebook)
879 ((if (typep ref 'widget)
880 ref
881 (notebook-nth-page-child notebook ref))
882 widget)
883 (expand boolean)
884 (fill boolean)
885 (pack-type pack-type))
886
bbaeff4b 887(defbinding notebook-reorder-child () nil
f36ca6af 888 (notebook notebook)
889 (child widget)
890 (position int))
560af5c5 891
892
893
d520140e 894;;; Paned
560af5c5 895
bbaeff4b 896(defbinding paned-pack1 () nil
d520140e 897 (paned paned)
898 (child widget)
899 (resize boolean)
900 (shrink boolean))
560af5c5 901
bbaeff4b 902(defbinding paned-pack2 () nil
d520140e 903 (paned paned)
904 (child widget)
905 (resize boolean)
906 (shrink boolean))
560af5c5 907
d520140e 908;; gtkglue.c
bbaeff4b 909(defbinding paned-child1 () widget
d520140e 910 (paned paned)
911 (resize boolean :out)
912 (shrink boolean :out))
560af5c5 913
d520140e 914;; gtkglue.c
bbaeff4b 915(defbinding paned-child2 () widget
d520140e 916 (paned paned)
917 (resize boolean :out)
918 (shrink boolean :out))
560af5c5 919
d520140e 920(defun (setf paned-child1) (child paned)
921 (paned-pack1 paned child nil t))
560af5c5 922
d520140e 923(defun (setf paned-child2) (child paned)
924 (paned-pack2 paned child t t))
560af5c5 925
560af5c5 926
560af5c5 927
d520140e 928;;; Layout
560af5c5 929
bbaeff4b 930(defbinding layout-put () nil
d520140e 931 (layout layout)
932 (widget widget)
933 (x int)
934 (y int))
560af5c5 935
bbaeff4b 936(defbinding layout-move () nil
d520140e 937 (layout layout)
938 (widget widget)
939 (x int)
940 (y int))
560af5c5 941
bbaeff4b 942(defbinding layout-set-size () nil
d520140e 943 (layout layout)
944 (width int)
945 (height int))
560af5c5 946
bbaeff4b 947(defbinding layout-get-size () nil
d520140e 948 (layout layout)
949 (width int :out)
950 (height int :out))
560af5c5 951
560af5c5 952
953
560af5c5 954;;; Menu shell
955
bbaeff4b 956(defbinding menu-shell-insert () nil
f36ca6af 957 (menu-shell menu-shell)
958 (menu-item menu-item)
959 (position int))
560af5c5 960
f36ca6af 961(defun menu-shell-append (menu-shell menu-item)
962 (menu-shell-insert menu-shell menu-item -1))
560af5c5 963
f36ca6af 964(defun menu-shell-prepend (menu-shell menu-item)
965 (menu-shell-insert menu-shell menu-item 0))
560af5c5 966
bbaeff4b 967(defbinding menu-shell-deactivate () nil
f36ca6af 968 (menu-shell menu-shell))
560af5c5 969
bbaeff4b 970(defbinding menu-shell-select-item () nil
f36ca6af 971 (menu-shell menu-shell)
972 (menu-item menu-item))
560af5c5 973
bbaeff4b 974(defbinding menu-shell-deselect () nil
f36ca6af 975 (menu-shell menu-shell))
560af5c5 976
bbaeff4b 977(defbinding menu-shell-activate-item () nil
f36ca6af 978 (menu-shell menu-shell)
979 (menu-item menu-item)
980 (fore-deactivate boolean))
560af5c5 981
982
983
984; ;;; Menu bar
985
bbaeff4b 986; (defbinding menu-bar-insert () nil
560af5c5 987; (menu-bar menu-bar)
988; (menu menu)
989; (position int))
990
991; (defun menu-bar-append (menu-bar menu)
992; (menu-bar-insert menu-bar menu -1))
993
994; (defun menu-bar-prepend (menu-bar menu)
995; (menu-bar-insert menu-bar menu 0))
996
997
998
999; ;;; Menu
1000
f36ca6af 1001;(defun menu-popup ...)
560af5c5 1002
bbaeff4b 1003(defbinding menu-reposition () nil
f36ca6af 1004 (menu menu))
560af5c5 1005
bbaeff4b 1006(defbinding menu-popdown () nil
f36ca6af 1007 (menu menu))
560af5c5 1008
bbaeff4b 1009(defbinding %menu-set-active () nil
f36ca6af 1010 (menu menu)
1011 (index unsigned-int))
560af5c5 1012
d520140e 1013(defun (setf menu-active) (menu index)
1014 (%menu-set-active menu index))
1015
bbaeff4b 1016(defbinding menu-reorder-child () nil
f36ca6af 1017 (menu menu)
1018 (menu-item menu-item)
1019 (position int))
560af5c5 1020
1021
f36ca6af 1022;;; Table
560af5c5 1023
bbaeff4b 1024(defbinding table-resize () nil
f36ca6af 1025 (table table)
1026 (rows unsigned-int)
1027 (columns unsigned-int))
560af5c5 1028
bbaeff4b 1029(defbinding table-attach (table child left right top bottom
f36ca6af 1030 &key (x-options '(:expand :fill))
1031 (y-options '(:expand :fill))
1032 (x-padding 0) (y-padding 0)) nil
1033 (table table)
1034 (child widget)
1035 (left unsigned-int)
1036 (right unsigned-int)
1037 (top unsigned-int)
1038 (bottom unsigned-int)
1039 (x-options attach-options)
1040 (y-options attach-options)
1041 (x-padding unsigned-int)
1042 (y-padding unsigned-int))
1043
e5b416f0 1044
bbaeff4b 1045(defbinding %table-set-row-spacing () nil
f36ca6af 1046 (table table)
1047 (row unsigned-int)
1048 (spacing unsigned-int))
1049
e5b416f0 1050(defbinding %table-set-row-spacings () nil
1051 (table table)
1052 (spacing unsigned-int))
1053
1054(defun (setf table-row-spacing) (spacing table &optional row)
1055 (if row
1056 (%table-set-row-spacing table row spacing)
1057 (%table-set-row-spacings table spacing))
f36ca6af 1058 spacing)
1059
e5b416f0 1060(defbinding %table-get-row-spacing () unsigned-int
f36ca6af 1061 (table table)
e5b416f0 1062 (row unsigned-int))
1063
1064(defbinding %table-get-default-row-spacing () unsigned-int
1065 (table table))
1066
1067(defun table-row-spacing (table &optional row)
1068 (if row
1069 (%table-get-row-spacing table row)
1070 (%table-get-default-row-spacing table)))
1071
f36ca6af 1072
bbaeff4b 1073(defbinding %table-set-col-spacing () nil
f36ca6af 1074 (table table)
1075 (col unsigned-int)
1076 (spacing unsigned-int))
1077
e5b416f0 1078(defbinding %table-set-col-spacings () nil
1079 (table table)
1080 (spacing unsigned-int))
1081
1082(defun (setf table-col-spacing) (spacing table &optional col)
1083 (if col
1084 (%table-set-col-spacing table col spacing)
1085 (%table-set-col-spacings table spacing))
f36ca6af 1086 spacing)
1087
e5b416f0 1088(defbinding %table-get-col-spacing () unsigned-int
f36ca6af 1089 (table table)
e5b416f0 1090 (col unsigned-int))
1091
1092(defbinding %table-get-default-col-spacing () unsigned-int
1093 (table table))
1094
1095(defun table-col-spacing (table &optional col)
1096 (if col
1097 (%table-get-col-spacing table col)
1098 (%table-get-default-col-spacing table)))
1099
1100
f36ca6af 1101
1102;;; Toolbar
1103
f36ca6af 1104;; gtkglue.c
bbaeff4b 1105(defbinding toolbar-num-children () int
f36ca6af 1106 (toolbar toolbar))
1107
1108(defun %toolbar-position-num (toolbar position)
1109 (case position
1110 (:prepend 0)
1111 (:append (toolbar-num-children toolbar))
1112 (t
1113 (assert (and (>= position 0) (< position (toolbar-num-children toolbar))))
1114 position)))
1115
bbaeff4b 1116(defbinding %toolbar-insert-element () widget
f36ca6af 1117 (toolbar toolbar)
1118 (type toolbar-child-type)
1119 (widget (or null widget))
1120 (text string)
1121 (tooltip-text string)
1122 (tooltip-private-text string)
1123 (icon (or null widget))
1124 (nil null)
1125 (nil null)
1126 (position int))
560af5c5 1127
f36ca6af 1128(defun toolbar-insert-element (toolbar position
1129 &key tooltip-text tooltip-private-text
1130 type widget icon text callback)
1131 (let* ((icon-widget (typecase icon
1132 ((or null widget) icon)
1133 (t (pixmap-new icon))))
1134 (toolbar-child
1135 (%toolbar-insert-element
1136 toolbar (or type (and widget :widget) :button)
1137 widget text tooltip-text tooltip-private-text icon-widget
1138 (%toolbar-position-num toolbar position))))
1139 (when callback
1140 (signal-connect toolbar-child 'clicked callback))
1141 toolbar-child))
1142
1143(defun toolbar-append-element (toolbar &key tooltip-text tooltip-private-text
1144 type widget icon text callback)
1145 (toolbar-insert-element
1146 toolbar :append :type type :widget widget :icon icon :text text
1147 :tooltip-text tooltip-text :tooltip-private-text tooltip-private-text
1148 :callback callback))
1149
1150(defun toolbar-prepend-element (toolbar &key tooltip-text tooltip-private-text
1151 type widget icon text callback)
1152 (toolbar-insert-element
1153 toolbar :prepend :type type :widget widget :icon icon :text text
1154 :tooltip-text tooltip-text :tooltip-private-text tooltip-private-text
1155 :callback callback))
1156
1157(defun toolbar-insert-space (toolbar position)
1158 (toolbar-insert-element toolbar position :type :space))
1159
1160(defun toolbar-append-space (toolbar)
1161 (toolbar-insert-space toolbar :append))
1162
1163(defun toolbar-prepend-space (toolbar)
1164 (toolbar-insert-space toolbar :prepend))
1165
1166(defun toolbar-insert-widget (toolbar widget position &key tooltip-text
1167 tooltip-private-text callback)
1168 (toolbar-insert-element
1169 toolbar position :widget widget :tooltip-text tooltip-text
1170 :tooltip-private-text tooltip-private-text :callback callback))
560af5c5 1171
f36ca6af 1172(defun toolbar-append-widget (toolbar widget &key tooltip-text
1173 tooltip-private-text callback)
1174 (toolbar-insert-widget
1175 toolbar widget :append :tooltip-text tooltip-text
1176 :tooltip-private-text tooltip-private-text :callback callback))
1177
1178(defun toolbar-prepend-widget (toolbar widget &key tooltip-text
1179 tooltip-private-text callback)
1180 (toolbar-insert-widget
1181 toolbar widget :prepend :tooltip-text tooltip-text
1182 :tooltip-private-text tooltip-private-text :callback callback))
1183
1184(defun toolbar-insert-item (toolbar text icon position &key tooltip-text
1185 tooltip-private-text callback)
1186 (toolbar-insert-element
1187 toolbar position :text text :icon icon :callback callback
1188 :tooltip-text tooltip-text :tooltip-private-text tooltip-private-text))
1189
1190(defun toolbar-append-item (toolbar text icon &key tooltip-text
1191 tooltip-private-text callback)
1192 (toolbar-insert-item
1193 toolbar text icon :append :callback callback
1194 :tooltip-text tooltip-text :tooltip-private-text tooltip-private-text))
560af5c5 1195
1196
f36ca6af 1197(defun toolbar-prepend-item (toolbar text icon &key tooltip-text
1198 tooltip-private-text callback)
1199 (toolbar-insert-item
1200 toolbar text icon :prepend :callback callback
1201 :tooltip-text tooltip-text :tooltip-private-text tooltip-private-text))
560af5c5 1202
f36ca6af 1203(defun toolbar-enable-tooltips (toolbar)
1204 (setf (toolbar-tooltips-p toolbar) t))
560af5c5 1205
f36ca6af 1206(defun toolbar-disable-tooltips (toolbar)
1207 (setf (toolbar-tooltips-p toolbar) nil))
560af5c5 1208
1209
1210
560af5c5 1211
560af5c5 1212
560af5c5 1213
1214
1215
bbaeff4b 1216;;; Editable
1217#|
1218(defbinding editable-select-region (editable &optional (start 0) end) nil
f36ca6af 1219 (editable editable)
1220 (start int)
1221 ((or end -1) int))
560af5c5 1222
bbaeff4b 1223(defbinding editable-insert-text
f36ca6af 1224 (editable text &optional (position 0)) nil
1225 (editable editable)
1226 (text string)
1227 ((length text) int)
1228 ((or position -1) int :in-out))
560af5c5 1229
f36ca6af 1230(defun editable-append-text (editable text)
1231 (editable-insert-text editable text nil))
560af5c5 1232
f36ca6af 1233(defun editable-prepend-text (editable text)
1234 (editable-insert-text editable text 0))
560af5c5 1235
bbaeff4b 1236(defbinding editable-delete-text (editable &optional (start 0) end) nil
f36ca6af 1237 (editable editable)
1238 (start int)
1239 ((or end -1) int))
560af5c5 1240
bbaeff4b 1241(defbinding (editable-text "gtk_editable_get_chars")
f36ca6af 1242 (editable &optional (start 0) end) string
1243 (editable editable)
1244 (start int)
1245 ((or end -1) int))
560af5c5 1246
f36ca6af 1247(defun (setf editable-text) (text editable)
1248 (if text
1249 (editable-delete-text
1250 editable
1251 (editable-insert-text editable text))
1252 (editable-delete-text editable))
1253 text)
560af5c5 1254
bbaeff4b 1255(defbinding editable-cut-clipboard () nil
f36ca6af 1256 (editable editable))
560af5c5 1257
bbaeff4b 1258(defbinding editable-copy-clipboard () nil
f36ca6af 1259 (editable editable))
560af5c5 1260
bbaeff4b 1261(defbinding editable-paste-clipboard () nil
f36ca6af 1262 (editable editable))
560af5c5 1263
bbaeff4b 1264; (defbinding editable-claim-selection () nil
b9752933 1265; (editable editable)
1266; (claim boolean)
1267; (time unsigned-int))
560af5c5 1268
bbaeff4b 1269(defbinding editable-delete-selection () nil
f36ca6af 1270 (editable editable))
560af5c5 1271
bbaeff4b 1272; (defbinding editable-changed () nil
b9752933 1273; (editable editable))
bbaeff4b 1274|#
560af5c5 1275
560af5c5 1276
f36ca6af 1277;;; Spin button
560af5c5 1278
f36ca6af 1279(defun spin-button-value-as-int (spin-button)
1280 (round (spin-button-value spin-button)))
560af5c5 1281
bbaeff4b 1282(defbinding spin-button-spin () nil
f36ca6af 1283 (spin-button spin-button)
1284 (direction spin-type)
1285 (increment single-float))
560af5c5 1286
bbaeff4b 1287(defbinding spin-button-update () nil
f36ca6af 1288 (spin-button spin-button))
560af5c5 1289
1290
1291
1292; ;;; Ruler
1293
bbaeff4b 1294(defbinding ruler-set-range () nil
f36ca6af 1295 (ruler ruler)
1296 (lower single-float)
1297 (upper single-float)
1298 (position single-float)
1299 (max-size single-float))
560af5c5 1300
bbaeff4b 1301(defbinding ruler-draw-ticks () nil
f36ca6af 1302 (ruler ruler))
560af5c5 1303
bbaeff4b 1304(defbinding ruler-draw-pos () nil
f36ca6af 1305 (ruler ruler))
560af5c5 1306
560af5c5 1307
560af5c5 1308
d520140e 1309;;; Range
bbaeff4b 1310#|
1311(defbinding range-draw-background () nil
d520140e 1312 (range range))
560af5c5 1313
bbaeff4b 1314(defbinding range-clear-background () nil
d520140e 1315 (range range))
560af5c5 1316
bbaeff4b 1317(defbinding range-draw-trough () nil
d520140e 1318 (range range))
560af5c5 1319
bbaeff4b 1320(defbinding range-draw-slider () nil
d520140e 1321 (range range))
560af5c5 1322
bbaeff4b 1323(defbinding range-draw-step-forw () nil
d520140e 1324 (range range))
560af5c5 1325
bbaeff4b 1326(defbinding range-slider-update () nil
d520140e 1327 (range range))
560af5c5 1328
bbaeff4b 1329(defbinding range-trough-click () int
d520140e 1330 (range range)
1331 (x int)
1332 (y int)
1333 (jump-perc single-float :out))
560af5c5 1334
bbaeff4b 1335(defbinding range-default-hslider-update () nil
d520140e 1336 (range range))
560af5c5 1337
bbaeff4b 1338(defbinding range-default-vslider-update () nil
d520140e 1339 (range range))
560af5c5 1340
bbaeff4b 1341(defbinding range-default-htrough-click () int
d520140e 1342 (range range)
1343 (x int)
1344 (y int)
1345 (jump-perc single-float :out))
560af5c5 1346
bbaeff4b 1347(defbinding range-default-vtrough-click () int
d520140e 1348 (range range)
1349 (x int)
1350 (y int)
1351 (jump-perc single-float :out))
560af5c5 1352
bbaeff4b 1353(defbinding range-default-hmotion () int
d520140e 1354 (range range)
1355 (x-delta int)
1356 (y-delta int))
560af5c5 1357
bbaeff4b 1358(defbinding range-default-vmotion () int
d520140e 1359 (range range)
1360 (x-delta int)
1361 (y-delta int))
bbaeff4b 1362|#
560af5c5 1363
560af5c5 1364
d520140e 1365;;; Scale
560af5c5 1366
e5b416f0 1367; (defbinding scale-draw-value () nil
1368; (scale scale))
560af5c5 1369
560af5c5 1370
560af5c5 1371
d520140e 1372;;; Progress bar
560af5c5 1373
bbaeff4b 1374(defbinding progress-bar-pulse () nil
d520140e 1375 (progress-bar progress-bar))
560af5c5 1376
1377
1378
560af5c5 1379
1380
1381;;; Tooltips
1382
bbaeff4b 1383(defbinding tooltips-enable () nil
d520140e 1384 (tooltips tooltips))
560af5c5 1385
bbaeff4b 1386(defbinding tooltips-disable () nil
d520140e 1387 (tooltips tooltips))
560af5c5 1388
e5b416f0 1389(defun (setf tooltips-enabled-p) (enable tooltips)
1390 (if enable
1391 (tooltips-enable tooltips)
1392 (tooltips-disable tooltips)))
1393
bbaeff4b 1394(defbinding tooltips-set-tip () nil
d520140e 1395 (tooltips tooltips)
1396 (widget widget)
1397 (tip-text string)
1398 (tip-private string))
560af5c5 1399
bbaeff4b 1400(defbinding tooltips-force-window () nil
d520140e 1401 (tooltips tooltips))
560af5c5 1402
1403
1404
d520140e 1405;;; Rc
560af5c5 1406
bbaeff4b 1407(defbinding rc-add-default-file (filename) nil
d520140e 1408 ((namestring (truename filename)) string))
560af5c5 1409
bbaeff4b 1410(defbinding rc-parse (filename) nil
d520140e 1411 ((namestring (truename filename)) string))
560af5c5 1412
bbaeff4b 1413(defbinding rc-parse-string () nil
d520140e 1414 (rc-string string))
560af5c5 1415
bbaeff4b 1416(defbinding rc-reparse-all () nil)
560af5c5 1417
bbaeff4b 1418(defbinding rc-get-style () style
d520140e 1419 (widget widget))
560af5c5 1420
1421
1422
1423;;; Accelerator Groups
bbaeff4b 1424#|
1425(defbinding accel-group-get-default () accel-group)
560af5c5 1426
f36ca6af 1427(deftype-method alien-ref accel-group (type-spec)
1428 (declare (ignore type-spec))
1429 '%accel-group-ref)
560af5c5 1430
f36ca6af 1431(deftype-method alien-unref accel-group (type-spec)
1432 (declare (ignore type-spec))
1433 '%accel-group-unref)
1434
bbaeff4b 1435(defbinding %accel-group-ref () accel-group
f36ca6af 1436 (accel-group (or accel-group pointer)))
1437
bbaeff4b 1438(defbinding %accel-group-unref () nil
f36ca6af 1439 (accel-group (or accel-group pointer)))
560af5c5 1440
bbaeff4b 1441(defbinding accel-group-activate (accel-group key modifiers) boolean
560af5c5 1442 (accel-group accel-group)
1443 ((gdk:keyval-from-name key) unsigned-int)
1444 (modifiers gdk:modifier-type))
1445
bbaeff4b 1446(defbinding accel-groups-activate (object key modifiers) boolean
560af5c5 1447 (object object)
1448 ((gdk:keyval-from-name key) unsigned-int)
1449 (modifiers gdk:modifier-type))
1450
bbaeff4b 1451(defbinding accel-group-attach () nil
560af5c5 1452 (accel-group accel-group)
1453 (object object))
1454
bbaeff4b 1455(defbinding accel-group-detach () nil
560af5c5 1456 (accel-group accel-group)
1457 (object object))
1458
bbaeff4b 1459(defbinding accel-group-lock () nil
560af5c5 1460 (accel-group accel-group))
1461
bbaeff4b 1462(defbinding accel-group-unlock () nil
560af5c5 1463 (accel-group accel-group))
1464
1465
1466;;; Accelerator Groups Entries
1467
bbaeff4b 1468(defbinding accel-group-get-entry (accel-group key modifiers) accel-entry
560af5c5 1469 (accel-group accel-group)
1470 ((gdk:keyval-from-name key) unsigned-int)
1471 (modifiers gdk:modifier-type))
1472
bbaeff4b 1473(defbinding accel-group-lock-entry (accel-group key modifiers) nil
560af5c5 1474 (accel-group accel-group)
1475 ((gdk:keyval-from-name key) unsigned-int)
1476 (modifiers gdk:modifier-type))
1477
bbaeff4b 1478(defbinding accel-group-unlock-entry (accel-group key modifiers) nil
560af5c5 1479 (accel-group accel-group)
1480 ((gdk:keyval-from-name key) unsigned-int)
1481 (modifiers gdk:modifier-type))
1482
bbaeff4b 1483(defbinding accel-group-add
560af5c5 1484 (accel-group key modifiers flags object signal) nil
1485 (accel-group accel-group)
1486 ((gdk:keyval-from-name key) unsigned-int)
1487 (modifiers gdk:modifier-type)
1488 (flags accel-flags)
1489 (object object)
1490 ((name-to-string signal) string))
1491
bbaeff4b 1492(defbinding accel-group-add (accel-group key modifiers object) nil
560af5c5 1493 (accel-group accel-group)
1494 ((gdk:keyval-from-name key) unsigned-int)
1495 (modifiers gdk:modifier-type)
1496 (object object))
1497
1498
1499;;; Accelerator Signals
1500
bbaeff4b 1501(defbinding accel-group-handle-add
560af5c5 1502 (object signal-id accel-group key modifiers flags) nil
1503 (object object)
1504 (signal-id unsigned-int)
1505 (accel-group accel-group)
1506 ((gdk:keyval-from-name key) unsigned-int)
1507 (modifiers gdk:modifier-type)
1508 (flags accel-flags))
1509
bbaeff4b 1510(defbinding accel-group-handle-remove
560af5c5 1511 (object accel-group key modifiers) nil
1512 (object object)
1513 (accel-group accel-group)
1514 ((gdk:keyval-from-name key) unsigned-int)
1515 (modifiers gdk:modifier-type))
bbaeff4b 1516|#