Re: clist question
- From: "Bogdan M.Maryniuck" <bogdan iuveno-net de>
- To: "Ken Huisman" <khuisman nortelnetworks com>, gtk-perl-list gnome org
- Subject: Re: clist question
- Date: Fri, 11 May 2001 10:35:22 +0200
On Thursday 10 May 2001 21:44, Ken Huisman wrote:
+--->
| Hi everyone,
| is there a way to get the total number of rows of data
| in your clist?
| another question: when do the "add" and "remove" signals
| (gtkcontainer) get triggered on a clist?
| thanks.
| Ken
+--->
So, I answer on it:
Hello, Ken!
Something like this (untested):
my $ctxt="";
my $cidx=0;
while (!$ctxt) {
$ctxt=$clist->get_text($cidx,0);
defined($ctxt) ne "" ? $cidx++ : last;
}
print "We have $cidx items in \$clist\n";
--
./bo
"Dying is a very dull, dreary affair. And my advice to you is to have
nothing whatever to do with it."
-- W. Somerset Maugham
[ Fetched at: Fri May 11 10:02:20 EET 2001 ]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]