Gtk2::SimpleList and Gtk2::TreeModelFilter




Hiho,

is it possible to get Gtk2::SimpleList to work with 
Gtk2::TreeModelFilter?

I tried this:

  my $simple_list = Gtk2::SimpleList->new (...);
  my $model = $simple_list->get_model;
  my $filter_model = Gtk2::TreeModelFilter->new(
      $model, Gtk2::TreePath->new_from_string("0")
  );
  $simple_list->set_model($filter_model);

but I get

  Gtk2::TreeModelFilter=HASH(0x84be490) is not of type Gtk2::TreeModel

on the last line. Is the parameter check of the set_model() method 
simply not aware of Gtk2::TreeModelFilter or am I doing something 
completely wrong here?

(I know, this task is probably beyond of being "simple", but why not 
give it a try?... ;)

I'm using Perl Gtk2 1.061 with gtk libs version 2.4.14 from Debian sid.

Thanks,

Joern

-- 
LINUX - Linux Is Not gnU linuX

Attachment: pgp2eOe4JFxSO.pgp
Description: PGP signature



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