X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/clg/blobdiff_plain/8ab97aa374ed51b9509bcc633374e7c58a2acd10..9f321c754ae94a7573a18f0e8c24ce23add22c89:/gtk/export.lisp diff --git a/gtk/export.lisp b/gtk/export.lisp index c7d5c1f..232406d 100644 --- a/gtk/export.lisp +++ b/gtk/export.lisp @@ -1,12 +1,38 @@ (in-package "GTK") +(eval-when (:compile-toplevel :load-toplevel :execute) + (defvar *gtk-files* + (list + #p"clg:gtk;gtktypes.lisp" + #p"clg:gtk;gtkwidget.lisp" + #p"clg:gtk;gtkcontainer.lisp" + #p"clg:gtk;gtk.lisp" + #p"clg:gtk;gtktree.lisp" + #p"clg:gtk;gtktext.lisp" + #p"clg:gtk;gtkaction.lisp" + #p"clg:gtk;gtkselection.lisp" + #p"clg:gtk;gtkutils.lisp" + #p"clg:gtk;gtkstyle.lisp")) + + (defexport define-style-color-accessor (name type) + (declare (ignore type)) + name) + + (defexport define-style-gc-reader (name type) + (declare (ignore type)) + name)) + ;;; Autogenerating exported symbols -(export-from-file #p"clg:gtk;gtktypes.lisp") -(export-from-file #p"clg:gtk;gtkwidget.lisp") -(export-from-file #p"clg:gtk;gtkcontainer.lisp") -(export-from-file #p"clg:gtk;gtk.lisp") -(export-from-file #p"clg:gtk;gtktree.lisp") -(export-from-file #p"clg:gtk;gtktext.lisp") -(export-from-file #p"clg:gtk;gtkaction.lisp") -(export-from-file #p"clg:gtk;gtkutils.lisp") -(export-from-file #p"clg:gtk;gtkstyle.lisp") +(export-from-files #.*gtk-files*) + + +;;; Now re-export some of the symbols from the CLG package +(with-export-handlers + (export-handler-makunbound 'defvar) + (export-handler-makunbound 'deftype) + + (defexport defclass (class superclasses &optional slotdefs &rest options) + (declare (ignore superclasses options)) + (export-defclass-form class slotdefs nil)) + + (export-from-files #.*gtk-files* "CLG"))