gnc-tree-model-account-types

David Hampton hampton at employees.org
Tue Feb 15 18:44:52 EST 2005


On Tue, 2005-02-15 at 17:26 -0500, c.shoemaker at cox.net wrote:
> [This is my 4th attempt to send this mail to the list.  I've
> unsubscribed and re-subscribed now.  Sorry if there are multiple
> deliveries.]
> 
> I was trying to use gtk-tree-model-account-types when I discovered
> some bugs that strongly suggest that I'm the first to use this code.

Agreed.  I did a grep on the sources and that code isn't referenced
anywhere.

> Therefore, I'm also thinking about some design modifications along the
> lines of:
> 
>   1) make a function that returns a static
> gnc_tree_model_account_types, since it would never change at runtime
> and then all views could share the same model.

Agreed. There's no need to ever have more than one model here.

>   2) make some helpers that map between bitmasks of account types and
> gtk_tree_selections
> 
> I think that would nicely handle the case where I want to allow a
> selection of a subset of all account types.  AFAICS, the only reason
> to allow multiple instances of the model is to allow views that rely
> on a variable model column to display selection state in some custom
> manner.  I'm thinking of something like a column of checkboxes.

They should still share the same mode.  This is where you would add an
filter model between the tree and the gnc_tree_model_account_type.

David

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20050215/7ed6391c/attachment.bin


More information about the gnucash-devel mailing list