diff --git a/src/api-impl-jni/widgets/android_opengl_GLSurfaceView.c b/src/api-impl-jni/widgets/android_opengl_GLSurfaceView.c index 2c2d5fd4..7e68f90f 100644 --- a/src/api-impl-jni/widgets/android_opengl_GLSurfaceView.c +++ b/src/api-impl-jni/widgets/android_opengl_GLSurfaceView.c @@ -54,6 +54,7 @@ extern int FIXME__HEIGHT; JNIEXPORT void JNICALL Java_android_opengl_GLSurfaceView_native_1constructor__Landroid_content_Context_2(JNIEnv *env, jobject this, jobject context) { GtkWidget *wrapper = wrapper_widget_new(); + gtk_widget_set_vexpand(wrapper, TRUE); GtkWidget *gl_area = gtk_gl_area_new(); wrapper_widget_set_child(WRAPPER_WIDGET(wrapper), gl_area); _SET_LONG_FIELD(this, "widget", _INTPTR(gl_area)); diff --git a/src/api-impl-jni/widgets/android_widget_RelativeLayout.c b/src/api-impl-jni/widgets/android_widget_RelativeLayout.c index 21bbba19..6eb0f3ea 100644 --- a/src/api-impl-jni/widgets/android_widget_RelativeLayout.c +++ b/src/api-impl-jni/widgets/android_widget_RelativeLayout.c @@ -12,7 +12,7 @@ JNIEXPORT void JNICALL Java_android_widget_RelativeLayout_native_1constructor__Landroid_util_AttributeSet_2(JNIEnv *env, jobject this, jobject attrs) { - int orientation = attribute_set_get_int(env, attrs, "orientation", NULL, 0); + int orientation = attribute_set_get_int(env, attrs, "orientation", NULL, 1); GtkWidget *wrapper = wrapper_widget_new(); GtkWidget *box = gtk_box_new(orientation ? GTK_ORIENTATION_VERTICAL : GTK_ORIENTATION_HORIZONTAL, 1); // spacing of 1 @@ -23,7 +23,7 @@ JNIEXPORT void JNICALL Java_android_widget_RelativeLayout_native_1constructor__L JNIEXPORT void JNICALL Java_android_widget_RelativeLayout_native_1constructor__Landroid_content_Context_2(JNIEnv *env, jobject this, jobject context) { GtkWidget *wrapper = wrapper_widget_new(); - GtkWidget *box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 1); // spacing of 1 + GtkWidget *box = gtk_box_new(GTK_ORIENTATION_VERTICAL, 1); // spacing of 1 wrapper_widget_set_child(WRAPPER_WIDGET(wrapper), box); gtk_widget_set_name(GTK_WIDGET(box), "RelativeLayout"); _SET_LONG_FIELD(this, "widget", _INTPTR(box));