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 | |
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()
17 files changed, 134 insertions, 14 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/gtk/org/eclipse/swt/browser/MozillaDelegate.java b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/gtk/org/eclipse/swt/browser/MozillaDelegate.java index 3b1a5d7ad8..761768d0bf 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/gtk/org/eclipse/swt/browser/MozillaDelegate.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/gtk/org/eclipse/swt/browser/MozillaDelegate.java @@ -178,7 +178,12 @@ int /*long*/ getHandle () { * causing the child of the GtkFixed handle to be resized to 1. * The workaround is to embed Mozilla into a GtkHBox handle. */ - embedHandle = OS.gtk_hbox_new (false, 0); + if (OS.GTK_VERSION >= OS.VERSION(3, 0, 0)){ + embedHandle = OS.gtk_box_new(OS.GTK_ORIENTATION_HORIZONTAL, 0); + OS.gtk_box_set_homogeneous(embedHandle, false); + } else { + embedHandle = OS.gtk_hbox_new (false, 0); + } OS.gtk_container_add (browser.handle, embedHandle); OS.gtk_widget_show (embedHandle); return embedHandle; diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c index bda63e4c6d..885435bae6 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os.c @@ -7471,6 +7471,26 @@ JNIEXPORT void JNICALL OS_NATIVE(_1gtk_1border_1free) } #endif +#ifndef NO__1gtk_1box_1new +JNIEXPORT jintLong JNICALL OS_NATIVE(_1gtk_1box_1new) + (JNIEnv *env, jclass that, jint arg0, jint arg1) +{ + jintLong rc = 0; + OS_NATIVE_ENTER(env, that, _1gtk_1box_1new_FUNC); +/* + rc = (jintLong)gtk_box_new((GtkOrientation)arg0, arg1); +*/ + { + OS_LOAD_FUNCTION(fp, gtk_box_new) + if (fp) { + rc = (jintLong)((jintLong (CALLING_CONVENTION*)(GtkOrientation, jint))fp)((GtkOrientation)arg0, arg1); + } + } + OS_NATIVE_EXIT(env, that, _1gtk_1box_1new_FUNC); + return rc; +} +#endif + #ifndef NO__1gtk_1box_1set_1child_1packing JNIEXPORT void JNICALL OS_NATIVE(_1gtk_1box_1set_1child_1packing) (JNIEnv *env, jclass that, jintLong arg0, jintLong arg1, jboolean arg2, jboolean arg3, jint arg4, jint arg5) @@ -7481,6 +7501,24 @@ JNIEXPORT void JNICALL OS_NATIVE(_1gtk_1box_1set_1child_1packing) } #endif +#ifndef NO__1gtk_1box_1set_1homogeneous +JNIEXPORT void JNICALL OS_NATIVE(_1gtk_1box_1set_1homogeneous) + (JNIEnv *env, jclass that, jintLong arg0, jboolean arg1) +{ + OS_NATIVE_ENTER(env, that, _1gtk_1box_1set_1homogeneous_FUNC); +/* + gtk_box_set_homogeneous(arg0, arg1); +*/ + { + OS_LOAD_FUNCTION(fp, gtk_box_set_homogeneous) + if (fp) { + ((void (CALLING_CONVENTION*)(jintLong, jboolean))fp)(arg0, arg1); + } + } + OS_NATIVE_EXIT(env, that, _1gtk_1box_1set_1homogeneous_FUNC); +} +#endif + #ifndef NO__1gtk_1box_1set_1spacing JNIEXPORT void JNICALL OS_NATIVE(_1gtk_1box_1set_1spacing) (JNIEnv *env, jclass that, jintLong arg0, jint arg1) @@ -9457,7 +9495,15 @@ JNIEXPORT jintLong JNICALL OS_NATIVE(_1gtk_1hbox_1new) { jintLong rc = 0; OS_NATIVE_ENTER(env, that, _1gtk_1hbox_1new_FUNC); +/* rc = (jintLong)gtk_hbox_new((gboolean)arg0, (gint)arg1); +*/ + { + OS_LOAD_FUNCTION(fp, gtk_hbox_new) + if (fp) { + rc = (jintLong)((jintLong (CALLING_CONVENTION*)(gboolean, gint))fp)((gboolean)arg0, (gint)arg1); + } + } OS_NATIVE_EXIT(env, that, _1gtk_1hbox_1new_FUNC); return rc; } @@ -15429,7 +15475,15 @@ JNIEXPORT jintLong JNICALL OS_NATIVE(_1gtk_1vbox_1new) { jintLong rc = 0; OS_NATIVE_ENTER(env, that, _1gtk_1vbox_1new_FUNC); +/* rc = (jintLong)gtk_vbox_new((gboolean)arg0, (gint)arg1); +*/ + { + OS_LOAD_FUNCTION(fp, gtk_vbox_new) + if (fp) { + rc = (jintLong)((jintLong (CALLING_CONVENTION*)(gboolean, gint))fp)((gboolean)arg0, (gint)arg1); + } + } OS_NATIVE_EXIT(env, that, _1gtk_1vbox_1new_FUNC); return rc; } diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h index b258d51b75..288a48cf4f 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_custom.h @@ -72,6 +72,10 @@ #define XRenderSetPictureTransform_LIB LIB_XRENDER #define g_filename_display_name_LIB LIB_GLIB #define gtk_widget_set_allocation_LIB LIB_GTK +#define gtk_box_new_LIB LIB_GTK +#define gtk_box_set_homogeneous_LIB LIB_GTK +#define gtk_hbox_new_LIB LIB_GTK +#define gtk_vbox_new_LIB LIB_GTK #define gtk_calendar_display_options_LIB LIB_GTK #define gtk_calendar_get_date_LIB LIB_GTK #define gtk_calendar_new_LIB LIB_GTK diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.c b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.c index ccefe83699..0ca15f077d 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.c +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.c @@ -18,8 +18,8 @@ #ifdef NATIVE_STATS -int OS_nativeFunctionCount = 1337; -int OS_nativeFunctionCallCount[1337]; +int OS_nativeFunctionCount = 1339; +int OS_nativeFunctionCallCount[1339]; char * OS_nativeFunctionNames[] = { #ifndef JNI64 "Call__IIII", @@ -595,7 +595,9 @@ char * OS_nativeFunctionNames[] = { "_1gtk_1arrow_1set", "_1gtk_1bin_1get_1child", "_1gtk_1border_1free", + "_1gtk_1box_1new", "_1gtk_1box_1set_1child_1packing", + "_1gtk_1box_1set_1homogeneous", "_1gtk_1box_1set_1spacing", "_1gtk_1button_1clicked", "_1gtk_1button_1get_1relief", diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.h b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.h index 2250808966..03201ea558 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.h +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/os_stats.h @@ -603,7 +603,9 @@ typedef enum { _1gtk_1arrow_1set_FUNC, _1gtk_1bin_1get_1child_FUNC, _1gtk_1border_1free_FUNC, + _1gtk_1box_1new_FUNC, _1gtk_1box_1set_1child_1packing_FUNC, + _1gtk_1box_1set_1homogeneous_FUNC, _1gtk_1box_1set_1spacing_FUNC, _1gtk_1button_1clicked_FUNC, _1gtk_1button_1get_1relief_FUNC, diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java index 5257293283..72695dadbb 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/OS.java @@ -7117,6 +7117,7 @@ public static final int /*long*/ gtk_grab_get_current() { } } /** + * @method flags=dynamic * @param homogeneous cast=(gboolean) * @param spacing cast=(gint) */ @@ -7131,7 +7132,32 @@ public static final int /*long*/ gtk_hbox_new(boolean homogeneous, int spacing) } /** * @method flags=dynamic - * @param adjustment cast=(GtkAdjustment *) + * @param orientation cast=(GtkOrientation) + */ +public static final native int /*long*/ _gtk_box_new(int orientation, int spacing); +public static final int /*long*/ gtk_box_new(int orientation, int spacing) { + lock.lock(); + try { + return _gtk_box_new(orientation, spacing); + } finally { + lock.unlock(); + } +} +/** + * @method flags=dynamic + */ +public static final native void _gtk_box_set_homogeneous(int /*long*/ box, boolean homogeneous); +public static final void gtk_box_set_homogeneous(int /*long*/ box, boolean homogeneous) { + lock.lock(); + try { + _gtk_box_set_homogeneous(box, homogeneous); + } finally { + lock.unlock(); + } +} +/** + * @method flags=dynamic + * @param adjustment cast=(GtkAdjustment *) */ public static final native int /*long*/ _gtk_hscale_new(int /*long*/ adjustment); public static final int /*long*/ gtk_hscale_new(int /*long*/ adjustment) { @@ -12055,6 +12081,7 @@ public static final void gtk_tree_view_convert_widget_to_bin_window_coords(int / } } /** + * @method flags=dynamic * @param homogeneous cast=(gboolean) * @param spacing cast=(gint) */ 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); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DirectoryDialog.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DirectoryDialog.java index cd4060359a..1a28ecebdb 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DirectoryDialog.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DirectoryDialog.java @@ -159,7 +159,13 @@ String openChooserDialog () { } if (message.length () > 0) { byte [] buffer = Converter.wcsToMbcs (null, message, true); - int /*long*/ box = OS.gtk_hbox_new (false, 0); + int /*long*/ box = 0; + if (OS.GTK_VERSION >= OS.VERSION(3, 0, 0)){ + box = OS.gtk_box_new(OS.GTK_ORIENTATION_HORIZONTAL, 0); + OS.gtk_box_set_homogeneous(box, false); + } else { + box = OS.gtk_hbox_new (false, 0); + } if (box == 0) error (SWT.ERROR_NO_HANDLES); int /*long*/ label = OS.gtk_label_new (buffer); if (label == 0) error (SWT.ERROR_NO_HANDLES); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ExpandBar.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ExpandBar.java index 5b4887b7f9..cf156cb5c9 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ExpandBar.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ExpandBar.java @@ -130,7 +130,12 @@ void createHandle (int index) { fixedHandle = OS.g_object_new (display.gtk_fixed_get_type (), 0); if (fixedHandle == 0) error (SWT.ERROR_NO_HANDLES); gtk_widget_set_has_window (fixedHandle, true); - handle = OS.gtk_vbox_new (false, 0); + if (OS.GTK_VERSION >= OS.VERSION(3, 0, 0)){ + handle = OS.gtk_box_new(OS.GTK_ORIENTATION_VERTICAL, 0); + OS.gtk_box_set_homogeneous(handle, false); + } else { + handle = OS.gtk_vbox_new (false, 0); + } if (handle == 0) error (SWT.ERROR_NO_HANDLES); if ((style & SWT.V_SCROLL) != 0) { scrolledHandle = OS.gtk_scrolled_window_new (0, 0); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ExpandItem.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ExpandItem.java index d312929e94..311e6b802b 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ExpandItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ExpandItem.java @@ -127,7 +127,7 @@ void createHandle (int index) { clientHandle = OS.g_object_new (display.gtk_fixed_get_type (), 0); if (clientHandle == 0) error (SWT.ERROR_NO_HANDLES); OS.gtk_container_add (handle, clientHandle); - 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 (null); if (labelHandle == 0) error (SWT.ERROR_NO_HANDLES); 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 4885a1b520..d4326cdebb 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 @@ -211,7 +211,7 @@ void createHandle (int index) { } if (handle == 0) error (SWT.ERROR_NO_HANDLES); } else { - handle = OS.gtk_hbox_new (false, 0); + handle = gtk_box_new (OS.GTK_ORIENTATION_HORIZONTAL, false, 0); if (handle == 0) error (SWT.ERROR_NO_HANDLES); labelHandle = OS.gtk_label_new_with_mnemonic (null); if (labelHandle == 0) error (SWT.ERROR_NO_HANDLES); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java index 91bc955651..5f1a5416bc 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Shell.java @@ -677,7 +677,7 @@ void createHandle (int index) { } else { OS.gtk_window_set_resizable (shellHandle, false); } - vboxHandle = OS.gtk_vbox_new (false, 0); + vboxHandle = gtk_box_new (OS.GTK_ORIENTATION_VERTICAL, false, 0); if (vboxHandle == 0) error (SWT.ERROR_NO_HANDLES); createHandle (index, false, true); OS.gtk_container_add (vboxHandle, scrolledHandle); 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); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java index 501a8ea17c..d859a2f916 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java @@ -658,7 +658,7 @@ void createItem (TableColumn column, int index) { } else { createColumn (column, index); } - int /*long*/ boxHandle = OS.gtk_hbox_new (false, 3); + int /*long*/ boxHandle = gtk_box_new ( OS.GTK_ORIENTATION_HORIZONTAL, false, 3); 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); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java index b6ae773f1f..6145bc6524 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolItem.java @@ -215,7 +215,7 @@ void createHandle (int index) { */ handle = OS.gtk_tool_button_new (0, null); if (handle == 0) error (SWT.ERROR_NO_HANDLES); - arrowBoxHandle = OS.gtk_hbox_new (false, 0); + arrowBoxHandle = gtk_box_new ( OS.GTK_ORIENTATION_HORIZONTAL, false, 0);; if (arrowBoxHandle == 0) error(SWT.ERROR_NO_HANDLES); arrowHandle = OS.gtk_arrow_new (OS.GTK_ARROW_DOWN, OS.GTK_SHADOW_NONE); if (arrowHandle == 0) error (SWT.ERROR_NO_HANDLES); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tree.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tree.java index 1b2b738e13..a105fefe3c 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tree.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tree.java @@ -769,7 +769,7 @@ void createItem (TreeColumn column, int index) { } else { createColumn (column, index); } - int /*long*/ boxHandle = OS.gtk_hbox_new (false, 3); + int /*long*/ boxHandle = gtk_box_new ( OS.GTK_ORIENTATION_HORIZONTAL, false, 3); 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); diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java index 465a0f733e..e9db87b1ae 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java @@ -1834,6 +1834,21 @@ void gdk_window_get_size (int /*long*/ drawable, int[] width, int[] height) { } } +int /*long*/ gtk_box_new (int orientation, boolean homogeneous, int spacing) { + int /*long*/ box = 0; + if (OS.GTK_VERSION >= OS.VERSION(3, 0, 0)) { + box = OS.gtk_box_new (orientation, spacing); + OS.gtk_box_set_homogeneous (box, homogeneous); + } else { + if (orientation == OS.GTK_ORIENTATION_HORIZONTAL) { + box = OS.gtk_hbox_new (homogeneous, spacing); + } else if (orientation == OS.GTK_ORIENTATION_VERTICAL) { + box = OS.gtk_vbox_new (homogeneous, spacing); + } + } + return box; +} + /** * Returns a string containing a concise, human-readable * description of the receiver. |