Re: [gtk-list] Gtk::Gdk::Pixmap->create_colormap_from_xpm_d
- From: Stephen Wilhelm <swilhelm theriver com>
- To: "gtk-list redhat com" <gtk-list redhat com>
- Subject: Re: [gtk-list] Gtk::Gdk::Pixmap->create_colormap_from_xpm_d
- Date: Thu, 24 Feb 2000 22:16:26 -0700 (MST)
On Thu, 24 Feb 2000, Dermot Musgrove wrote:
>I can't create a pixmap using the create_colormap_from_xpm_d call.
>
>All works fine with the same pixmap in a file but not when supplied as
>data. Is there a special way to present the xpm data?
>
>The error I get is
>
>Gdk-WARNING **: Pixmap has more than 31 characters per color
>Usage: Gtk::Pixmap::new(Class, pixmap, mask) at ../..//Glade/PerlRun.pm
>line 215.
>
>but I assume that the second line is from Gtk::Pixmap->new() because an
>invalid Gtk::Gdk::Pixmap was supplied to it.
Probably. Create a $gdkpixmap and $mask using:
( $gdkpixmap, $mask ) = Gtk::Gdk::Pixmap->create...
And then use these with:
$pixmap = new Gtk::Pixmap( $gdkpixmap, $mask );
>BTW the Gtk::Gdk::create_pixmap_from_xpm_d() also fails in the same way
>although I am sure that I used it successfully some time ago.
My chapter on pixmaps is now up. Go to:
http://personal.riverusers.com/~swilhelm/perlgtk/tutorial/tut-14.html
--
Stephen Wilhelm
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]