gtk_text_buffer with clickable links?



Hi!

I have managed to make a gtk_text_buffer and colorize what appears to be links using 
gtk_text_buffer_apply_tag and some simple search algorithm.

Does someone have any resources explaining how to make those clickable - and (later problem) to open them in 
"default webbrowser" or such, and also make them underlined when mouse is hovering above them?

I have found an example, but that involves inserting actual buttons into the textview, and that isn't really 
what I am after. (There must be a simpler way to do what I want..)

Help and pointers to good documentation/tutorials/examples would be much appreciated.
I have looked at source that includes the requested behaviour, but it contains a _lot_ of other stuff too, so 
it is quite hard to make out what is important.

I would like to keep it as simple as possible (Editable textbuffer isn't at all required, also I am not 
interested in full syntax highligthing or similar. - as simple as possible.)

/Andreas

-- 
Andreas Rönnquist <andreas ronnquist meritkonsult se>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]