r23761 - gnucash/trunk/src/gnome - Bug 721954 - Multiple Scheduled Transaction Editors

John Ralls jralls at ceridwen.us
Sat Jan 25 10:48:05 EST 2014


On Jan 25, 2014, at 12:43 AM, Geert Janssens <janssens-geert at telenet.be> wrote:

> On Friday 24 January 2014 19:55:42 John Ralls wrote:
>> Author: jralls
>> Date: 2014-01-24 19:55:42 -0500 (Fri, 24 Jan 2014)
>> New Revision: 23761
>> Trac: http://svn.gnucash.org/trac/changeset/23761
>> 
>> Modified:
>>   gnucash/trunk/src/gnome/gnc-plugin-page-sx-list.c
>> Log:
>> Bug 721954 - Multiple Scheduled Transaction Editors
>> 
>> Gnc_gobject_remember the SX editor, and test for it before
>> creating a new one.
>> 
> This one is very instructive. I didn't know about the gnc-gobject code. Instead I 
> know several windows in GnuCash use the gnc-component-manager code to check 
> if an instance of the window already exists.
> 
> It seems these two interfaces have some overlapping functionality.

<sarcasm>
What a surprise!
</sarcasm>

The 6 ways of doing everything in GnuCash drives me nuts. I didn't know about gnc-component-manager, I just looked at the register window code to see how we made sure that a particular account was opened only once and copied that. I wonder how many other ways there are of ensuring no duplicates; I noticed that Robert Fewell layered another GList on top of the gnc_gobject_foo stuff to prevent having both a reg1 and reg2 window open at the same time. There may well be other schemes buried elsewhere.

Regards,
John Ralls




More information about the gnucash-devel mailing list