Re: Question about Treeview/SimpleList
- From: Jaap Karssenberg <j g karssenberg student utwente nl>
- To: gtk-perl-list gnome org
- Subject: Re: Question about Treeview/SimpleList
- Date: Fri, 26 Sep 2003 20:19:09 +0200
Cool - I didn't see that columns are the appropriate objects to work
with in this case, seems a bit counter-intuitive, but it works.
I tried this code:
for (0..$#headers) {
$SimpleList->get_column($_)->set_sort_column_id($_)
}
It does what I want, except for a bunch of errors:
Gtk-WARNING **: Attempting to sort on invalid type GPerlSV
All my columns are defined with ctype 'scalar' since it is dynamic data.
When I tested it with columns of types 'text' and 'int' it worked
without errors.
An other strange error appeared when I by tried to use ctype 'string':
unknown column type string, use one of scalar, double, bool, int,
^^^^^^
text, string, hidden, pixbuf at test.pl line 35
^^^^^^
Anyway, the combination glade/gtk2/perl is just sooo good to work with -
thx :))
--
) ( Jaap Karssenberg || Pardus [Larus]
: : http://pardus-larus.student.utwente.nl/~pardus
) \ / (
",.*'*.," Proud owner of "Perl6 Essentials" 1st edition :)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]