On Tue, 2005-02-15 at 17:26 -0500, [EMAIL PROTECTED] 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

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
gnucash-devel mailing list
[email protected]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

Reply via email to