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:
e5b6173
)
pixmap-create now accepts a vector of strings
author
espen
<espen>
Mon, 4 Sep 2000 22:12:45 +0000
(22:12 +0000)
committer
espen
<espen>
Mon, 4 Sep 2000 22:12:45 +0000
(22:12 +0000)
gdk/gdk.lisp
patch
|
blob
|
blame
|
history
diff --git
a/gdk/gdk.lisp
b/gdk/gdk.lisp
index 675f64cca504be6b1ac630e9c291441671a9b3aa..ce298c5e47ad433c6a3f7f89102300e57c14a5aa 100644
(file)
--- a/
gdk/gdk.lisp
+++ b/
gdk/gdk.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: gdk.lisp,v 1.
2 2000/08/23 17:32:30
espen Exp $
+;; $Id: gdk.lisp,v 1.
3 2000/09/04 22:12:45
espen Exp $
(in-package "GDK")
(in-package "GDK")
@@
-396,12
+396,12
@@
(define-foreign %pixmap-colormap-create-from-xpm () pixmap
(color (or null color))
(filename string))
(color (or null color))
(filename string))
-(define-foreign pixmap-colormap-create-from-xpm-d () pixmap
+(define-foreign
%
pixmap-colormap-create-from-xpm-d () pixmap
(window (or null window))
(colormap (or null colormap))
(mask bitmap :out)
(color (or null color))
(window (or null window))
(colormap (or null colormap))
(mask bitmap :out)
(color (or null color))
- (data
pointer
))
+ (data
(vector string)
))
(defun pixmap-create (source &key color window colormap)
(let ((window
(defun pixmap-create (source &key color window colormap)
(let ((window
@@
-409,14
+409,12
@@
(defun pixmap-create (source &key color window colormap)
(get-root-window)
window)))
(multiple-value-bind (pixmap mask)
(get-root-window)
window)))
(multiple-value-bind (pixmap mask)
- (typecase source
+ (
e
typecase source
((or string pathname)
(%pixmap-colormap-create-from-xpm
window colormap color (namestring (truename source))))
((or string pathname)
(%pixmap-colormap-create-from-xpm
window colormap color (namestring (truename source))))
-; (t
-; (with-array (data :initial-contents source :free-contents t)
-; (pixmap-colormap-create-from-xpm-d window colormap color data)))
- )
+ ((vector string)
+ (%pixmap-colormap-create-from-xpm-d window colormap color source)))
(unreference-instance pixmap)
(unreference-instance mask)
(values pixmap mask))))
(unreference-instance pixmap)
(unreference-instance mask)
(values pixmap mask))))