http://bugzilla.gnome.org/show_bug.cgi?id=336843
Tim Wunder
tim at thewunders.org
Thu Jul 6 16:40:48 EDT 2006
Bug #336843 was mentioned on IRC today and I feigned interest in it. I was
assured by warlord that "this is something pretty easy to do. Hook a
GtkFileChooser to a menu item and load/save the result from/to the
current-txn KVP." So I started looking in src/register/ledger-core/ to see if
I could figure out how to "hook a GtkFileChooser to a menu item."
After wasting much time reading through C code that (at best) I can barely
read, much less understand, I figured I'd ask a few questions before deciding
whether this is a good RFE for a neophyte to attempt to tackle.
This strikes me as something that would need to go into split-register.c and
the file chooser would need to be called from a cell in the register. Am I
off base there?
Assuming the code belongs in the register, the next question is where. In the
register, there's a two line view, and a single line view. In the two line
view the user can enter Action and Notes. Would it be better to create a new
cell in the register (say "Attachment") that would display on the 2-line view
after Notes (under the Transfer account) or simply use the notes cell?
How would you go about enabling the user to select the contents of the cell so
that they can view the file (in whatever application)? Ctrl-Click to send a
file open command to the desktop environment (will that work?)? GnuCash is a
Gnome app, what happens if GnuCash is run in KDE (or some other DE)? How will
GnuCash know how to tell the DE to open the file?
The bug mentions a data store for the file. That seems reasonable. But that
would seem to indicate the requirement for some sort of preference that tells
gnucash where to store data files. And it begs the queston of how those data
files would get named/referenced. You'd also need to deal with the
possibility that the data file referenced gets deleted/moved from outside of
gnucash.
This all makes it seem rather non-trivial to me. Am I making any sense here?
Thanks for listening,
Tim
--
Fedora Core release 5 (Bordeaux), Linux 2.6.17-1.2139_FC5
16:15:01 up 8 days, 6:42, 1 user, load average: 2.17, 1.89, 1.77
MP3/OGG archive Total playlength : 8 days, 1 hours, 43 mins 23 seconds
"It's what you learn after you know it all that counts" John Wooden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20060706/ea30a97f/attachment.bin
More information about the gnucash-devel
mailing list