chiark
/
gitweb
/
~mdw
/
clg
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added new function PLIST-REMOVE
[clg]
/
examples
/
testgtk.lisp
diff --git
a/examples/testgtk.lisp
b/examples/testgtk.lisp
index 6450ff267f55f98240afc1f0434efc8d91e64552..1448abadd53ba93c8a515e8418e1e5e9e48df0fc 100644
(file)
--- a/
examples/testgtk.lisp
+++ b/
examples/testgtk.lisp
@@
-26,7
+26,7
@@
;; Kimball, Josh MacDonald and others.
;; Kimball, Josh MacDonald and others.
-;; $Id: testgtk.lisp,v 1.
39 2007/06/19 12:49:18
espen Exp $
+;; $Id: testgtk.lisp,v 1.
40 2007/06/20 10:20:47
espen Exp $
#+sbcl(require :gtk)
#+(or cmu clisp)(asdf:oos 'asdf:load-op :gtk)
#+sbcl(require :gtk)
#+(or cmu clisp)(asdf:oos 'asdf:load-op :gtk)
@@
-1909,7
+1909,7
@@
(define-toplevel create-ui-manager (window "UI Manager")
;;; Main window
;;; Main window
-(defun create-main-window ()
+(defun create-main-window (
&optional display
)
(let* ((button-specs
'(("button box" create-button-box)
("buttons" create-buttons)
(let* ((button-specs
'(("button box" create-button-box)
("buttons" create-buttons)
@@
-1954,6
+1954,7
@@
(defun create-main-window ()
("UI manager" create-ui-manager)))
(main-window (make-instance 'window
("UI manager" create-ui-manager)))
(main-window (make-instance 'window
+ :display display
:title "testgtk.lisp" :name "main_window"
:default-width 200 :default-height 400
:allow-grow t :allow-shrink nil))
:title "testgtk.lisp" :name "main_window"
:default-width 200 :default-height 400
:allow-grow t :allow-shrink nil))
@@
-1963,7
+1964,7
@@
(defun create-main-window ()
:border-width 10))
(close-button (make-instance 'button
:stock "gtk-close" :can-default t
:border-width 10))
(close-button (make-instance 'button
:stock "gtk-close" :can-default t
- :signal (list 'clicked #'widget-destroy :object main-window))))
+ :signal (list 'clicked #'widget-destroy :object main-window))))
(let ((icon (gdk:pixbuf-load #p"clg:examples;gtk.png")))
(setf
(let ((icon (gdk:pixbuf-load #p"clg:examples;gtk.png")))
(setf