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 142415 - Support windows-style treeviews with +/- expanders and connecting lines
Support windows-style treeviews with +/- expanders and connecting lines
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkTreeView
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: gtktreeview-bugs
gtktreeview-bugs
: 305842 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-05-12 18:47 UTC by Matthias Clasen
Modified: 2011-02-04 16:10 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
treeview connector lines (2.62 KB, image/png)
2005-09-23 19:28 UTC, Barbie LeVile
Details

Description Matthias Clasen 2004-05-12 18:47:11 UTC
Exchanging the images is easy, but drawing the connecting lines is hard.
Comment 1 Christian Reis (not reading bugmail) 2004-10-21 18:23:48 UTC
This is so true. We just had a request on pygtk-list. Is this just a matter of
styling, or is code changing required here?
Comment 2 joey tsai 2004-10-21 18:58:33 UTC
Is this the same thing as bug #106406?
Comment 3 Christian Reis (not reading bugmail) 2004-10-21 19:37:51 UTC
Hard to say. Your bug is confusing because there seem to be requests for lines
of two different types there (both expander connectors and table grid lines),
and this one is more specific, relating only to expander connectors.
Comment 4 Tim Orford 2005-02-14 16:30:30 UTC
can or should this be done at the theme engine level? If so are there any  
engines which do draw these connecting lines and boxes?  
  
i would consider writing such an engine.  
  
in the meantime i have to use the old deprecated widgets.  
Comment 5 Jonathan Blandford 2005-02-15 15:52:43 UTC
I originally designed it such that you could draw in the lines, but that code
got dropped along the way.  You'd have to make some changes to gtktreeview.c to
get it working and add a style property so that themes could turn it on.  I
don't think that it's fundamentally a lot of work though -- most of the
information needed at each row is available.  It's mostly a matter of writing
the drawing code.
Comment 6 Tim Orford 2005-02-23 20:54:44 UTC
thanks Jonathan. 
 
i'm not confident enough yet, personally, to add code to gtk itself. Perhaps 
later. 
 
but do you know if there is any antipathy towards this, what is after all a 
fairly ubiquitous feature? Especially as it was in gtk1.2. 
Comment 7 Jonathan Blandford 2005-02-23 21:49:42 UTC
It's not a developer-driven feature, but rather a theme feature. Since the
TreeView was complicated enough, we only wrote the default behavior that we want
(since all those lines tends to confuse people).
Comment 8 Matthias Clasen 2005-07-07 20:46:21 UTC
*** Bug 305842 has been marked as a duplicate of this bug. ***
Comment 9 Barbie LeVile 2005-09-23 19:27:19 UTC
I also would like to have this feature present.
MAybe make it so that it has to be turned one by a rc option so it can be used
in themes and let the normal connectorless version be the default.

And as for confusing people. Some find the connector less version much more
confusing then the connected. Especialy in long lists.

See attached screenshot of what i would like to do.
Comment 10 Barbie LeVile 2005-09-23 19:28:35 UTC
Created attachment 52571 [details]
treeview connector lines
Comment 11 Kristian Rietveld 2006-07-01 19:05:12 UTC
The expander can be themed these days.  And with 2.10 you can turn on "tree lines" with a property.  This is not a style property though.

Matthias, do you need we need some changes here before we release 2.10?
Comment 12 Matthias Clasen 2006-07-02 14:12:35 UTC
No, I don't think so. 
It is not clear to me if tree lines should be a style property.
You clearly don't want to have them on every tree, and thus the
app needs some way to indicate that tree lines are suitable for
a given tree view. A property seems a fine way to do that.
Comment 13 Kristian Rietveld 2006-07-03 12:35:34 UTC
Okay, I guess we can close this bug now then?  Since we support everything and you were the original reporter ;)