From: OpenJDK Team Date: Thu, 1 May 2025 08:40:21 +0000 (+0200) Subject: Revert upstream default to GTK2 X-Git-Tag: archive/raspbian/17.0.15+6-1_deb12u1+rpi1^2~17 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4935a9bca8d1cd67d8756989ed4b12373810b0d3;p=openjdk-17.git Revert upstream default to GTK2 OpenJDK 11 uses GTK3 by default for the GTK Look and Feel but it still has too many pending issues and artifacts and is not on par with GTK2 support. This patch is the reverse of the upstream commit which ensures that GTK2 is tried before GTK3. When GTK3 becomes better supported we should drop this and update the dlopen_jre_depends variable in debian/rules accordingly. Origin: upstream, http://hg.openjdk.java.net/jdk-updates/jdk11u/rev/3e3696a308e1 Bug: https://bugs.openjdk.java.net/browse/JDK-8198649, https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8198654 Bug-Ubuntu: https://launchpad.net/bugs/1770278 Forwarded: not-needed Applied-Upstream: http//hg.openjdk.java.net/jdk-updates/jdk11u/rev/3e3696a308e1 Reviewed-by: Last-Update: 2019-03-27 Gbp-Pq: Name keep-gtk2-as-default.patch --- diff --git a/src/java.desktop/unix/native/libawt_xawt/awt/gtk_interface.c b/src/java.desktop/unix/native/libawt_xawt/awt/gtk_interface.c index c8573ed3f..19c7d6e83 100644 --- a/src/java.desktop/unix/native/libawt_xawt/awt/gtk_interface.c +++ b/src/java.desktop/unix/native/libawt_xawt/awt/gtk_interface.c @@ -49,19 +49,19 @@ typedef struct { } GtkLib; static GtkLib gtk_libs[] = { - { - GTK_3, - JNI_LIB_NAME("gtk-3"), - VERSIONED_JNI_LIB_NAME("gtk-3", "0"), - >k3_load, - >k3_check - }, { GTK_2, JNI_LIB_NAME("gtk-x11-2.0"), VERSIONED_JNI_LIB_NAME("gtk-x11-2.0", "0"), >k2_load, >k2_check + }, + { + GTK_3, + JNI_LIB_NAME("gtk-3"), + VERSIONED_JNI_LIB_NAME("gtk-3", "0"), + >k3_load, + >k3_check } };