Re: Mouse Pointer



I have decided to go with the default mouse pointers that are supplied
with X, but I am having problems.  Can someone please tell me where I am
going wrong with the following code

[snip]
GtkWidget *switchW;
GdkCursor*  TelCursor = gdk_cursor_new(GDK_HAND2); 
switchW = gtk_window_new (GTK_WINDOW_POPUP);  
gdk_window_set_cursor(switchW->window, TelCursor);
[snip]


and here is the error
oakura:/home/kermit> /tmp/switch.x

Gdk-CRITICAL **: file gdkwindow.c: line 1274
(gdk_window_set_cursor): assertion `window != NULL' failed.

Any help appreciated.

Cheers
Antony



 
Antony Stace wrote:

Hi Folks

I want to change what the mouse pointer looks like when the mouse
pointer is over my GTK app.  Can anyone tell me a place on the web which
has a collection of mouse pointers in a format which I can incorporate
into my program.

Cheers

Tony

_______________________________________________
gtk-list mailing list
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list




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