Re: [gtk-list] Cursors




Hi,

Based on the pseudocode I'm not sure what's going wrong, but here is 
how cursors are usually used:

GdkCursor* cursor;

cursor = gdk_cursor_new(GDK_WHATEVER);

gdk_window_set_cursor(window, cursor);

gdk_cursor_destroy(cursor); /* safe because cursor is just a handle */

do_processing();

gdk_window_set_cursor(window, NULL); /* set back to default cursor */


This is documented in my book at http://developer.gnome.org/doc/GGAD.

Does it work if you do it this way?

Havoc





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