Mercurial > projects > dwt-linux
comparison dwt/widgets/Label.d @ 240:ce446666f5a2
Update to SWT 3.4M7
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 12 May 2008 19:13:01 +0200 |
parents | 380bad9f6852 |
children | 5a30aa9820f3 |
comparison
equal
deleted
inserted
replaced
239:06a1f6829310 | 240:ce446666f5a2 |
---|---|
212 OS.gtk_frame_set_shadow_type (cast(GtkFrame*)frameHandle, OS.GTK_SHADOW_ETCHED_IN); | 212 OS.gtk_frame_set_shadow_type (cast(GtkFrame*)frameHandle, OS.GTK_SHADOW_ETCHED_IN); |
213 } else { | 213 } else { |
214 OS.gtk_container_add (cast(GtkContainer*)fixedHandle, handle); | 214 OS.gtk_container_add (cast(GtkContainer*)fixedHandle, handle); |
215 } | 215 } |
216 if ((style & DWT.SEPARATOR) !is 0) return; | 216 if ((style & DWT.SEPARATOR) !is 0) return; |
217 if ((style & DWT.WRAP) !is 0) OS.gtk_label_set_line_wrap (cast(GtkLabel*)labelHandle, true); | 217 if ((style & DWT.WRAP) !is 0) { |
218 OS.gtk_label_set_line_wrap (labelHandle, true); | |
219 if (OS.GTK_VERSION >= OS.buildVERSION (2, 10, 0)) { | |
220 OS.gtk_label_set_line_wrap_mode (labelHandle, OS.PANGO_WRAP_WORD_CHAR); | |
221 } | |
222 } | |
218 if ((style & DWT.LEFT) !is 0) { | 223 if ((style & DWT.LEFT) !is 0) { |
219 OS.gtk_misc_set_alignment (cast(GtkMisc*)labelHandle, 0.0f, 0.0f); | 224 OS.gtk_misc_set_alignment (cast(GtkMisc*)labelHandle, 0.0f, 0.0f); |
220 OS.gtk_label_set_justify (cast(GtkLabel*)labelHandle, OS.GTK_JUSTIFY_LEFT); | 225 OS.gtk_label_set_justify (cast(GtkLabel*)labelHandle, OS.GTK_JUSTIFY_LEFT); |
221 OS.gtk_misc_set_alignment (cast(GtkMisc*)imageHandle, 0.0f, 0.5f); | 226 OS.gtk_misc_set_alignment (cast(GtkMisc*)imageHandle, 0.0f, 0.5f); |
222 return; | 227 return; |