Re: [gtk-list] Changing cursor icon/pic



rlau@csc.com wrote:
>In my gtk app, I want to have the cursor/mouse pointer changed to another
>icon when the mouse is moved within a certain GTK container widget.
>Anyone know how to do that?

Go to gtk+-1.x.x/gdk and grep for "cursor". The functions you want are:

	gdk_cursor_new_from_pixmap()
	gdk_window_set_cursor()
	gdk_cursor_destroy()

Hope this helps, John
--
John Cupitt, john.cupitt@ng-london.org.uk, +44 (0)171 930 2108
VASARI Lab, The National Gallery, Trafalgar Square, London, WC2N 5DN



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