grid sample built on Ubuntu 16 has missing checkboxes in Ubuntu 14, wxGridCellBoolRenderer issue (Issue #26112)

53 views
Skip to first unread message

rhojati

unread,
Jan 24, 2026, 7:43:35 PMJan 24
to wx-...@googlegroups.com, Subscribed
rhojati created an issue (wxWidgets/wxWidgets#26112)

Description

Platform and version information

Compile on Ubuntu 16 with v3.2.9 or v3.2.2.1 linking statically. Run on Ubuntu 24 or RHEL 9.

  • wxWidgets version you use:
  • wxWidgets port you use:
  • OS and its version:
    • GTK version:
    • Which GDK backend is used:
    • Desktop environment :
    • Current theme:


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/26112@github.com>

rhojati

unread,
Jan 24, 2026, 7:47:51 PMJan 24
to wx-...@googlegroups.com, Subscribed
rhojati left a comment (wxWidgets/wxWidgets#26112)
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.Message ID: <wxWidgets/wxWidgets/issues/26112/3795771515@github.com>

VZ

unread,
Jan 24, 2026, 7:48:54 PMJan 24
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#26112)

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.Message ID: <wxWidgets/wxWidgets/issues/26112/3795772498@github.com>

rhojati

unread,
Jan 24, 2026, 7:51:57 PMJan 24
to wx-...@googlegroups.com, Subscribed
rhojati left a comment (wxWidgets/wxWidgets#26112)
Thanks. Sorry about that. Verion of gtk on Ubuntu 16 is 3.18.9. I used
the command " pkg-config --modversion gtk+-3.0".

On 1/24/2026 4:48 PM, VZ wrote:
> *vadz* left a comment (wxWidgets/wxWidgets#26112)
> <https://github.com/wxWidgets/wxWidgets/issues/26112#issuecomment-3795772498>

>
> 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
> <https://github.com/wxWidgets/wxWidgets/issues/26112#issuecomment-3795772498>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ADD4DW5KRAROTKQQLWSRC4D4IQHG5AVCNFSM6AAAAACSZH65D6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTOOJVG43TENBZHA>.
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/26112/3795774885@github.com>

rhojati

unread,
Jan 24, 2026, 7:54:05 PMJan 24
to wx-...@googlegroups.com, Subscribed
rhojati left a comment (wxWidgets/wxWidgets#26112)

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.Message ID: <wxWidgets/wxWidgets/issues/26112/3795776467@github.com>

VZ

unread,
Jan 24, 2026, 7:59:09 PMJan 24
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#26112)

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.Message ID: <wxWidgets/wxWidgets/issues/26112/3795780030@github.com>

rhojati

unread,
Jan 27, 2026, 11:30:24 AMJan 27
to wx-...@googlegroups.com, Subscribed
rhojati left a comment (wxWidgets/wxWidgets#26112)
Thanks. I have access to both Ubuntu 16 and 24. Is there something I can
try on my end? Perhaps some print statements in code on Ubuntu 16, which
will us what code gets executed on Ubuntu 24? Thanks.


On 1/24/2026 4:59 PM, VZ wrote:
> *vadz* left a comment (wxWidgets/wxWidgets#26112)
> <https://github.com/wxWidgets/wxWidgets/issues/26112#issuecomment-3795780030>

>
> 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
> <https://github.com/wxWidgets/wxWidgets/issues/26112#issuecomment-3795780030>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ADD4DW22KXVDOD5XAI3OXB34IQINLAVCNFSM6AAAAACSZH65D6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTOOJVG44DAMBTGA>.

> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/26112/3806184660@github.com>

VZ

unread,
Jan 28, 2026, 7:53:25 AMJan 28
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#26112)

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.Message ID: <wxWidgets/wxWidgets/issues/26112/3811141468@github.com>

rhojati

unread,
Jan 28, 2026, 9:09:17 PMJan 28
to wx-...@googlegroups.com, Subscribed
rhojati left a comment (wxWidgets/wxWidgets#26112)
Thanks for the reply. Ubuntu 22 has the same behavior as Ubuntu 24, i.e.
grid sample compiled on Ubuntu 16, has missing check marks in WxGrid in
Ubuntu 22. Other check marks and the rest of the GUI seems fine.


On 1/28/2026 4:53 AM, VZ wrote:
> *vadz* left a comment (wxWidgets/wxWidgets#26112)
> <https://github.com/wxWidgets/wxWidgets/issues/26112#issuecomment-3811141468>

>
> 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
> <https://github.com/wxWidgets/wxWidgets/issues/26112#issuecomment-3811141468>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ADD4DWZTQJEWEZLZFUMWN4L4JCWL5AVCNFSM6AAAAACSZH65D6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTQMJRGE2DCNBWHA>.

> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/26112/3814975251@github.com>

paulcor

unread,
Jun 3, 2026, 7:52:33 PM (4 days ago) Jun 3
to wx-...@googlegroups.com, Subscribed
paulcor left a comment (wxWidgets/wxWidgets#26112)

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.Message ID: <wxWidgets/wxWidgets/issues/26112/4617674899@github.com>

VZ

unread,
Jun 4, 2026, 5:20:07 PM (3 days ago) Jun 4
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#26112)

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

  1. Requires more investment than I can muster.
  2. Might not fix all such problems and I have no idea how to find them all.
  3. Will probably become unnecessary in relatively near future as there are few systems with GTK < 3.20 left.

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.Message ID: <wxWidgets/wxWidgets/issues/26112/4626184217@github.com>

Reply all
Reply to author
Forward
0 new messages