diff options
author | Alexander Kurtakov <akurtako@redhat.com> | 2012-11-08 23:20:16 +0200 |
---|---|---|
committer | Alexander Kurtakov <akurtako@redhat.com> | 2012-11-08 23:20:16 +0200 |
commit | 9ce3caf7099b0ff9960462568879f32784494b1f (patch) | |
tree | 4a0d44d5d2deb1da7219f0e4b89a92674a1bba05 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Label.java | |
parent | ca1dc097c11cb3dc61bde47fc188deb8bbf21bc1 (diff) | |
download | eclipse.platform.swt-9ce3caf7099b0ff9960462568879f32784494b1f.tar.gz eclipse.platform.swt-9ce3caf7099b0ff9960462568879f32784494b1f.tar.xz eclipse.platform.swt-9ce3caf7099b0ff9960462568879f32784494b1f.zip |
Bug 393919 - [GTK 3] Text alignment inside GtkLabel is invalid
GtkBox has expand set to false, but Gtk[H|V]Box has is set to true.
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Label.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Label.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Label.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Label.java index 08eb57f317..1ce5e0c22e 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Label.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Label.java @@ -218,6 +218,8 @@ void createHandle (int index) { if (imageHandle == 0) error (SWT.ERROR_NO_HANDLES); OS.gtk_container_add (handle, labelHandle); OS.gtk_container_add (handle, imageHandle); + OS.gtk_box_set_child_packing(handle, labelHandle, true, true, 0, OS.GTK_PACK_START); + OS.gtk_box_set_child_packing(handle, imageHandle, true, true, 0, OS.GTK_PACK_START); } if ((style & SWT.BORDER) != 0) { frameHandle = OS.gtk_frame_new (null); |