Re: [gtk-list] Re: Tutorial code converted to Perl
- From: Kenneth Albanowski <kjahds kjahds com>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Re: Tutorial code converted to Perl
- Date: Thu, 16 Apr 1998 21:45:48 -0400 (EDT)
On Thu, 16 Apr 1998, Kenneth Albanowski wrote:
> On 16 Apr 1998, Jason L Tibbitts III wrote:
>
> > I'm trying to find Perl equivalents of:
> >
> > style = gtk_widget_get_default_style();
> > and
> > gtk_widget_shape_combine_mask( window, mask, 0, 0 );
> >
> > The first wants to be a widget method, so I made it work by calling it as
> > one:
> >
> > $style = $window->get_default_style;
>
> Which is rather silly, that'll be fixed so it is:
>
> $style = Gtk::Widget->get_default_style;
Oh, silly me: it already works this way. But Perl is being helpful, so you
can also say $window->get_default_style. :-)
--
Kenneth Albanowski (kjahds@kjahds.com, CIS: 70705,126)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]