Attachments

John Ralls jralls at ceridwen.us
Sat Jan 15 11:02:09 EST 2011


On Jan 14, 2011, at 9:00 PM, Michael DeBusk wrote:

> "John Ralls" <jralls at ceridwen.us> wrote:
> 
>> What you could do now is use the memo field for a split to hold a URI
>> for the image file. You'd be able to copy that and paste it into your
>> favorite web browser to view the image... as long as you don't move the
>> file.
> 
> How difficult would it be to make that URI "clickable"?
> 

Not terribly difficult. You'll have to recognize the hyperlink, style it, associate a signal (which you'll need to add to the gnc_item_edit class) with a click event, and handle the event. The code is in src/register/register-gnome/gnucash-item-edit.c. The only catch is that everything is written in pre-gtk-2.14 code, meaning libglade, libgnomeui, libgnomecanvas, etc. Using pure gtk is possible for gnucash 2.6, but will require rewriting all of the register code to match (which, as I said earlier, is something that needs to be done.)

When you have your patch ready, please open a ticket in bugzilla and attach the patch to it. Thanks.

Regards,
John Ralls



More information about the gnucash-user mailing list