Mercurial > hg > xemacs-beta
view tests/gtk/gtk-embedded-test.el @ 4596:4fc32a3a086e
Fix a couple of bugs, #'query-coding-region, #'query-coding-string.
2009-02-04 Aidan Kehoe <kehoea@parhasard.net>
* coding.el (query-coding-region):
Revert this to being a defun, add a compiler macro without
needless binding.
(query-coding-string):
Correct a bug here, string indices are zero- not one-based.
* mule/general-late.el (unicode-query-coding-skip-chars-arg):
Correct the algorithm used to initialise this variable.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Wed, 04 Feb 2009 12:14:38 +0000 |
parents | 0784d089fdc9 |
children | db7068430402 |
line wrap: on
line source
(gtk-define-test "Embedded XEmacs frame" xemacs-frame t (setq window (gtk-window-new 'toplevel)) (let ((table (gtk-table-new 5 3 nil)) (label nil) (entry nil) (frame (gtk-frame-new "Type mail message here..."))) (gtk-container-add window table) (setq label (gtk-label-new "To: ") entry (gtk-entry-new)) (gtk-table-attach table label 0 1 0 1 nil nil 0 0) (gtk-table-attach table entry 1 2 0 1 '(fill) '(fill) 0 0) (setq label (gtk-label-new "CC: ") entry (gtk-entry-new)) (gtk-table-attach table label 0 1 1 2 nil nil 0 0) (gtk-table-attach table entry 1 2 1 2 '(fill) '(fill) 0 0) (setq label (gtk-label-new "Subject: ") entry (gtk-entry-new)) (gtk-table-attach table label 0 1 2 3 nil nil 0 0) (gtk-table-attach table entry 1 2 2 3 '(fill) '(fill) 0 0) (gtk-table-attach table frame 0 2 3 4 '(expand fill) '(expand fill) 5 5) (gtk-widget-show-all window) (gdk-flush) (make-frame (list 'window-id frame 'unsplittable t 'menubar-visible-p nil 'default-toolbar-visible-p nil))))