ok, I made some progress, based on reading gucharmap source code.

Link hovering detection is made in a motion-notify-event handler, and
strangely at the end of the handler, there is a need for this call

gdk_window_get_pointer (text_view->window, NULL, NULL, NULL);

without, I don't get notified of all motion events.

Christophe


On 3/23/07, Christophe Dehais <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm trying to make some GtkTextTag behave like links (as Tomboy does)
> in a GtkTextView.
>
> I understand that tags are forwarded various events via the "event"
> signal, but I can't get how to make the mouse cursor change. I have
> looked at Tomboy code, I can't see this being made explicitely
> anywhere.
> Doing it by hand with gdk_window_set_cursor() in the "event" signal
> handler ? Seems ok but I don't receive _all_ motion-notify events in
> this handler, only some, after first pressing a key.
>
> Any clue ?
>
> cheers,
> Christophe
>
_______________________________________________
gtk-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to