source: trunk/third/rep-gtk/examples/text.jl @ 18404

Revision 18404, 628 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.
Line 
1#! /bin/sh
2exec 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 view (gtk-text-view-new))
16
17  (define buffer (gtk-text-view-get-buffer view))
18
19  (g-signal-connect window "delete_event" (lambda () (throw 'quit 0)))
20
21  (gtk-text-buffer-set-text buffer "Hello, this is some text" -1)
22  (gtk-container-add window view)
23  (gtk-window-set-default-size window 300 200)
24  (gtk-widget-show-all window)
25
26  (setq interrupt-mode 'exit)
27  (recursive-edit))
28
29;; Local variables:
30;; major-mode: lisp-mode
31;; End:
Note: See TracBrowser for help on using the repository browser.