summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Button.java
diff options
context:
space:
mode:
authorAnatoly Spektor <aspektor@redhat.com>2012-08-28 15:19:54 -0400
committerAnatoly Spektor <aspektor@redhat.com>2012-08-28 15:19:54 -0400
commitc47cc57ebf3b1c46a730df03432af6a0b59c5aca (patch)
tree6b3a90a5785a1ca2f6fa39617ca703f8bd5af664 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Button.java
parent7ac2d15e081f50dc81d21e4d632f358a2190c759 (diff)
downloadeclipse.platform.swt-c47cc57ebf3b1c46a730df03432af6a0b59c5aca.tar.gz
eclipse.platform.swt-c47cc57ebf3b1c46a730df03432af6a0b59c5aca.tar.xz
eclipse.platform.swt-c47cc57ebf3b1c46a730df03432af6a0b59c5aca.zip
Use gtk_box_new() and gtk_box_set_homogeneous() for GTK3gtk3_box_new
This patch implements Gtk 3 methods gtk_box_new() and gtk_box_set_homogeneous() instead of deprecated gtk_hbox_new() and gtk_vbox_new()
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Button.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Button.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Button.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Button.java
index 7649674a1a..6d1ba92794 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Button.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Button.java
@@ -308,7 +308,7 @@ void createHandle (int index) {
if ((style & SWT.ARROW) != 0) {
OS.gtk_container_add (handle, arrowHandle);
} else {
- boxHandle = OS.gtk_hbox_new (false, 4);
+ boxHandle = gtk_box_new (OS.GTK_ORIENTATION_HORIZONTAL, false, 4);
if (boxHandle == 0) error (SWT.ERROR_NO_HANDLES);
labelHandle = OS.gtk_label_new_with_mnemonic (null);
if (labelHandle == 0) error (SWT.ERROR_NO_HANDLES);