Mercurial > projects > dwt2
diff org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/widgets/Shell.d @ 51:c01d033c633a
[swt lin]
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 27 Mar 2009 19:58:06 +0100 |
parents | 7a2dd761a8b2 |
children |
line wrap: on
line diff
--- a/org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/widgets/Shell.d Fri Mar 27 15:30:20 2009 +0100 +++ b/org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/widgets/Shell.d Fri Mar 27 19:58:06 2009 +0100 @@ -558,7 +558,7 @@ * to come forward in versions > 2.10.0. The fix is to use the last * user event time. */ - if ( Unicode.toLower( display.windowManager ) ==/*eq*/ "metacity") { + if ( display.windowManager.toLowerCase() ==/*eq*/ "metacity") { OS.gdk_window_focus (window, display.lastUserEventTime); } else { OS.gdk_window_focus (window, OS.GDK_CURRENT_TIME); @@ -1662,7 +1662,7 @@ */ int length_ = string.length; char [] chars = new char [Math.max (6, length_) + 1]; - chars = string[ 0 .. length_]; + chars[ 0 .. length_ ] = string[ 0 .. length_]; for (int i=length_; i<chars.length; i++) chars [i] = ' '; OS.gtk_window_set_title (cast(GtkWindow*)shellHandle, toStringz( chars ) ); }