diff options
author | Felipe Heidrich <fheidric> | 2007-07-17 17:00:10 +0000 |
---|---|---|
committer | Felipe Heidrich <fheidric> | 2007-07-17 17:00:10 +0000 |
commit | 0ea3ba112b0ceff1fe244cd0857e6be23b89ecd1 (patch) | |
tree | af37af7f02fcc48d636e959a2a18b0e7206ee431 | |
parent | 60f839310abcd90119818f06628b7cf4960224ab (diff) | |
download | eclipse.platform.swt-0ea3ba112b0ceff1fe244cd0857e6be23b89ecd1.tar.gz eclipse.platform.swt-0ea3ba112b0ceff1fe244cd0857e6be23b89ecd1.tar.xz eclipse.platform.swt-0ea3ba112b0ceff1fe244cd0857e6be23b89ecd1.zip |
Bug 196791 SWT ToolTip does not render Arabian text tooltip correctly on SLED10 Linux
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolTip.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolTip.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolTip.java index bb5c371694..684bdca601 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolTip.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolTip.java @@ -665,6 +665,9 @@ public void setMessage (String string) { if (message.length () != 0) { byte [] buffer = Converter.wcsToMbcs (null, message, true); layoutMessage = OS.gtk_widget_create_pango_layout (handle, buffer); + if (OS.GTK_VERSION >= OS.VERSION (2, 4, 0)) { + OS.pango_layout_set_auto_dir (layoutMessage, false); + } OS.pango_layout_set_wrap (layoutMessage, OS.PANGO_WRAP_WORD_CHAR); } if (OS.GTK_WIDGET_VISIBLE (handle)) configure (); @@ -693,6 +696,9 @@ public void setText (String string) { if (text.length () != 0) { byte [] buffer = Converter.wcsToMbcs (null, text, true); layoutText = OS.gtk_widget_create_pango_layout (handle, buffer); + if (OS.GTK_VERSION >= OS.VERSION (2, 4, 0)) { + OS.pango_layout_set_auto_dir (layoutText, false); + } int /*long*/ boldAttr = OS.pango_attr_weight_new (OS.PANGO_WEIGHT_BOLD); PangoAttribute attribute = new PangoAttribute (); OS.memmove (attribute, boldAttr, PangoAttribute.sizeof); |