[Gtk-sharp-list] Gtk.Label clickable URL ?
ghaefbgtk at gmail.com
Thu Mar 22 09:49:35 EDT 2007
I have I question about adding some functionality to Gtk.Label. Is it
possible to make a Label.Text/Markup clickable i.e. respond to mouse
click so I can use it to open URL in web browser ?
Now the thing is that I know that I can do this by adding the whole
Label to EventBox so when I click on the label I can use EventBox to
respond. But then the whole Label is clickable.
I would like to have just the part of the Label.Text to be clickable :)
e.g.: "This is an url - http://www.google.com" -> only url will be
clickable, but the rest of the text not.
Is this even possible ?
I see in Evolution something similar where email addresses(at the top)
are in blue and clickable. But I don't know if this is gtk.label.
I believe this can be done with Textview... e.g.Gaim can have
clickable urls in conversation window. But I really want to use Label,
because I can so simply use it to display Markup text.
Any help would be appreciated.
More information about the Gtk-sharp-list