[9898] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] Re: Cursors with gtk/gdk

daemon@ATHENA.MIT.EDU (Havoc Pennington)
Thu Nov 5 14:57:22 1998

Date: Thu, 5 Nov 1998 13:46:47 -0600 (CST)
From: Havoc Pennington <rhpennin@midway.uchicago.edu>
Reply-To: Havoc Pennington <rhpennin@midway.uchicago.edu>
To: gtk-list@redhat.com
In-Reply-To: <19981105174255.29235.rocketmail@send101.yahoomail.com>
Resent-From: gtk-list@redhat.com


On Thu, 5 Nov 1998, Eric Harlow wrote:
> 
> ** ERROR **: BadMatch (invalid parameter attributes)
>   serial 131 error_code 8 request_code 93 minor_code 0
> 
> 1 - how do I track down such an error?

XCreatePixmapCursor gives BadMatch if your pixmap is not depth 1, your
mask is a different size from the pixmap, or the hotspot is not within the
pixmap. So one of those could be it.

> 2 - does someone have sample code of creating a cursor from pixmap
> data that works so I can figure out what I'm doing wrong?
> 

Gnumeric has some examples of this.

Havoc


-- 
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post