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 696299 - Unable to alter column width of Name, Size, Type, etc.
Unable to alter column width of Name, Size, Type, etc.
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkTreeView
3.7.x
Other Linux
: Normal normal
: ---
Assigned To: gtktreeview-bugs
gtktreeview-bugs
Depends on:
Blocks:
 
 
Reported: 2013-03-21 15:40 UTC by Ladislav Jozsa
Modified: 2013-03-23 19:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screencast (489.52 KB, application/octet-stream)
2013-03-21 16:45 UTC, Ladislav Jozsa
  Details
Use natural size to set adjustment ranges (3.40 KB, patch)
2013-03-23 18:19 UTC, John Lindgren
none Details | Review

Description Ladislav Jozsa 2013-03-21 15:40:27 UTC
When switched items view to "View items as a list" I'm unable to alter width of any column. Reproducible in Files 3.7.91
Comment 1 Cosimo Cecchi 2013-03-21 16:23:14 UTC
Works fine here; can you provide some information on your GTK/GNOME version? A screencast could also be useful. Thanks.
Comment 2 Ladislav Jozsa 2013-03-21 16:45:07 UTC
Created attachment 239481 [details]
Screencast

I'm trying it on Fedora 19 TC1 Live i686, running under KVM.

gtk3-3.7.12-1.fc19.i686
GNOME 3.7.92

Screencast attached.
Comment 3 Cosimo Cecchi 2013-03-21 16:54:41 UTC
-> gtk3

Thanks, I can reproduce that now.
It's a GTK3 bug/regression, the testtreecolumnsizing test in GTK exhibits the same bug.
Comment 4 Matthias Clasen 2013-03-22 13:44:36 UTC
I'm not convinced there's any bug here, you'll have to describe in more detail what behaviour you expect. If you make the window wide enough that there's actually any excess space available, you _can_ change the column widths, in both nautilus and testtreecolumnsizing.
Comment 5 Cosimo Cecchi 2013-03-22 15:26:32 UTC
I expect to be able to resize the columns anyway independent of the window size - compare the behavior of testtreecolumnsizing in GTK3 with the one of the same test in GTK2 and you'll see the difference.
Comment 6 Matthias Clasen 2013-03-23 17:38:19 UTC
Yes. I believe this was an intentional change. Talk to Benjamin to confirm.
Comment 7 John Lindgren 2013-03-23 18:19:44 UTC
Created attachment 239638 [details] [review]
Use natural size to set adjustment ranges

This is an (unintentional) side effect of my changes to GtkTreeView's get_preferred_size() implementation.  It seems odd to me that GtkTreeView directly determines its own size when inside a GtkScrolledWindow, but since it does, it should be using its natural size, not its minimum size.  Patch attached.
Comment 8 Matthias Clasen 2013-03-23 19:50:27 UTC
This was pushed as 666d10ec7676a15b6861b785397563cbd4ef21e6