chiark
/
gitweb
/
~mdw
/
clg
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
83bab9b
)
Added font selection
author
espen
<espen>
Sun, 27 Feb 2005 13:28:19 +0000
(13:28 +0000)
committer
espen
<espen>
Sun, 27 Feb 2005 13:28:19 +0000
(13:28 +0000)
examples/testgtk.lisp
patch
|
blob
|
blame
|
history
diff --git
a/examples/testgtk.lisp
b/examples/testgtk.lisp
index 0a670b768097eca63d433a0e9473f105669e6044..f0c535ab796b3579251c97fa5c69663cb3c5e511 100644
(file)
--- a/
examples/testgtk.lisp
+++ b/
examples/testgtk.lisp
@@
-15,7
+15,7
@@
;; License along with this library; if not, write to the Free Software
;; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
;; License along with this library; if not, write to the Free Software
;; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-;; $Id: testgtk.lisp,v 1.2
0 2005/02/27 12:44:07
espen Exp $
+;; $Id: testgtk.lisp,v 1.2
1 2005/02/27 13:28:19
espen Exp $
;(use-package "GTK")
;(use-package "GTK")
@@
-461,6
+461,15
@@
(define-dialog create-file-chooser (dialog "File Chooser" 'file-chooser-dialog)
(widget-destroy dialog))))
(widget-destroy dialog))))
+;; Font selection dialog
+
+(define-toplevel create-font-selection (window "Font Button" :resizable nil)
+ (make-instance 'h-box
+ :parent window :spacing 8 :border-width 8
+ :child (make-instance 'label :label "Pick a font")
+ :child (make-instance 'font-button
+ :use-font t :title "Font Selection Dialog")))
+
;;; Handle box
;;; Handle box
@@
-1702,7
+1711,7
@@
(defun create-main-window ()
;; ("event watcher")
("enxpander" create-expander)
("file chooser" create-file-chooser)
;; ("event watcher")
("enxpander" create-expander)
("file chooser" create-file-chooser)
-
;; ("font selection"
)
+
("font selection" create-font-selection
)
("handle box" create-handle-box)
("image" create-image)
("labels" create-labels)
("handle box" create-handle-box)
("image" create-image)
("labels" create-labels)