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:
b4977e8
)
gtk/gtk.lisp: Make (dialog-run) return the response symbolically.
author
Mark Wooding
<mdw@distorted.org.uk>
Tue, 5 Feb 2008 13:27:42 +0000
(13:27 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Fri, 2 Jan 2009 23:55:42 +0000
(23:55 +0000)
This is probably much more useful than reporting the response code! It
is, of course, incompatible, which is a shame.
gtk/gtk.lisp
patch
|
blob
|
blame
|
history
diff --git
a/gtk/gtk.lisp
b/gtk/gtk.lisp
index 0a7f354d43c3c443527ffc053b53adee07f81441..c5d3d54faac895698420ea36d574e129ae154078 100644
(file)
--- a/
gtk/gtk.lisp
+++ b/
gtk/gtk.lisp
@@
-865,8
+865,10
@@
(defmethod compute-signal-function ((dialog dialog) signal function object args)
(funcall callback dialog (dialog-find-response dialog response))))
(callback))))
-(defbinding
dialog-run () nil
+(defbinding
%dialog-run () int
(dialog dialog))
+(defun dialog-run (dialog)
+ (dialog-find-response dialog (%dialog-run dialog)))
(defbinding dialog-response (dialog response) nil
(dialog dialog)