GskCanavas: draw default content when custom View calls super.onDraw()

This commit is contained in:
Julian Winkler
2024-05-25 19:58:55 +02:00
committed by Mis012
parent 6575fef58e
commit 6f02565920
9 changed files with 54 additions and 8 deletions

View File

@@ -583,3 +583,9 @@ JNIEXPORT void JNICALL Java_android_view_View_native_1queueAllocate(JNIEnv *env,
{
gtk_widget_queue_allocate(GTK_WIDGET(_PTR(widget_ptr)));
}
JNIEXPORT void JNICALL Java_android_view_View_native_1onDraw(JNIEnv *env, jobject this, jlong widget_ptr, jlong snapshot_ptr)
{
WrapperWidget *wrapper = WRAPPER_WIDGET(gtk_widget_get_parent(GTK_WIDGET(_PTR(widget_ptr))));
wrapper_widget_draw_children(wrapper, GDK_SNAPSHOT(_PTR(snapshot_ptr)));
}