GTK 4 columnview weird graphical behavior

Hi

Using GTK 4.16.12 on windows.

I created a columnview but for some reason themes appear weird on it. I tested several themes and don’t think the theme is the reason. It doesn’t happen on a treeview.
You see a weird shadow at the right on a columnview. On some themes it’s lighter but it’s always present, no matter what theme.

Can a developer maybe have a look?

Themes used:

Even on the “default” theme it’s present! So it’s not possible it’s caused by a theme…

Screenshot with scrolledwindow:

I found the problem and I think it’s a bug in GTK for windows.

If you put the columnview inside a scrolledwindow, the weird shadow appears. Of course we can’t use a columnview without a scrolledwindow, because then it can’t scroll.

If you append the columnview without a scrolledwindow, the shadow is gone.

I hope somebody can look at this possible bug?
It happens in all renderers: cairo, ngl and vulkan. So it’s not renderer related too.

Screenshot without scrolledwindow

I suspect this has nothing to do with Windows, for me under Linux it is also a shadow, only it is bluish.
As soon as I insert gtk_column_view_column_set_expand(column, TRUE) into a column, it is gone.

2 Likes

Thanks so much! This solved the problem!

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.