[xs] notebook problem



hi all!

i've installed gtk2-perl-xs from the latest cvs tree. everything went okay during the install.

i just have a little problem.

---
use Gtk2;
use strict;

init Gtk2;

my $window_main = new Gtk2::Window( "toplevel" );
my $vbox_main = new Gtk2::VBox( $true, 0 );
my $notebook_main = new Gtk2::Notebook();
my $table_create = new Gtk2::Table( 6, 2, $false );

$window_main->add( $vbox_main );
$vbox_main->pack_start( $notebook_main, $true, $true, 0 );
$notebook_main->append_page( $table_create, "Skeleton" );

$window_main->show_all();

main Gtk2;
---

this code hangs at 'append_page' function, saying:
variable is not of type Gtk2::Widget at ./test.pl line xx.

how could i correct this?

thanks in advance,
phanatic



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