gdk_cursor_new_from_pixmap

From: Date: Tue, 11 Nov 2003 16:11:29 +0000
Subject: gdk_cursor_new_from_pixmap
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-4137@lists.php.net to get a copy of this message
Hi I'm trying to set my own cursor... But it doesn't seem to work: > (cursortest.php-gtk:2064): Gdk-CRITICAL **: file gdkcursor-win32.c: > line 162 (gdk_cursor_new_from_pixmap): > assertion `source_image->depth == 1 && mask_image->depth == 1' failed I tried pixmaps with just 1 color, but 1 color this seems a bit dumb to me - doesn't work 2 colors don't work, too. In the pygtk mailing list they wrote the following: > As for cursors, you can only use 2 colour bitmaps -- X does not support > using pixmaps for cursors. I don't think there is any way to get the xpm > loading functions to output 2 colour bitmaps though, and there is no gdk > wrapper for XReadBitmapFile (the xbm equivalent). But nothing is said about bitmaps in php-gtk.... Does the function work or not? How? Regards/MfG, Christian Weiske <<<<<<<<<<<<<<>>>>>>>>>>>>>>>> Christian Weiske cweiske@cweiske.de www.cweiske.de <<<<<<<<<<<<<<>>>>>>>>>>>>>>>> Always forgetting birthdays? Try birthday reminder! http://www.cweiske.de/birthday.htm

« previous php.gtk.general (#4137) next »