RE: GtkTreeView and the arrow to expand rows
- From: martyn 2 russell bt com
- To: gtk-app-devel-list gnome org
- Subject: RE: GtkTreeView and the arrow to expand rows
- Date: Wed, 30 Jul 2003 09:11:51 +0100
Is there a way to set a row in a GtkTreeView to have the "expandable"
arrow by default (despite not having any children)?
I don't think so. You can set which column has the expander, but it
will only get used if there are one or more children under that parent
you are expanding.
The idea being when
the expand arrow is clicked, the program appends child rows and adds
the
data to be displayed. This obviously can't happen without the arrow
already being there, unless you do it based on selection, but then you
end up having to click the row (in order to get the arrow), then click
the arrow to expand.
I would say the trick is to have one child under each parent you want to
expand, set the text to be "collating..." or something, then when it is
expanded, capture the appropriate event, remove the temporary child, and
then append the information you want to display under the parent.
Regards,
Martyn
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]