chiark
/
gitweb
/
~mdw
/
clg
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e5c7586
)
Call show-widget in shared-initialize after method when initarg :visible is non NIL
author
espen
<espen>
Sun, 27 Feb 2005 15:39:18 +0000
(15:39 +0000)
committer
espen
<espen>
Sun, 27 Feb 2005 15:39:18 +0000
(15:39 +0000)
gtk/gtkwidget.lisp
patch
|
blob
|
blame
|
history
diff --git
a/gtk/gtkwidget.lisp
b/gtk/gtkwidget.lisp
index f7dad256ad7b1a4b93708529310f4dd37872cafa..db60efccd767acfed70b8e3c0b6f92a5cea299c5 100644
(file)
--- 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
;; 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.1
6 2005-02-22 23:12:06
espen Exp $
+;; $Id: gtkwidget.lisp,v 1.1
7 2005-02-27 15:39:18
espen Exp $
(in-package "GTK")
(in-package "GTK")
@@
-29,8
+29,10
@@
(defmethod shared-initialize ((widget widget) names &key (visible nil visible-p)
:remove t))
(call-next-method))
: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))
(declare (ignore names))
+ (when visible
+ (widget-show widget))
(when parent
(when (slot-boundp widget 'parent)
(container-remove (widget-parent widget) widget))
(when parent
(when (slot-boundp widget 'parent)
(container-remove (widget-parent widget) widget))