Another GTK Problem

Dear lazyweb, Anybody know how I can put embedded links (for example http://www.moo.com) into a GtkTreeView? Please tell me I don't need to create my own renderer. Ideas welcome, code snippets or links rewarded with beer. Thanks.

Published by

hughsie

Richard has over 10 years of experience developing open source software. He is the maintainer of GNOME Software, PackageKit, GNOME Packagekit, GNOME Power Manager, GNOME Color Manager, colord, and UPower and also contributes to many other projects and opensource standards. Richard has three main areas of interest on the free desktop, color management, package management, and power management. Richard graduated a few years ago from the University of Surrey with a Masters in Electronics Engineering. He now works for Red Hat in the desktop group, and also manages a company selling open source calibration equipment. Richard's outside interests include taking photos and eating good food.

One thought on “Another GTK Problem”

  1. I don't see any way around creating your own renderer, but it shouldn't be hard. Subclass GtkCellRendererText, set the underline and foreground color properties to make the text look like a link, and implement the activate() method. May need to change the mouse cursor too, not sure.

Comments are closed.