summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse
diff options
context:
space:
mode:
authorAnatoly Spektor <aspektor@redhat.com>2013-02-07 15:35:15 -0500
committerAlexander Kurtakov <akurtako@redhat.com>2013-02-21 22:41:06 +0200
commita84e4f12000c77da8b885150e339fe7970a888cc (patch)
treeef43cf4d365f04ad97f9ce45d6d55711284bd7c9 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse
parentafb266ef7daac7232bb418f80a463e022c156133 (diff)
downloadeclipse.platform.swt-a84e4f12000c77da8b885150e339fe7970a888cc.tar.gz
eclipse.platform.swt-a84e4f12000c77da8b885150e339fe7970a888cc.tar.xz
eclipse.platform.swt-a84e4f12000c77da8b885150e339fe7970a888cc.zip
This patch solves clipping and wrong default sizing of GtkEntry in GTK3
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java
index db9f4d1201..46cf274a2f 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java
@@ -232,6 +232,9 @@ void createHandle (int index) {
}
if (OS.GTK3) {
imContext = OS.imContextLast();
+ if ((style & SWT.SINGLE) != 0) {
+ OS.gtk_entry_set_width_chars(handle, 6);
+ }
}
}