Hi,

"Gordon Durnell" <[EMAIL PROTECTED]> writes:

> I am trying to covert from using gdk_pixmap_create_from_xdm() so that I
> don't have to use an external pixmap file (i.e. everything in one
> executable).  I opened the .XPM file in GIMP and saved it as a .C file
> structure (logo.c).
[snip]
> gchar pixel_data[128 * 128 * 4];
> } logo = {
> 128, 128, 4,
[snip]
> When run (with --sync option), I get:
> 
> Gdk-ERROR **: BadValue (integer parameter out of range for operation)
>   serial 67 error_code 2 require_code 53 minor_code 0

GDK pixmaps do not handle alpha channels, so bpp = 4 will not work.
Try flattening the image in Gimp before you save. 


Salut, Sven

_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to