Gtk-Perl



Ok... I just co'ed CVS gnome-perl

Here's the deal... Unless I am seriously missing something, Gtk::CList::find_row_by_data()
is broken.

It allways returns the CList.  ie:

$data = "test data";
$clist = new_with_titles Gtk::Clist("title1","title2","titel3");
$clist->insert(1,"blah","blah","blah");
$clist->set_row_data($row, \$data);
$row = $clist->find_row_by_data($data);
if ($row == $clist) { print "TRUE!!!"; }

Granted, this is not very real world, but it illistrates the point... find_row_by_data always
returns the CList widget.  Doesn't matter if I pass it $data or \$data it ALWAYS returns
the list... I can even do $row->append() type stuff... so I KNOW its THE list, not a reference
to a NEW clist with one row (as someone suggested it might be)

-Steve



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]