Revision 18404,
641 bytes
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.
|
-
Property svn:executable set to
*
|
Line | |
---|
1 | #! /bin/sh |
---|
2 | exec rep --batch "$0" "$@" |
---|
3 | !# |
---|
4 | |
---|
5 | ;;;; rep-gtk hello world program |
---|
6 | |
---|
7 | (structure () |
---|
8 | |
---|
9 | (open rep |
---|
10 | rep.system |
---|
11 | gui.gtk-2.gtk) |
---|
12 | |
---|
13 | (define window (gtk-window-new 'toplevel)) |
---|
14 | |
---|
15 | (define button (gtk-button-new-with-label "say hello")) |
---|
16 | |
---|
17 | (gtk-container-set-border-width window 10) |
---|
18 | |
---|
19 | (g-signal-connect window "delete_event" (lambda (w) (throw 'quit 0))) |
---|
20 | |
---|
21 | (g-signal-connect button "clicked" |
---|
22 | (lambda () |
---|
23 | (write standard-output "hello, world\n"))) |
---|
24 | |
---|
25 | (gtk-container-add window button) |
---|
26 | (gtk-widget-show-all window) |
---|
27 | |
---|
28 | (setq interrupt-mode 'exit) |
---|
29 | (recursive-edit)) |
---|
30 | |
---|
31 | ;; Local variables: |
---|
32 | ;; major-mode: lisp-mode |
---|
33 | ;; End: |
---|
Note: See
TracBrowser
for help on using the repository browser.