From 6c2a3adae6f33172c66de83cf93b5e5c4a1f3ba6 Mon Sep 17 00:00:00 2001 From: Julian Winkler Date: Fri, 1 Sep 2023 12:46:02 +0200 Subject: [PATCH] LinearLayout: default to horizontal orientation --- src/api-impl-jni/widgets/android_widget_LinearLayout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api-impl-jni/widgets/android_widget_LinearLayout.c b/src/api-impl-jni/widgets/android_widget_LinearLayout.c index 657b26df..f6dd2758 100644 --- a/src/api-impl-jni/widgets/android_widget_LinearLayout.c +++ b/src/api-impl-jni/widgets/android_widget_LinearLayout.c @@ -21,7 +21,7 @@ static void on_click(GtkGestureClick *gesture, int n_press, double x, double y, JNIEXPORT jlong JNICALL Java_android_widget_LinearLayout_native_1constructor(JNIEnv *env, jobject this, jobject context, jobject attrs) { - int orientation = attribute_set_get_int(env, attrs, "orientation", NULL, 1); + int orientation = attribute_set_get_int(env, attrs, "orientation", NULL, 0); GtkWidget *wrapper = g_object_ref(wrapper_widget_new()); GtkWidget *box = gtk_box_new(orientation ? GTK_ORIENTATION_VERTICAL : GTK_ORIENTATION_HORIZONTAL, 1); // spacing of 1