Index: xs/GtkCellView.xs =================================================================== --- xs/GtkCellView.xs (revision 2104) +++ xs/GtkCellView.xs (working copy) @@ -35,6 +35,8 @@ GtkTreePath_own * gtk_cell_view_get_displayed_row (GtkCellView * cell_view); +GtkTreeModel_ornull * gtk_cell_view_get_model (GtkCellView * cellview); + ## gboolean gtk_cell_view_get_size_of_row (GtkCellView * cell_view, GtkTreePath * path, GtkRequisition * requisition); GtkRequisition_copy * gtk_cell_view_get_size_of_row (GtkCellView * cell_view, GtkTreePath * path) Index: t/GtkCellView.t =================================================================== --- t/GtkCellView.t (revision 2104) +++ t/GtkCellView.t (working copy) @@ -12,7 +12,7 @@ use strict; use warnings; -use Gtk2::TestHelper tests => 10, +use Gtk2::TestHelper tests => 12, at_least_version => [2, 6, 0, "GtkCellView is new in 2.6"], ; @@ -25,6 +25,8 @@ isa_ok (my $cview = Gtk2::CellView->new, 'Gtk2::CellView', 'Gtk2::CellView->new'); +is($cview->get_model(), undef, '$cview->get_model is undef'); + ginterfaces_ok($cview); isa_ok ($cview = Gtk2::CellView->new_with_text ('text'), 'Gtk2::CellView', @@ -41,7 +43,8 @@ fill_store ($model, get_pixbufs ($win)); ok (eval { $cview->set_model ($model); 1; }, '$cview->set_model'); -# there is no get, or property??? +# there is a get (new since gtk 2.16) !!!! +is($cview->get_model(), $model, '$cview->get_model'); my $treepath = Gtk2::TreePath->new_from_string ('0'); $cview->set_displayed_row ($treepath);