Re: [gtk-list] Re: Tutorial code converted to Perl
- From: Kenneth Albanowski <kjahds kjahds com>
- To: gtk-list redhat com
- cc: Jason L Tibbitts III <tibbs hpc uh edu>
- Subject: Re: [gtk-list] Re: Tutorial code converted to Perl
- Date: Fri, 17 Apr 1998 02:53:38 -0400 (EDT)
On 16 Apr 1998, Owen Taylor wrote:
> acts on GdkWindows, not GtkWindows. But GdkWindows, typologically
> speaking, are just one of the subtypes of GdkDrawable. (Along
> with GdkBitmap and GdkPixmap) The perl bindings I think lump them
> all together as GdkPixmap.
No, they have a class hierarchy: Gtk::Gdk::Window ISA Gtk::Gdk::Pixmap,
and Gtk::Gdk::Bitmap ISA Gtk::Gdk::Pixmap.
> What you wanted is Gtk::Widget::shape_combine_mask. That doesn't
> seem to be there, probably because it was confused with the
> other shape_combine_mask.
Actually, it wasn't there because that function wasn't there when I wrote
Gtk::Widget. :-)
It'll be in the next release.
> Here's a untested patch to GtkWidget.xs to provide the necessary
> function:
>
> --- GtkWidget.xs.ots Thu Apr 16 22:33:38 1998
> +++ GtkWidget.xs Thu Apr 16 22:33:46 1998
> @@ -754,4 +754,11 @@
> OUTPUT:
> RETVAL
>
> +void
> +gtk_widget_shape_combine_mask (self, shape_mask, offset_x, offset_y)
> + Gtk::Widget self
> + Gtk::Gdk::Bitmap shape_mask
> + int offset_x
> + int offset_y
> +
> #endif
Yup, that's the sort of thing.
--
Kenneth Albanowski (kjahds@kjahds.com, CIS: 70705,126)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]