On Mon, 2003-09-08 at 18:37, muppet wrote:
On Monday, September 8, 2003, at 06:40 AM, Anuradha Ratnaweera wrote:The following code works well in 0.96, but not in 0.97. my $notebook = Gtk2::Notebook->new(); $vbox = Gtk2::VBox->new(); $notebook->append_page($vbox, "Title"); With 0.97, the error message is variable is not of type Gtk2::Widget at CCat/UI/Main.pm line 62.The second argument to Gtk2::Notebook->append_page must be a widget. http://developer.gnome.org/doc/API/2.0/gtk/GtkNotebook.html#gtk- notebook-append-page something as simple as $notebook->append_page ($vbox, Gtk2::Label->new ('Title'));
It works. Thanks and sorry about the oversight. The strange part of the story is that the code in question somehow worked in 0.96 here (Debian Sarge) ;-) Anuradha
Attachment:
signature.asc
Description: This is a digitally signed message part