Gtk::CList::selection with a Gtk::CTree
- From: Raul Dias <chaos swi com br>
- To: gtk-perl-list gnome org
- Subject: Gtk::CList::selection with a Gtk::CTree
- Date: Mon, 5 Nov 2001 22:40:33 -0300
Hi,
I am using a CTree as a normal CTree or as a CList.
As CTree inherits from CList that's valid (evil, but valid ;).
Some problems I face when dealing with this kind of situation is that
some Gtk::CList methods has a Gtk::CTree equivalent, but for a slightly
different use.
This can be easely solved by forcing the Gtk::Clist method as in:
$ctree->Gtk::CList::selectable();
This has work too well so far, but I got to a situation where it does not work.
If I am using a true Gtk::CList, the selectable method returns me a array with
the selected rows, starting with 0. e.g 0 2 4 5 10 14
If I use it with Gtk::CTree I get something like: 142817224, 142817236, 142817248,
142817260 when I have the rows 0, 1, 2, 3 selected
In this exemple they are separated by a 12 step, but most of times the order makes
no sense and a higher row can have a lower output.
So, something needs to be done/correct to allow the correct behaviour.
Any clues?
Regards,
Raul Dias
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]