Re: change mouse cursor back to default
- From: Stefan Kost <kost imn htwk-leipzig de>
- To: Florian Schaefer <listbox netego de>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: change mouse cursor back to default
- Date: Mon, 22 Nov 2004 18:55:50 +0100
Hi Florian,
thats the way I do it (took me a while to figure as well):
GdkWindow *window=GTK_WIDGET(mywidget)->window;
GdkCursor *cursor=gdk_cursor_new(GDK_WATCH);
gdk_window_set_cursor(window,cursor);
gdk_cursor_unref(cursor);
// do something
gdk_window_set_cursor(window,NULL);
Ciao
Stefan
Florian Schaefer wrote:
Hello John,
On Sun, 21 Nov 2004 15:19:17 +0000, John Cupitt said:
Just set the cursor to NULL.
I already tried this but all I get is the GDK_X_CURSOR (NULL == 0?).
This is the call I used:
gdk_window_set_cursor (gtk_widget_get_root_window (widget), NULL);
I'm using Gtk version 2.4.13 here.
Ciao
Florian
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
--
\|/ Stefan Kost
<@ @> private business
+-oOO-(_)-OOo------------------------------------------------------ - - - - -
| __ Address Simildenstr. 5 HTWK Leipzig, Fb IMN, Postfach 301166
| /// 04277 Leipzig 04251 Leipzig
| __ /// Germany Germany
| \\\/// Phone +49341 2253538 +49341 30766101
| \__/ EMail st_kost_at_gmx.net kost_at_imn.htwk-leipzig.de
| WWW www.sonicpulse.de www.imn.htwk-leipzig.de/~kost/about.html
===-=-=--=---=---------------------------------- - - - - -
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]