[RFC] A differnt options system

Derek Atkins warlord at MIT.EDU
Wed Feb 16 19:49:17 EST 2005


Chris Shoemaker <c.shoemaker at cox.net> writes:

> On Wed, Feb 16, 2005 at 02:52:25PM -0500, Derek Atkins wrote:
>>
>> That was David saying that, but I' understand it about 75%.  And yes,
>> I _COULD_ flush out the C api -- tell me which APIs you need (which is
>> where you should have started in this whole thing, and was exactly why
>> I asked at the beginning "what's wrong with it?"  :)
>
> In my defense, I really did bring this up on Jan 4th.  I hope that
> post plus some of the ones in this thread have covered some of the C
> API problems.

In my defense, I was still on holiday on Jan 4th and was coping with
parents, sick mothers-in-law, and sister with baby (my first nephew)..
So I was somewhat distracted at that point in time, too.

> Would you consider gnc-plugin-page-account-tree.c a normal user of the
> optionDB?  If so, I really don't think it's a documentation problem.
> But, I'm sure documentation would help a lot.

Yes and no.  I think there are a bunch of helper functions that exist
which that code doesn't use.

>> Define "object properties"?  Do you mean something like how the File
>> -> Properties dialog or the [ Options ] toolbar button work?  Or do
>> you mean something else?
>
> Yes, I think I would call those "book properties."  Edit->Preferences
> is what I'm calling overall program preferences.  What you see when
> you click "Edit" in the account-tree-view-page is what I would call
> "account properties".  BTW, why can't I edit account properties from
> the account page?!?  Am I missing something?

The "account properties" are really properties of the account tree,
not any particular single "account".  That's why you edit them from
where you do.

>> Are you trying to improve the maintainability of something like the
>> customer, vendor, etc. dialogs which are really just a bunch of
>> getter/setters with very little logic? 
>
> I hadn't considered those, but I guess, yes, I am, at least some of
> them.  BTW, when I looked at one of those I got:
> (gnucash:16049): Gtk-WARNING **: gtksettings.c:739: an rc-data property "gtk-toolbar-style" already exists
> (gnucash:16049): Gtk-WARNING **: gtksettings.c:739: an rc-data property "gtk-toolbar-icon-size" already exists
>
> and gnucash segfaulted, but I think I saw enough to know what you're asking.

In the g2 branch, I'm not surprised.  Unfortunate..  Then again I have
no idea where these errors are coming from.

-derek

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available


More information about the gnucash-devel mailing list