hyperlinkclutter

How can I add a hyperlink to a ClutterText actor?


I've got a ClutterText object that I'd like to make display a clickable hyperlink. ClutterText has the option to use Pango markup but apparently not a way to mark a hyperlink.

Is there an easy way of doing this?


Solution

  • the MeeGo Netbook user experience had a ClutterText sub-class that allowed highlighting and clicking URLs:

    https://github.com/meego-netbook-ux/meego-panel-myzone/blob/master/penge/penge-clickable-label.c

    the basics are:

    remember to make the ClutterText actor reactive if you want it to handle events. :-)