Re: Mouse Pointer



On Wed, 27 Sep 2000, Antony Stace wrote:

> Date: Wed, 27 Sep 2000 11:00:22 +0900
> From: Antony Stace <antony claire co jp>
> To: gtk-list gnome org, gnome-devel-list gnome org,
>      gtk-app-devel-list gnome org
> Subject: 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);  

gtk_widget_realize(switchW);   ??

> 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
> 
> _______________________________________________
> 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]