GNOME Bugzilla – Bug 785278
Last GtkCellRenderer in GtkTreeView expanding when it shouldn't
Last modified: 2018-05-02 18:47:13 UTC
Created attachment 356182 [details] sample While porting Thunar to gtk3 I encounted an issue regarding its side pane. Basically it's a Tree View with about 6 Cell Renderers, some are hidden to create headers: https://docs.xfce.org/_media/xfce/thunar/1.6/thunar_side-pane-right-click-menu.png The some code works almost perfectly with gtk3, except the last cell renderer (either an eject button or an spinner) now takes more space than it should. I was able to discover that the problem is related to the header items, removing them the glitch goes away. See the attached sample, it compiles with gtk2 and 3, the problem only occurs with gtk3. Is it a regression? If not, what is the workaround?
Created attachment 356183 [details] sample-gtk2
Created attachment 356184 [details] sample-gtk3
Maybe related: https://bugzilla.gnome.org/show_bug.cgi?id=766667
I was able to fix this with a new column for the last renderer, here's the updated sample code: https://gist.github.com/andreldm/0f2e45882a33b67b59b13547f2d60c5f It's up to you guys to further investigate this or just close the bug.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gtk/issues/863.