Re: BadIDChoice
- From: Paolo Molaro <lupus ximian com>
- To: gtk-perl-list gnome org
- Subject: Re: BadIDChoice
- Date: Wed, 23 May 2001 16:04:50 +0200
On 05/17/01 Jens Luedicke wrote:
The Gtk libs seemed to choke from time
to time with some code construct.
I think I used something like this:
($xpm,$mask) = Gtk::Gdk::Pixmap(new Gtk::Gdk::Window(undef), $style, $filename);
Well, this code can't compile, so I doubt you use that in your app.
Anyway, you probably want to use:
Gtk::Gdk::Pixmap->create_from_xpm ($window, $transparent_color, $filename);
You can obtain a suitable $window (a Gtk::Gdk::Window) from a
Gtk::Window you have already created and realized. The sample code
should have examples of this.
lupus
--
-----------------------------------------------------------------
lupus debian org debian/rules
lupus ximian com Monkeys do it better
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]