#REFACTORING by cg
authorClaus Gittinger <cg@exept.de>
Fri, 01 Mar 2019 16:11:27 +0100
changeset 6552 cfe2cf166508
parent 6551 a82593975b92
child 6553 1b15add12d92
#REFACTORING by cg class: SelectionInListView changed: #hasSelection (send #~~ instead of #>) #sizeChanged:from: #wantsFocusWithPointerEnter
SelectionInListView.st
--- a/SelectionInListView.st	Fri Mar 01 16:06:12 2019 +0100
+++ b/SelectionInListView.st	Fri Mar 01 16:11:27 2019 +0100
@@ -2754,7 +2754,7 @@
 
     shown ifTrue:[
         (oldExtent isNil or:[oldExtent y ~= height]) ifTrue:[
-            selection size > 0 ifTrue:[
+            selection size ~~ 0 ifTrue:[
                 selectionWasVisible ifTrue:[
                     self multipleSelectOk ifTrue:[
                         first := selection firstIfEmpty:nil
@@ -2776,7 +2776,8 @@
         ]
     ]
 
-    "Modified: / 1.12.1998 / 23:27:27 / cg"
+    "Modified: / 01-12-1998 / 23:27:27 / cg"
+    "Modified: / 01-03-2019 / 16:10:46 / Claus Gittinger"
 ! !
 
 !SelectionInListView methodsFor:'focus handling'!
@@ -2798,12 +2799,14 @@
     (UserPreferences current focusFollowsMouse ~~ false
     and:[(styleSheet at:#'selection.requestFocusOnPointerEnter' default:true)
     ]) ifTrue:[
-        list size > 0 ifTrue:[
+        list size ~~ 0 ifTrue:[
             ^ true
         ]
     ].
 
     ^ false
+
+    "Modified: / 01-03-2019 / 16:10:50 / Claus Gittinger"
 ! !
 
 !SelectionInListView methodsFor:'help'!
@@ -3707,9 +3710,11 @@
     "return true, if an item is selected"
 
     self multipleSelectOk ifTrue:[
-        ^ selection size > 0
+        ^ selection size ~~ 0
     ].
-    ^ selection notNil 
+    ^ selection notNil
+
+    "Modified: / 01-03-2019 / 16:10:40 / Claus Gittinger"
 !
 
 is:aNumber inSelection:aSelection