aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSravan Kumar Lakkimsetti2014-05-05 05:22:40 (EDT)
committerArun Thondapu2014-05-08 03:17:31 (EDT)
commit0b40dc8adaa1fa3feafc9b7a1c5e53734db7ca70 (patch)
tree5bfdcf5d83a225ec497663b65166737efc86e37f
parent64cf50e9dd00e2950ba7323d169a8f18574fa71a (diff)
downloadeclipse.platform.swt-0b40dc8adaa1fa3feafc9b7a1c5e53734db7ca70.zip
eclipse.platform.swt-0b40dc8adaa1fa3feafc9b7a1c5e53734db7ca70.tar.gz
eclipse.platform.swt-0b40dc8adaa1fa3feafc9b7a1c5e53734db7ca70.tar.bz2
Bug 414893 - Spinner.getSelection() truncates digits when fractionalrefs/changes/52/25952/3
digits are specified. Change-Id: I8a1b9f101d21a93f723211c399b9ab9535dcccf1 Signed-off-by: Sravan Kumar Lakkimsetti <sravankumarl@in.ibm.com>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java26
1 files changed, 13 insertions, 13 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java
index 21e7790..325ce21 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2013 IBM Corporation and others.
+ * Copyright (c) 2000, 2014 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -649,56 +649,56 @@ void gtk_adjustment_get (long /*int*/ hAdjustment, GtkAdjustment adjustment) {
double gtk_adjustment_get_step_increment (long /*int*/ hAdjustment) {
if (OS.GTK_VERSION >= OS.VERSION (2, 14, 0)) {
- return (int) OS.gtk_adjustment_get_step_increment (hAdjustment);
+ return OS.gtk_adjustment_get_step_increment (hAdjustment);
}
GtkAdjustment adjustment = new GtkAdjustment ();
OS.memmove (adjustment, hAdjustment);
- return (int) adjustment.step_increment;
+ return adjustment.step_increment;
}
double gtk_adjustment_get_page_increment (long /*int*/ hAdjustment) {
if (OS.GTK_VERSION >= OS.VERSION (2, 14, 0)) {
- return (int) OS.gtk_adjustment_get_page_increment (hAdjustment);
+ return OS.gtk_adjustment_get_page_increment (hAdjustment);
}
GtkAdjustment adjustment = new GtkAdjustment ();
OS.memmove (adjustment, hAdjustment);
- return (int) adjustment.page_increment;
+ return adjustment.page_increment;
}
double gtk_adjustment_get_lower (long /*int*/ hAdjustment) {
if (OS.GTK_VERSION >= OS.VERSION (2, 14, 0)) {
- return (int) OS.gtk_adjustment_get_lower (hAdjustment);
+ return OS.gtk_adjustment_get_lower (hAdjustment);
}
GtkAdjustment adjustment = new GtkAdjustment ();
OS.memmove (adjustment, hAdjustment);
- return (int) adjustment.lower;
+ return adjustment.lower;
}
double gtk_adjustment_get_upper (long /*int*/ hAdjustment) {
if (OS.GTK_VERSION >= OS.VERSION (2, 14, 0)) {
- return (int) OS.gtk_adjustment_get_upper (hAdjustment);
+ return OS.gtk_adjustment_get_upper (hAdjustment);
}
GtkAdjustment adjustment = new GtkAdjustment ();
OS.memmove (adjustment, hAdjustment);
- return (int) adjustment.upper;
+ return adjustment.upper;
}
double gtk_adjustment_get_page_size (long /*int*/ hAdjustment) {
if (OS.GTK_VERSION >= OS.VERSION (2, 14, 0)) {
- return (int) OS.gtk_adjustment_get_page_size (hAdjustment);
+ return OS.gtk_adjustment_get_page_size (hAdjustment);
}
GtkAdjustment adjustment = new GtkAdjustment ();
OS.memmove (adjustment, hAdjustment);
- return (int) adjustment.page_size;
+ return adjustment.page_size;
}
double gtk_adjustment_get_value (long /*int*/ hAdjustment) {
if (OS.GTK_VERSION >= OS.VERSION (2, 14, 0)) {
- return (int) OS.gtk_adjustment_get_value (hAdjustment);
+ return OS.gtk_adjustment_get_value (hAdjustment);
}
GtkAdjustment adjustment = new GtkAdjustment ();
OS.memmove (adjustment, hAdjustment);
- return (int) adjustment.value;
+ return adjustment.value;
}
void gtk_adjustment_configure (long /*int*/ hAdjustment, GtkAdjustment a) {