summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelipe Heidrich <Felipe_Heidrich@ca.ibm.com>2011-10-07 12:27:08 -0400
committerFelipe Heidrich <Felipe_Heidrich@ca.ibm.com>2011-10-07 12:27:26 -0400
commitd52df98f05560bc00a24a4e8fcb6bce4ce26b606 (patch)
treede68652c2cfcbfb6d9b939cd546fab8c06ed4411
parent2d0e3fd644ae17132269c275bfaea2711be8ebfb (diff)
downloadeclipse.platform.swt-d52df98f05560bc00a24a4e8fcb6bce4ce26b606.tar.gz
eclipse.platform.swt-d52df98f05560bc00a24a4e8fcb6bce4ce26b606.tar.xz
eclipse.platform.swt-d52df98f05560bc00a24a4e8fcb6bce4ce26b606.zip
review bug 44072 on gtk
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java15
1 files changed, 8 insertions, 7 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java
index 43b062f25f..3582fac77e 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java
@@ -69,6 +69,7 @@ public class Combo extends Composite {
* that the text field in an instance of this class can hold
*/
public final static int LIMIT;
+
/*
* These values can be different on different platforms.
* Therefore they are not initialized in the declaration
@@ -841,10 +842,10 @@ GdkColor getBackgroundColor () {
return getBaseColor ();
}
-public Point getCaretLocation() {
- checkWidget();
- if((style & SWT.READ_ONLY) != 0) {
- return new Point(0, 0);
+public Point getCaretLocation () {
+ checkWidget ();
+ if ((style & SWT.READ_ONLY) != 0) {
+ return new Point (0, 0);
}
int index = OS.gtk_editable_get_position (entryHandle);
if (OS.GTK_VERSION >= OS.VERSION (2, 6, 0)) {
@@ -860,9 +861,9 @@ public Point getCaretLocation() {
return new Point (x, y);
}
-public int getCaretPosition() {
- checkWidget();
- if((style & SWT.READ_ONLY) != 0) {
+public int getCaretPosition () {
+ checkWidget ();
+ if ((style & SWT.READ_ONLY) != 0) {
return 0;
}
int /*long*/ ptr = OS.gtk_entry_get_text (entryHandle);