From: Mark Wooding Date: Tue, 5 Feb 2008 13:27:42 +0000 (+0000) Subject: gtk/gtk.lisp: Make (dialog-run) return the response symbolically. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/clg/commitdiff_plain/84d58948bc9cf543ac43e17da28d1a832baeff1a?hp=72d9260f8258b525339c7241da0631ceaf9f3842 gtk/gtk.lisp: Make (dialog-run) return the response symbolically. This is probably much more useful than reporting the response code! It is, of course, incompatible, which is a shame. --- diff --git a/gtk/gtk.lisp b/gtk/gtk.lisp index cfda67f..b4038d3 100644 --- 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)