Re: XML and treeviews
- From: "Daniel Espinosa" <esodan gmail com>
- To: "Gabriele Greco" <gabriele greco darts it>
- Cc: gtk-app-devel-list gnome org, Andrew Cowie <andrew operationaldynamics com>
- Subject: Re: XML and treeviews
- Date: Sat, 26 Jul 2008 11:13:16 -0500
Why don't create a GtkCellRenderer derived object with the properties you
need?
At creation time you can get the "0:0" (the open tag row) GtkCellRenderer as
argument then you can hide it when "0:0" collapse using a GObject signal.
2008/7/25 Gabriele Greco <gabriele greco darts it>:
Couldn't you just add another row in the TreeStore for the closing tag?
If <root> is "0" and <node> is "0:0", then inserting a row after <node>
with parent <root> would be "0:1".
The problem doing it in this way is that I've to attach an handler to every
collapse/expand event and I've to show/hide a line for each of those
events,
I can do it but I thought there was a cleaner solution like an attribute of
the CellRenderer to change the indent level of a given column item.
--
Ing. Gabriele Greco, DARTS Engineering
Tel: +39-0105761240 Fax: +39-0105760224
s-mail: Via G.T. Invrea 14 - 16129 GENOVA (ITALY)
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
--
Trabajar, la mejor arma para tu superaciÃn
"de grano en grano, se hace la arena" (R) (en trÃmite, pero para los cuates:
LIBRE)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]