diff options
author | Anatoly Spektor <aspektor@redhat.com> | 2012-08-28 15:19:54 -0400 |
---|---|---|
committer | Arun Thondapu <arunkumar.thondapu@in.ibm.com> | 2012-09-11 20:32:20 +0530 |
commit | 1ff5dc76daca83722cbc3a22652379df0452b7e8 (patch) | |
tree | d15aa6773af9fcff5254395d9d93530270af6da3 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabFolder.java | |
parent | 2c1e3b3d7e8ee238ed9a1b0193fa5c0af85695fa (diff) | |
download | eclipse.platform.swt-1ff5dc76daca83722cbc3a22652379df0452b7e8.tar.gz eclipse.platform.swt-1ff5dc76daca83722cbc3a22652379df0452b7e8.tar.xz eclipse.platform.swt-1ff5dc76daca83722cbc3a22652379df0452b7e8.zip |
Bug 388265 Use gtk_box_new() and gtk_box_set_homogeneous() for GTK3
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/TabFolder.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabFolder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabFolder.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabFolder.java index 6e3cb9f984..232b05af5a 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabFolder.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabFolder.java @@ -217,7 +217,7 @@ void createItem (TabItem item, int index) { System.arraycopy (items, 0, newItems, 0, items.length); items = newItems; } - int /*long*/ boxHandle = OS.gtk_hbox_new (false, 0); + int /*long*/ boxHandle = gtk_box_new ( OS.GTK_ORIENTATION_HORIZONTAL, false, 0); if (boxHandle == 0) error (SWT.ERROR_NO_HANDLES); int /*long*/ labelHandle = OS.gtk_label_new_with_mnemonic (null); if (labelHandle == 0) error (SWT.ERROR_NO_HANDLES); |