From: espen Date: Sun, 27 Feb 2005 15:39:18 +0000 (+0000) Subject: Call show-widget in shared-initialize after method when initarg :visible is non NIL X-Git-Url: https://git.distorted.org.uk/~mdw/clg/commitdiff_plain/a457d4721ad77719b72e410a00761d702f73827d Call show-widget in shared-initialize after method when initarg :visible is non NIL --- diff --git a/gtk/gtkwidget.lisp b/gtk/gtkwidget.lisp index f7dad25..db60efc 100644 --- a/gtk/gtkwidget.lisp +++ b/gtk/gtkwidget.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: gtkwidget.lisp,v 1.16 2005-02-22 23:12:06 espen Exp $ +;; $Id: gtkwidget.lisp,v 1.17 2005-02-27 15:39:18 espen Exp $ (in-package "GTK") @@ -29,8 +29,10 @@ :remove t)) (call-next-method)) -(defmethod shared-initialize :after ((widget widget) names &key parent) +(defmethod shared-initialize :after ((widget widget) names &key parent visible) (declare (ignore names)) + (when visible + (widget-show widget)) (when parent (when (slot-boundp widget 'parent) (container-remove (widget-parent widget) widget))