Re: [BUG] one cannot add widgets to notebooks (regression against gtk2-perl)



On Sunday, July 6, 2003, at 01:30 PM, Thierry Vignaud wrote:

Gtk2::Notebook->append_page does not accept any other widgets that the
abstract base type Gtk2::Widget :

$noteboot->append_page(
                       create_scrolled_window(
                                              gtkset_size_request(
gtkset_border_width($summary, 40), 50, 50),
                                              ),
                        "");

the second argument, tab_label, must be a widget (usually a GtkLabel, but also a GtkHBox containing a label and a button), but you're passing a string, which is not a widget.

an unfortunate side effect of the way the typemaps and conversions from perl to C and back are handled is that you lose the variable name in error messages.




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