#close moved up.
authorClaus Gittinger <cg@exept.de>
Wed, 02 Apr 1997 20:16:52 +0200
changeset 1520 bc88c7620d72
parent 1519 790f9af6c878
child 1521 23aacd62bbac
#close moved up. #destroy added
Form.st
--- a/Form.st	Wed Apr 02 20:16:13 1997 +0200
+++ b/Form.st	Wed Apr 02 20:16:52 1997 +0200
@@ -670,19 +670,24 @@
 
 !Form methodsFor:'ST-80 compatibility'!
 
-close
-    drawableId notNil ifTrue:[
-        gcId notNil ifTrue:[
-            device destroyGC:gcId.
-            gcId := nil
-        ].
-        device destroyPixmap:drawableId.
-        drawableId := nil.
+destroy
+    "destroy my underlying device resource(s)"
 
-        Lobby unregister:self.
+    |id|
+
+    (id := gcId) notNil ifTrue:[
+        gcId := nil.
+        device destroyGC:id.
     ].
 
-    "Modified: 1.4.1997 / 23:14:57 / cg"
+    (id := drawableId) notNil ifTrue:[
+        drawableId := nil.
+        device destroyPixmap:id.
+    ].
+
+    Lobby unregister:self.
+
+    "Modified: 2.4.1997 / 19:39:52 / cg"
 !
 
 displayOn:aGC at:aPoint
@@ -1740,6 +1745,6 @@
 !Form class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libview/Form.st,v 1.77 1997-04-01 21:15:16 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libview/Form.st,v 1.78 1997-04-02 18:16:52 cg Exp $'
 ! !
 Form initialize!