gnc-tree-view-account-filter

David Hampton hampton at employees.org
Tue Feb 15 19:05:34 EST 2005


On Mon, 2005-02-14 at 00:43 -0500, c.shoemaker at cox.net wrote:
> >From the source:
> ***********************
> /*
>  * Set the account view info data in use by the specified tree to
>  * match the callers request.
>  *
>  * DRH - COMPATABILITY WARNING
>  *
>  * This function does not do anything with the 'include_type' field.
>  * Should there be a automatic filter for backward compatability
>  * that uses these flags, or should all uses of this be converted to
>  * a eggtreemodelfilter?
>  */
> void
> gnc_tree_view_account_set_view_info (GncTreeViewAccount *account_view,
>                                      AccountViewInfo *avi)
> 
> ************************
> 
> I think I understand these two options.  I'd like to be able to filter
> the account tree view by account types, so I think I need to do one of
> these two options.  Are there any opinions on which one is better?

The include_type flags are the old mechanism used in gnucash1.x.  Most
of the filtering in gnucash2.x is being done with eggtreemodelfilters.
The account tree view already has a filter in place.  Any chance you
could integrate this capability into that filter?  All that filter does,
iirc, is hide the root node of the account tree so that what shows up
are the first level nodes labeled Income, Expense, etc.

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/220f8b38/attachment.bin


More information about the gnucash-devel mailing list