$notebook->append_page doesn't return page number :-(


According to the Gtk documentation, the return value of
$notebook->append_page(...); should be an integer that represents the
index of the page that just has been appended (
). Now I have in my code something like this:

sub onButtonNew_clicked
        my $page = $notebook->append_page($gtkwidget1, $gtkwidget2)

.. and I get an error that the argument of printf has undefined
value.. Can someone please explain the proper syntax? Thank You

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