Mercurial > projects > dwt-linux
diff dwt/widgets/ToolTip.d @ 211:00180515eb65
Update to SWT 3.3.2
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 19 Mar 2008 21:36:28 +0100 |
parents | 17f8449522fd |
children | 380bad9f6852 |
line wrap: on
line diff
--- a/dwt/widgets/ToolTip.d Wed Mar 19 20:14:48 2008 +0100 +++ b/dwt/widgets/ToolTip.d Wed Mar 19 21:36:28 2008 +0100 @@ -677,6 +677,9 @@ layoutMessage = null; if (message.length !is 0) { layoutMessage = OS.gtk_widget_create_pango_layout (handle, toStringz( message )); + if (OS.GTK_VERSION >= OS.buildVERSION (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 (); @@ -704,6 +707,9 @@ layoutText = null; if (text.length !is 0) { layoutText = OS.gtk_widget_create_pango_layout (handle, toStringz(text)); + if (OS.GTK_VERSION >= OS.buildVERSION (2, 4, 0)) { + OS.pango_layout_set_auto_dir (layoutText, false); + } auto boldAttr = OS.pango_attr_weight_new (OS.PANGO_WEIGHT_BOLD); boldAttr.start_index = 0; boldAttr.end_index = text.length+1;