462
|
1 (gtk-define-test
|
|
2 "Embedded XEmacs frame" xemacs-frame t
|
|
3 (setq window (gtk-window-new 'toplevel))
|
|
4 (let ((table (gtk-table-new 5 3 nil))
|
|
5 (label nil)
|
|
6 (entry nil)
|
|
7 (frame (gtk-frame-new "Type mail message here...")))
|
|
8 (gtk-container-add window table)
|
|
9
|
|
10 (setq label (gtk-label-new "To: ")
|
|
11 entry (gtk-entry-new))
|
|
12 (gtk-table-attach table label 0 1 0 1 nil nil 0 0)
|
|
13 (gtk-table-attach table entry 1 2 0 1 '(fill) '(fill) 0 0)
|
|
14
|
|
15 (setq label (gtk-label-new "CC: ")
|
|
16 entry (gtk-entry-new))
|
|
17 (gtk-table-attach table label 0 1 1 2 nil nil 0 0)
|
|
18 (gtk-table-attach table entry 1 2 1 2 '(fill) '(fill) 0 0)
|
|
19
|
|
20 (setq label (gtk-label-new "Subject: ")
|
|
21 entry (gtk-entry-new))
|
|
22 (gtk-table-attach table label 0 1 2 3 nil nil 0 0)
|
|
23 (gtk-table-attach table entry 1 2 2 3 '(fill) '(fill) 0 0)
|
|
24
|
|
25 (gtk-table-attach table frame 0 2 3 4 '(expand fill) '(expand fill) 5 5)
|
|
26
|
|
27 (gtk-widget-show-all window)
|
|
28 (gdk-flush)
|
|
29 (make-frame (list 'window-id frame
|
|
30 'unsplittable t
|
|
31 'menubar-visible-p nil
|
|
32 'default-toolbar-visible-p nil))))
|