Re: Tags that are links in a GtkTextView
- From: "Christophe Dehais" <christophe dehais gmail com>
- To: gtk-list gnome org
- Subject: Re: Tags that are links in a GtkTextView
- Date: Fri, 23 Mar 2007 16:57:38 +0100
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 <christophe dehais gmail com> 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]