After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 785278 - Last GtkCellRenderer in GtkTreeView expanding when it shouldn't
Last GtkCellRenderer in GtkTreeView expanding when it shouldn't
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Widget: GtkTreeView
3.22.x
Other Linux
: Normal normal
: ---
Assigned To: gtktreeview-bugs
gtktreeview-bugs
Depends on:
Blocks:
 
 
Reported: 2017-07-22 16:31 UTC by Andre Miranda
Modified: 2018-05-02 18:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
sample (7.25 KB, text/x-csrc)
2017-07-22 16:31 UTC, Andre Miranda
Details
sample-gtk2 (29.40 KB, image/png)
2017-07-22 16:32 UTC, Andre Miranda
Details
sample-gtk3 (28.99 KB, image/png)
2017-07-22 16:32 UTC, Andre Miranda
Details

Description Andre Miranda 2017-07-22 16:31:33 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?
Comment 1 Andre Miranda 2017-07-22 16:32:01 UTC
Created attachment 356183 [details]
sample-gtk2
Comment 2 Andre Miranda 2017-07-22 16:32:38 UTC
Created attachment 356184 [details]
sample-gtk3
Comment 3 Andre Miranda 2017-07-22 16:42:55 UTC
Maybe related: https://bugzilla.gnome.org/show_bug.cgi?id=766667
Comment 4 Andre Miranda 2017-08-26 20:03:10 UTC
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.
Comment 5 GNOME Infrastructure Team 2018-05-02 18:47:13 UTC
-- 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.