Re: BadIDChoice



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]