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 351545 - Treeview should have sortalble column headers
Treeview should have sortalble column headers
Status: RESOLVED FIXED
Product: gnome-utils
Classification: Deprecated
Component: baobab
trunk
Other Linux
: Normal normal
: ---
Assigned To: Fabio Marzocca
gnome-utils Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-08-15 20:59 UTC by Wouter Bolsterlee (uws)
Modified: 2006-09-09 16:27 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch (19.17 KB, patch)
2006-08-21 07:02 UTC, Dennis Cranston
none Details | Review
screenshot (50.09 KB, image/png)
2006-08-27 16:38 UTC, Fabio Marzocca
  Details

Description Wouter Bolsterlee (uws) 2006-08-15 20:59:04 UTC
If the treeview had column headers, they could be used to explain the columns: path, size, percentage, number of objects. They could be used for sorting too, obsoleting the toolbar buttons and the menu item.
Comment 1 Dennis Cranston 2006-08-21 07:02:18 UTC
Created attachment 71274 [details] [review]
Proposed patch

This patch may also resolve bug #351534.

2006-08-20  Dennis Cranston  <dennis_cranston@yahoo.com>

       * data/baobab.glade: Remove the sort menu and toolbar items, and
       add an "Allocated Space" menu item to the view menu.
       * src/baobab-treeview.c: (create_directory_treeview): Add column
       headers and setup the appropriate column ids for sorting. Merge
       the percentage and percentage bar columns into a single column.
       * src/baobab.c: (prefill_model): Show treeview column headers, 
       (first_row): Hide treeview column headers, (fill_model): Replace 
       "object" with "item" to match nautilus' terminology (main): Set
       initial state of the "Allocated Space" menu item.
       * src/callbacks.c: (on_notebook1_switch_page),
       (on_ck_allocated_activate): Remove the sort callbacks, and add
       activate callback for "Allocated Space" menu item.
       * src/callbacks.h: Remove sort callbacks, and add activate
       callback for "Allocated Space" menu item.
Comment 2 Paolo Borelli 2006-08-27 16:06:55 UTC
Dennis, can you add a screenshot of how it looks? (I know, I know, I am lazy)
Comment 3 Fabio Marzocca 2006-08-27 16:38:48 UTC
Created attachment 71708 [details]
screenshot

The attached png is for the lazy boy....

Dennis, just one issue: the window does not auto-resize horizontally to show all the columns, so there is a risk for an unexeperienced user to hidden some relevant data (i.e.: Contents)
Comment 4 Paolo Borelli 2006-08-27 16:47:05 UTC
I like it! As far as I am concerned I am all for commmitting this after the UI freeze is over.

However can you provide a patch that doesn't remove the 'show allocated space' toggle? I think that it's important enough to keep on the toolbar and anyway I think it's  better to discuss it in it's own bug. This patch should just fix the treeview headers issue so that it's easier to track cvs history.
Comment 5 Wouter Bolsterlee (uws) 2006-08-28 18:13:42 UTC
Please fix one bug per patch and refer to the bug number in the ChangeLog :)
Comment 6 Dennis Cranston 2006-09-09 16:27:26 UTC
A patch was committed to CVS HEAD.