X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/clg/blobdiff_plain/14021fee579226a95bc524bcc0e24eccd517c2cc..72d9260f8258b525339c7241da0631ceaf9f3842:/gtk/gtktypes.lisp diff --git a/gtk/gtktypes.lisp b/gtk/gtktypes.lisp index dfa9c05..2bd3f9b 100644 --- a/gtk/gtktypes.lisp +++ b/gtk/gtktypes.lisp @@ -84,6 +84,9 @@ (defclass border (boxed) :type int)) (:metaclass boxed-class)) +(eval-when (:compile-toplevel :load-toplevel :execute) + (register-type 'border '|gtk_border_get_type|)) + (defclass stock-item (struct) ((id :allocation :alien @@ -145,6 +148,11 @@ (define-type-method reader-function ((type position) &optional ref) (declare (ignore type ref)) (reader-function 'int)) +;; Register GtkObject in advance so that eg GtkTooltips, which inherits from it, +;; gets a proper supertype. TODO: This is a hack. Where is it supposed to +;; happen? +(register-type '%object "GtkObject") + (define-types-by-introspection "Gtk" ;; Manually defined ("GtkObject" :ignore t)