Re: change mouse cursor back to default
- From: "Florian Schaefer" <listbox netego de>
- To: gtk-app-devel-list gnome org
- Subject: Re: change mouse cursor back to default
- Date: Mon, 22 Nov 2004 18:14:41 +0100
Hi John!
On Sun, 21 Nov 2004 18:13:01 +0000, John Cupitt said:
I use gtk_widget_get_toplevel()->window to get the most-enclosing
window. The root window usually means the desktop in X-speak and you
don't want to change that cursor.
If I use this function to get my window instead of _get_root_window() and
set it to NULL nothing happens at all. :-(
I tried to look at the gtkentry.c code but I only managed to find the
place where the cursor is changed to X_TERM or nothing (BTW, I'm using
exactly this function to make the cursor disappear), not where it is
restored again.
Ciao
Florian
I guess it might depend on the window manager. I usually use the KDE
one and there setting NULL for a window does reset the cursor to the
current WM theme cursor.
John
On Sun, 21 Nov 2004 16:30:00 +0100, Florian Schaefer <listbox netego de> 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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]