chiark
/
gitweb
/
~mdw
/
clg
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
72d9260
)
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, 22 Mar 2013 00:52:55 +0000
(
00:52
+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 cfda67fffc5960a2f410a8b7f9ff2bbb06d01b15..b4038d30b9a39e3fb9fb944cd5e07d0bc3b96777 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)