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 80869 - Grouping (show-expanders, level-indentation properties)
Grouping (show-expanders, level-indentation properties)
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkTreeView
2.0.x
Other other
: Normal enhancement
: Medium API
Assigned To: gtktreeview-bugs
gtktreeview-bugs
Depends on: 80590
Blocks:
 
 
Reported: 2002-05-05 18:21 UTC by Kristian Rietveld
Modified: 2006-04-26 12:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
first take at a patch (11.05 KB, patch)
2006-03-05 22:02 UTC, Kristian Rietveld
needs-work Details | Review

Description Kristian Rietveld 2002-05-05 18:21:35 UTC
Add grouping functionality, a la e-table, to GtkTreeView.
Comment 1 Kristian Rietveld 2006-03-05 21:57:59 UTC
I am going to misuse this bug a bit.  I've been working on implementing show-expanders and level-indentation properties, and figured that those are basically enough to get grouping working.  Showing groups would work like:
  * set show-expanders to FALSE
  * set level-indentation to something nice, say 20
  * make sure the group headers get a different cell background.

What's still needed is a way for a cell to span multiple columns in specific rows,  I am not really sure yet how I am going to implement that.
Comment 2 Kristian Rietveld 2006-03-05 22:02:50 UTC
Created attachment 60719 [details] [review]
first take at a patch

First try at a patch.  The allowed range of the level-indentation property needs some thought (do we want to accept a negative indentation here for people who complain that the default indentation (which equals expander-size) is too large?).

There's one small commented out piece which needs research, will get to that later on.
Comment 3 Kristian Rietveld 2006-04-26 12:40:09 UTC
Committed.  The "column spanning cells" chunk will be addressed later on (there's a separate bug open on that).