logo       

Re: $note->append_page($obj, $LABEL) ?: msg#00056

gnome.gtk+.perl

Subject: Re: $note->append_page($obj, $LABEL) ?

On Mon, 2002-05-13 at 12:11, raptor@xxxxxxxx wrote:
>
>
>
> When I try to append page to Notebook and pass a LABEL I'm getting error ?
> $note->append_page($obj, $LABEL)
> the error is :
> Mon May 13 19:06:40 2002 Gtk-WARNING **: invalid cast from (NULL) pointer to
> `GtkWidget' at lib/Gtk/PropWindow.pm line 42
>
> any idea why this happen ? I tried with single, double quoted string and
> variable !!

A string is not a Gtk::Label. Try

$note->append_page($obj, Gtk::Label->new('string'));


--
Today is Pungenday the 60th day of Discord in the YOLD 3168
P'tang!

Missile Address: 33:48:3.521N 84:23:34.786W


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise