Compile on Ubuntu 16 with v3.2.9 or v3.2.2.1 linking statically. Run on Ubuntu 24 or RHEL 9.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
wxWidgets version you use: 3.2.9 or 3.2.2.1. Likely others will do.
wxWidgets port you use:
OS and its version: Compile on Ubuntu 16, run on Ubuntu 24
GTK version: GTK-3
Which GDK backend is used: Both x11 and Wayland have the issue
Desktop environment : Just make which ships with WxWidgets.
Current theme: 'Ambience'. I used the command "gsettings get org.gnome.desktop.interface gtk-theme" on Ubuntu 24.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
FYI I've edited your report to make its contents visible, as it was hidden inside HTML comments as originally written (please use the "Preview" tab to look at what you're submitting before doing it).
What GTK version do you have under Ubuntu 16?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
The theme on Ubuntu 16 is Ambiance. On Ubuntu 24 is Adwaita.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
We use different code for GTK 3.20+ and below, see the check at https://github.com/wxWidgets/wxWidgets/blob/8245e1073ae66fd246d2ec180160d2e20acf3644/src/gtk/renderer.cpp#L760 so this might account for the problem, but I don't see anything obviously wrong in the else branch code and enabling it on my system (GTK 3.24) doesn't reproduce the problem, so I am not sure what to do about it. And I don't even have any Ubuntu 16 VMs any more...
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Sorry, I don't know. If I were debugging this, I'd start by writing a minimal GTK program using the code from wxRendererGTK::DrawCheckBox() and check if it can be used to reproduce the problem. But this needs more time than I currently have.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
The reality is if you want your program to work right on GTK 3.20+, you have to use a wxWidgets library built against GTK 3.20+. The wxRenderer code for GTK < 3.20 just doesn't work for GTK 3.20+, and if you don't build against GTK 3.20+ the proper code is not there at runtime. Specifically, in this case gtk_widget_path_iter_set_object_name() is required.
https://github.com/wxWidgets/wxWidgets/blob/39c73b42f5882fc0eef568eda077ee20385c7bbd/src/gtk/settings.cpp#L452
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
Thanks for finding the root cause of this. It's unfortunate that GTK is apparently not forward compatible among 3.x versions, especially because this means our long-standing advice to build on the oldest system you want your programs to run is actually wrong.
I guess we could load the 3.20+ functions dynamically and use them if they're present but this
So I think this should be closed as "won't fix" unless somebody is motivated to work on fixing it.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()