You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
ImageView: allow non bitmap Drawables
Also pass size of child paintable in DrawableContainer
This commit is contained in:
@@ -22,3 +22,10 @@ JNIEXPORT void JNICALL Java_android_widget_ImageView_native_1setPixbuf(JNIEnv *e
|
||||
GdkPixbuf *pixbuf = _PTR(pixbuf_ptr);
|
||||
gtk_picture_set_pixbuf(GTK_PICTURE(image), pixbuf);
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL Java_android_widget_ImageView_native_1setDrawable(JNIEnv *env, jobject this, jlong widget_ptr, jlong paintable_ptr)
|
||||
{
|
||||
GtkPicture *picture = _PTR(widget_ptr);
|
||||
GdkPaintable *paintable = _PTR(paintable_ptr);
|
||||
gtk_picture_set_paintable(picture, paintable);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user