tim Rowledge uploaded a new version of Network to project The Trunk:
http://source.squeak.org/trunk/Network-tpr.267.mcz
==================== Summary ====================
Name: Network-tpr.267
Author: tpr
Time: 8 April 2023, 12:29:38.830776 pm
UUID: 01de8eeb-e2f0-4f50-ad57-4842a5c48a81
Ancestors: Network-mt.266
When asking for the host name, use the network primitives that actually work even if we are still using the old networking setup
=============== Diff against Network-mt.266 ===============
Item was changed:
----- Method: NetNameResolver class>>localHostName (in category 'lookups') -----
localHostName
"Return the local name of this host."
"NetNameResolver localHostName"
| host |
- self useOldNetwork ifTrue: [
- | hostName |
- hostName := self
- nameForAddress: self localHostAddress
- timeout: 5.
- ^hostName ifNil: [ self localAddressString ] ].
host := String new: NetNameResolver primHostNameSize.
NetNameResolver primHostNameResult: host.
^host!
Eliot Miranda uploaded a new version of System to project The Trunk:
http://source.squeak.org/trunk/System-eem.1410.mcz
==================== Summary ====================
Name: System-eem.1410
Author: eem
Time: 5 April 2023, 9:02:35.681492 am
UUID: 4ddeee7e-b9ba-46ff-b127-b8eb2febb59d
Ancestors: System-mt.1409
More accurate description of the failure conditions for primitive 98, storeSegmentFor:into:outPointers:
=============== Diff against System-mt.1409 ===============
Item was changed:
----- Method: NativeImageSegment>>storeSegmentFor:into:outPointers: (in category 'read/write segment primitives') -----
storeSegmentFor: rootsArray into: segmentWordArray outPointers: outPointerArray
"This primitive will store a binary image segment (in the same format as the Squeak
image file) of the receiver and every object in its proper tree of subParts (ie, that is
not refered to from anywhere else outside the tree). Note: all elements of the reciever
are treated as roots in determining the extent of the tree. All pointers from within
the tree to objects outside the tree will be copied into the array of outpointers. In
their place in the image segment will be an oop equal to the offset in the outpointer
array (the first would be 4 or 8, depending on word size). but with the high bit set.
Note: the first element of the segmentWordArray (and hence the first element of
the Array answered by loadSegmentFrom:outPointers:) is the rootsArray."
"The primitive expects the array and wordArray to be more than adequately long.
In this case it returns normally, and truncates the two arrays to exactly the right size.
+ If either array is too small, if too many out pointers are required (more than 2^22),
+ or if not enough memory is available to hold the computed set of objects,
+ then the primitive will fail, but in no other case."
- If either array is too small, the primitive will fail, but in no other case."
<primitive: 98 error: ec> "successful completion returns self"
ec == #'resource limit exceeded' ifTrue:
[self primitiveFailed].
^nil "normal failure returns nil"!
Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-mt.2102.mcz
==================== Summary ====================
Name: Morphic-mt.2102
Author: mt
Time: 5 April 2023, 11:49:24.832931 am
UUID: 7e97cbf7-c375-1c4f-8544-e2787c3adc4c
Ancestors: Morphic-mt.2101
For a possible drop into a tree widget, expand the hovered item after 1000 ms if possible so that users can select a sub-tree item during the drag operation.
=============== Diff against Morphic-mt.2101 ===============
Item was changed:
----- Method: SimpleHierarchicalListMorph>>mouseEnterDragging: (in category 'event handling') -----
mouseEnterDragging: evt
| aMorph |
(evt hand hasSubmorphs and:[self dropEnabled]) ifFalse: ["no d&d"
^super mouseEnterDragging: evt].
(self wantsDroppedMorph: evt hand firstSubmorph event: evt )
+ ifTrue: [
+ self removeAlarm: #toggleExpandedState:event:.
- ifTrue:[
aMorph := self itemFromPoint: evt position.
+ aMorph ifNotNil: [
+ self potentialDropMorph: aMorph.
+ (aMorph isExpanded not and: [aMorph canExpand]) ifTrue: [
+ self
+ addAlarm: #toggleExpandedState:event:
+ withArguments: {aMorph. evt}
+ after: 1000]].
- aMorph ifNotNil:[self potentialDropMorph: aMorph].
evt hand newMouseFocus: self.
"above is ugly but necessary for now"
].!
Item was changed:
----- Method: SimpleHierarchicalListMorph>>toggleExpandedState:event: (in category 'events') -----
+ toggleExpandedState: aMorph event: aMouseEvent
+ "Mouse navigation. Thus, avoid changing scroll position. See #toggleExpandedState: for keyboard navigation."
- toggleExpandedState: aMorph event: event
aMorph toggleExpandedState.
self adjustSubmorphPositions.
!