Mercurial > projects > dwt2
comparison org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/custom/PopupList.d @ 51:c01d033c633a
[swt lin]
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 27 Mar 2009 19:58:06 +0100 |
parents | f713da8bc051 |
children | 536e43f63c81 |
comparison
equal
deleted
inserted
replaced
50:d5075f5226e5 | 51:c01d033c633a |
---|---|
226 | 226 |
227 // find the first entry in the list that starts with the | 227 // find the first entry in the list that starts with the |
228 // specified string | 228 // specified string |
229 if (string !is null){ | 229 if (string !is null){ |
230 for (int i = 0; i < items.length; i++) { | 230 for (int i = 0; i < items.length; i++) { |
231 if ( tango.text.Util.locatePattern( items[i], string) is 0 ){ | 231 if ( items[i].startsWith( string) ){ |
232 int index = list.indexOf(items[i]); | 232 int index = list.indexOf(items[i]); |
233 list.select(index); | 233 list.select(index); |
234 break; | 234 break; |
235 } | 235 } |
236 } | 236 } |