Mercurial > hg > xemacs-beta
annotate tests/gtk/gtk-embedded-test.el @ 711:5be46355cc42
[xemacs-hg @ 2001-12-23 01:01:45 by wmperry]
2001-12-13 William M. Perry <wmperry@gnu.org>
* gtk-faces.el (gtk-init-device-faces): Better way of munging the
default faces from a style. Do not use 'device' as the locale
when setting it, or it makes it very difficult for a user to
override. Now munges highlight, zmacs-region, and toolbar from
the appropriate information in the default GtkStyle for the
device.
* gui.el (gui-button-face): Ditto.
* faces.el (text-cursor):
(highlight):
(zmacs-region):
(list-mode-item-selected):
(primary-selection):
(secondary-selection):
(isearch):
(isearch-secondary): Condense old window-system specific settings
into one specifier using the 'win default' tags.
* dialog-gtk.el (popup-builtin-question-dialog): Deal gracefully
with buttons of length 1, 2, and 3. Fixed yes-or-no-p lossage.
author | wmperry |
---|---|
date | Sun, 23 Dec 2001 01:01:46 +0000 |
parents | 0784d089fdc9 |
children | db7068430402 |
rev | line source |
---|---|
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)))) |