diff options
author | Ian Pun | 2016-06-01 18:48:14 +0000 |
---|---|---|
committer | Eric Williams | 2016-06-09 12:35:26 +0000 |
commit | 24eb256965b906c57372583b0d64b697869f3558 (patch) | |
tree | 2c7d43bc63d0a7b32c185293b7fe4acb104e6bb6 /bundles/org.eclipse.swt | |
parent | 59820e09018e388dc2218a420e6bc0f282221e06 (diff) | |
download | eclipse.platform.swt-24eb256965b906c57372583b0d64b697869f3558.tar.gz eclipse.platform.swt-24eb256965b906c57372583b0d64b697869f3558.tar.xz eclipse.platform.swt-24eb256965b906c57372583b0d64b697869f3558.zip |
Bug 495180 - [GTK] Spinner.getTextLimit() returns 0xFFFF instead of
Spinner.LIMIT
Changed Spinner.LIMIT from to 0x7FFFFFFF to 0xFFFF (65536). Also changed
getTextLimit() to use Spinner.LIMIT instead of 0xFFFF if limit == 0.
Change-Id: I8fe833b7af4b9284658ea385bd064f700a337138
Signed-off-by: Ian Pun <ipun@redhat.com>
Diffstat (limited to 'bundles/org.eclipse.swt')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Spinner.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Spinner.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Spinner.java index 5afc5993bd..f6f945e552 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Spinner.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Spinner.java @@ -63,7 +63,7 @@ public class Spinner extends Composite { * to stop the compiler from inlining. */ static { - LIMIT = 0x7FFFFFFF; + LIMIT = 0xFFFF; } /* Spinner uses non-standard CSS to set its background color, so we need * a global variable to keep track of its background color. @@ -576,7 +576,7 @@ public String getText () { public int getTextLimit () { checkWidget (); int limit = OS.gtk_entry_get_max_length (handle); - return limit == 0 ? 0xFFFF : limit; + return limit == 0 ? LIMIT : limit; } /** |