X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/clg/blobdiff_plain/d2ba9d8606444090f642bbceab7ce2b9b903e6e3..62f128081bd450f55d7e4ffd6602fb518f8ea304:/gtk/gtkcontainer.lisp diff --git a/gtk/gtkcontainer.lisp b/gtk/gtkcontainer.lisp index a6981c6..6729eb3 100644 --- a/gtk/gtkcontainer.lisp +++ b/gtk/gtkcontainer.lisp @@ -15,7 +15,7 @@ ;; License along with this library; if not, write to the Free Software ;; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -;; $Id: gtkcontainer.lisp,v 1.15 2004-12-29 21:14:23 espen Exp $ +;; $Id: gtkcontainer.lisp,v 1.16 2005-01-06 21:00:53 espen Exp $ (in-package "GTK") @@ -30,6 +30,15 @@ (defmethod shared-initialize ((container container) names &rest initargs initargs :child :children)) +(defmethod create-callback-function ((container container) function arg1) + (if (eq arg1 :children) + #'(lambda (&rest args) + (mapc #'(lambda (child) + (apply function child (rest args))) + (container-children container))) + (call-next-method))) + + (defbinding %container-add () nil (container container) (widget widget))