GTK+ Is My Bitch
Thanks to some pointers from Kris, I've got some subtle new bling in Tasks. The core of the code is KotoCellRendererPixbuf, a GtkCellRendererPixbuf subclass which implements the activate virtual method, so that it is clickable. However because the other renderer in the column is not activatable (a text renderer), clicking on the row activates the pixbuf renderer. A quick bit of logic in the activate virtual function to look at where was clicked solves this, and now Tasks shows clickable icons when a task has a URL set.
I particularly like how space for the icon isn't allocated in every row, so if there is no icon the text extends all the way across the view.
NP: The Herd, The Herd
like:
meeting with tom
tom@someurl.invalid
click on the icon to open your email apps new message dialog with toms adress filled in?
keep up the good work!
best wishes, alex
Is the magic done in KotoCellRendererPixbuf or somewhere in task code?