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:
096f4d9
)
Changes in widget initialization
author
espen
<espen>
Tue, 20 Nov 2001 18:25:53 +0000
(18:25 +0000)
committer
espen
<espen>
Tue, 20 Nov 2001 18:25:53 +0000
(18:25 +0000)
gtk/gtkcontainer.lisp
patch
|
blob
|
blame
|
history
gtk/gtkwidget.lisp
patch
|
blob
|
blame
|
history
diff --git
a/gtk/gtkcontainer.lisp
b/gtk/gtkcontainer.lisp
index a1b5de0f09a03fde1d9850866a0e2790a9afd753..d67baa020212a35a6ddf9161d3f0a74875372cac 100644
(file)
--- a/
gtk/gtkcontainer.lisp
+++ b/
gtk/gtkcontainer.lisp
@@
-15,11
+15,11
@@
;; 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: gtkcontainer.lisp,v 1.
5 2001/10/25 08:16:17
espen Exp $
+;; $Id: gtkcontainer.lisp,v 1.
6 2001/11/20 18:25:53
espen Exp $
(in-package "GTK")
(in-package "GTK")
-
-(defmethod
initialize-instance ((container container)
&rest initargs)
+
+(defmethod
shared-initialize ((container container) names
&rest initargs)
(call-next-method)
(dolist (child (get-all initargs :child))
(apply #'container-add container (mklist child))))
(call-next-method)
(dolist (child (get-all initargs :child))
(apply #'container-add container (mklist child))))
diff --git
a/gtk/gtkwidget.lisp
b/gtk/gtkwidget.lisp
index 9a07ec8cc2326d0b9ba2ef98c949c25e7bd3add9..43766ccd3fb4e8cfbd76978e391c7dd3bef98e70 100644
(file)
--- a/
gtk/gtkwidget.lisp
+++ b/
gtk/gtkwidget.lisp
@@
-15,22
+15,25
@@
;; 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.
5 2001/10/21 23:22:04
espen Exp $
+;; $Id: gtkwidget.lisp,v 1.
6 2001/11/20 18:25:53
espen Exp $
(in-package "GTK")
(in-package "GTK")
-(defmethod
initialize-instance ((widget widget)
&rest initargs &key parent)
- (declare (ignore initargs))
+(defmethod
shared-initialize ((widget widget) names
&rest initargs &key parent)
+ (declare (ignore initargs
names
))
(call-next-method)
(when parent
(call-next-method)
(when parent
- (let ((parent-widget (first (mklist parent)))
+ (let ((old-parent (widget-parent widget))
+ (parent-widget (first (mklist parent)))
(args (rest (mklist parent))))
(args (rest (mklist parent))))
+ (when old-parent
+ (container-remove old-parent widget))
(apply #'container-add parent-widget widget args))))
(apply #'container-add parent-widget widget args))))
-(defmethod
initialize-instance :after ((widget widget)
&rest initargs
-
&key show-all)
- (declare (ignore initargs))
+(defmethod
shared-initialize :after ((widget widget) names
&rest initargs
+ &key show-all)
+ (declare (ignore initargs
names
))
(when show-all
(widget-show-all widget)))
(when show-all
(widget-show-all widget)))