X-Git-Url: https://git.distorted.org.uk/~mdw/clg/blobdiff_plain/e72f7035fa57dd6c2a7f42e686daf6ee9e4189ee..0ffe3acd54763c2fd503c51efaffe979a46f59aa:/glib/gerror.lisp diff --git a/glib/gerror.lisp b/glib/gerror.lisp index 69b39e9..13b22d5 100644 --- a/glib/gerror.lisp +++ b/glib/gerror.lisp @@ -20,7 +20,7 @@ ;; TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE ;; SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -;; $Id: gerror.lisp,v 1.8 2007-09-07 07:32:26 espen Exp $ +;; $Id: gerror.lisp,v 1.10 2008-04-11 20:35:48 espen Exp $ (in-package "GLIB") @@ -40,7 +40,7 @@ (location pointer)) (define-condition glib-error (error) - ((code :initarg :domain :reader gerror-code) + ((code :initarg :code :reader gerror-code) (message :initarg :message :reader gerror-message)) (:report (lambda (condition stream) (write-string (gerror-message condition) stream)))) @@ -60,6 +60,10 @@ (deftype gerror-signal () 'gerror) +(define-type-method return-type ((type gerror-signal)) + (declare (ignore type)) + '(or null gerror)) + (define-type-method from-alien-form ((type gerror-signal) gerror &key (ref :free)) (declare (ignore type)) `(let ((gerror ,(from-alien-form 'gerror gerror :ref ref)))