comparison org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/widgets/DateTime.d @ 49:7a2dd761a8b2

more work until dmd 2.026 linux segfaults.
author Frank Benoit <benoit@tionex.de>
date Fri, 27 Mar 2009 12:59:54 +0100
parents ddbfe84d86df
children c01d033c633a
comparison
equal deleted inserted replaced
48:ddbfe84d86df 49:7a2dd761a8b2
29 import org.eclipse.swt.widgets.Button; 29 import org.eclipse.swt.widgets.Button;
30 import org.eclipse.swt.widgets.Event; 30 import org.eclipse.swt.widgets.Event;
31 import org.eclipse.swt.widgets.Text; 31 import org.eclipse.swt.widgets.Text;
32 import org.eclipse.swt.widgets.TypedListener; 32 import org.eclipse.swt.widgets.TypedListener;
33 33
34 import java.lang.all;
35
34 version(Tango){ 36 version(Tango){
35 import tango.util.Convert; 37 import tango.util.Convert;
36 import java.lang.all;
37 38
38 static import tango.text.Util; 39 static import tango.text.Util;
39 //static import tango.text.locale.Core; 40 //static import tango.text.locale.Core;
40 static import tango.time.Time; 41 static import tango.time.Time;
41 static import tango.time.WallClock; 42 static import tango.time.WallClock;
984 985
985 void selectField(int index) { 986 void selectField(int index) {
986 if (index !is currentField) { 987 if (index !is currentField) {
987 commitCurrentField(); 988 commitCurrentField();
988 } 989 }
989 final int start = fieldIndices[index].x; 990 int start = fieldIndices[index].x;
990 final int end = fieldIndices[index].y; 991 int end = fieldIndices[index].y;
991 Point pt = text.getSelection(); 992 Point pt = text.getSelection();
992 if (index is currentField && start is pt.x && end is pt.y) return; 993 if (index is currentField && start is pt.x && end is pt.y) return;
993 currentField = index; 994 currentField = index;
994 display.asyncExec(new class( start, end ) Runnable { 995 display.asyncExec(new class( start, end ) Runnable {
995 int start, end; 996 int start, end;