Re: Changing cursors



Marco Quezada <mquezada nlxcorp com> writes:
You can use something like this:

gdk_window_set_cursor(GTK_WIDGET(window)->window,

gdk_cursor_new(GDK_WATCH));
gdk_flush();

This will use the default cursors defined in gdkcursors.h


This leaks the cursor, you need:
 cursor = gdk_cursor_new (GDK_WATCH);
 gdk_window_set_cursor (window, cursor);
 gdk_cursor_destroy (cursor);

Havoc




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