logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: [xs] notebook problem: msg#00110

Subject: Re: [xs] notebook problem

On Mon, 21 Apr 2003, Szilveszter Farkas wrote:

> 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" );

this line needs to read
$notebook_main->append_page( $table_create, Gtk2::Label->new("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
> _______________________________________________
> gtk-perl-list mailing list
> gtk-perl-list@xxxxxxxxx
> http://mail.gnome.org/mailman/listinfo/gtk-perl-list
>


<Prev in Thread] Current Thread [Next in Thread>