chiark / gitweb /
Bug fix
[clg] / gtk / export.lisp
index c7d5c1f756190778acfb33386070f62a223069f4..232406d0e141c5a1025bca2b5b8b25831470d519 100644 (file)
@@ -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"))