[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [BUG] one cannot add widgets to notebooks (regression against gtk2-perl)
- From: Ross McFarland <rwmcfa1 neces com>
- To: Thierry Vignaud <tvignaud mandrakesoft com>
- Cc: Goran Thyni <goran kirra net>, muppet <scott asofyet org>, gtk-perl list <gtk-perl-list gnome org>
- Subject: Re: [BUG] one cannot add widgets to notebooks (regression against gtk2-perl)
- Date: 07 Jul 2003 09:09:23 -0400
On Mon, 2003-07-07 at 07:33, Thierry Vignaud wrote:
> Goran Thyni <goran kirra net> writes:
>
> > > 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.
>
> we may want to alter the type checking system to automatically create
> the Gtk2::Label if passed a gchar*.
there should be several places already where (in the xs wrappers, not
the typemap) we see wether we got a widget or a string passed to us and
just use the widget, or create a label with the string and use it.
doesn't seem to be any reason that couldn't be the behavior there.
-rm
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]