-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, Jan 03, 2007 at 02:05:25PM +0100, [EMAIL PROTECTED] wrote:
> Hi again!!

Hi -- please, keep the list in Cc: so that others may comment/learn.

> I think i didn't exlain well in my last mail...excuse me!
> The thing i want to do, is to saw a cursor, each time i'm inside the window, 
> and
> hide it, each time i leave it...

So you want the cursor to disappear when it leaves the window? I think
you'll need a grab (one that doesn't confine the cursor to the window,
so you pass NULL as the fourth parameter to gdk_grab_cursor(), see other
postings in this thread). Then, set up a callback on
"leave-notify-event" (you can re-use the same callback as the one to
"enter-notify-event".

Then somehow you'll have to keep some memory on the status of affairs:

  - first time entered: grab pointer, change if necessary.
  - leave: change pointer to invisible
  - enter (for second time, while holding grab): make pointer visible
    again.

It would make sense to build the invisible cursor just once (and not
everytime you leave the window.

> i'm asking you for the new event function which relesases the grab...

Have a look at the code by Andreas Stricker elsewhere in this thread. He
chose to use a timer event to release the grab. You first will have to
decide on what event you want to release the grab.

Regards y próspero año nuevo :)

- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFFnPCTBcgs9XrR2kYRAinnAJ4+run9R0KXHEibzF6i/twg51zzqACfT3ze
Q6JyaC+M261olVA8cbkoOiw=
=JpDH
-----END PGP SIGNATURE-----

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

Reply via email to