Re: [gtk-list] Re: Gtk::Gdk::Pixmap->create_colormap_from_xpm_d



Stephen Wilhelm wrote:
> 
> 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 );
Same problem, as I said the error is from Gdk. It happens while 
Gtk::Gdk::Pixmap->colormap_create_from_xpm_d() is trying to load the
pixmap string.

> >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
Brilliant, I already have a link to your site in my docs :)

Regards, Dermot



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]