diff options
author | Bogdan Gheorghe <gheorghe> | 2009-01-20 22:08:22 +0000 |
---|---|---|
committer | Bogdan Gheorghe <gheorghe> | 2009-01-20 22:08:22 +0000 |
commit | 90874dd0f318ad72c86947cdc4c25287bab952a0 (patch) | |
tree | dc7029d49f9a6834fb75971994447391812320a2 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java | |
parent | ef97fe54dc22960e591264f9a40821c6e605bd48 (diff) | |
download | eclipse.platform.swt-90874dd0f318ad72c86947cdc4c25287bab952a0.tar.gz eclipse.platform.swt-90874dd0f318ad72c86947cdc4c25287bab952a0.tar.xz eclipse.platform.swt-90874dd0f318ad72c86947cdc4c25287bab952a0.zip |
261219 text inner border can be wrong on gtk 2.10
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Combo.java | 4 |
1 files changed, 1 insertions, 3 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 944cf19c73..dbb7f314d6 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 @@ -63,8 +63,6 @@ public class Combo extends Composite { String [] items = new String [0]; boolean ignoreSelect, lockText; - static final int INNER_BORDER = 2; - /** * the operating system limit for the number of characters * that the text field in an instance of this class can hold @@ -372,7 +370,7 @@ public Point computeSize (int wHint, int hHint, boolean changed) { OS.gtk_widget_realize (entryHandle); int /*long*/ layout = OS.gtk_entry_get_layout (entryHandle); OS.pango_layout_get_size (layout, w, h); - int xborder = INNER_BORDER, yborder = INNER_BORDER; + int xborder = Display.INNER_BORDER, yborder = Display.INNER_BORDER; int /*long*/ style = OS.gtk_widget_get_style (entryHandle); xborder += OS.gtk_style_get_xthickness (style); yborder += OS.gtk_style_get_ythickness (style); |