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



On Sun, Jul 06, 2003 at 04:08:50PM -0400, muppet wrote:

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.

I think this is a perfect example where we should try to be "perlish".
The old gtk2-perl wrapped this and automagically created the Label widget
if you passed in a string.

brgrds,
göran




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