diff options
author | Kevin Barnes <krbarnes> | 2008-11-03 18:55:37 +0000 |
---|---|---|
committer | Kevin Barnes <krbarnes> | 2008-11-03 18:55:37 +0000 |
commit | 36b2e18b24663a55fb7d31837df8018a89018c33 (patch) | |
tree | d21ed6d1fa337be25c8fe6ad105cf9a439bcb1ef /bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Label.java | |
parent | e3e8b410e8ce071f1063b1e2c5fa08e1c2a25b4c (diff) | |
download | eclipse.platform.swt-36b2e18b24663a55fb7d31837df8018a89018c33.tar.gz eclipse.platform.swt-36b2e18b24663a55fb7d31837df8018a89018c33.tar.xz eclipse.platform.swt-36b2e18b24663a55fb7d31837df8018a89018c33.zip |
252903 - replace initWithFrame(new NSRect()) with init()
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Label.java')
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Label.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Label.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Label.java index 8e9d0c824f..c003fd102a 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Label.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Label.java @@ -191,7 +191,7 @@ public Point computeSize (int wHint, int hHint, boolean changed) { void createHandle () { NSBox widget = (NSBox)new SWTBox().alloc(); - widget.initWithFrame(new NSRect()); + widget.init(); widget.setTitle(NSString.stringWith("")); if ((style & SWT.SEPARATOR) != 0) { widget.setBoxType(OS.NSBoxSeparator); @@ -205,11 +205,11 @@ void createHandle () { widget.setContentViewMargins (offsetSize); NSImageView imageWidget = (NSImageView) new SWTImageView ().alloc (); - imageWidget.initWithFrame(new NSRect ()); + imageWidget.init(); imageWidget.setImageScaling (OS.NSScaleNone); NSTextField textWidget = (NSTextField)new SWTTextField().alloc(); - textWidget.initWithFrame(new NSRect()); + textWidget.init(); textWidget.setBordered(false); textWidget.setEditable(false); textWidget.setDrawsBackground(false); |