export the account-tree's account filter function
populate the account-tree's account filter struct with the right tree-view.
And finally... reuse all this generalized functionality in
the budget plugin page. Nice!
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12214 57a11ea4-9604-0410-9ed3-97b8803252fd
Fixup comments forgotten in step 3.
Factor out and export most of the account filter dialog creation.
Eventually this function should live somewhere else.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12213 57a11ea4-9604-0410-9ed3-97b8803252fd
Narrow all the account filter dialog callbacks to use only the
AccountFilterDialog struct. Now they're multi-purpose.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12212 57a11ea4-9604-0410-9ed3-97b8803252fd
Narrow the account filter function to use only the AccountFilterDialog.
Now it's multi-purpose.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12211 57a11ea4-9604-0410-9ed3-97b8803252fd
new option to filter out accounts with zero total balances. Remember
the current filter state across invocations of GnuCash.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12205 57a11ea4-9604-0410-9ed3-97b8803252fd
they will always appear in the same place in the menus. Hide them so
they don't actually appear until a page provides them.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12204 57a11ea4-9604-0410-9ed3-97b8803252fd
* add some arrays of realistic string values for various
Account and Transaction fields
* use the arrays to generate slightly more human-readable
random books
* pull some hardcoded constants out into static knobs
* wrap Transaction creation in begin/commit
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12202 57a11ea4-9604-0410-9ed3-97b8803252fd
Including necessary related changes to functions passed accounts
from the account functions.
Interestingly, the only g-wrap function that complained about the
new const function arguments was xaccAccountOrder(), the only one
using const Account ** types. It seems very uncommon to express
const-ness in g-wrap for any types other than gw:mchar. Actually
I couldn't find any other examples, anywhere, so I had to guess
at the syntax, but it works.
Oh, and one or two minor tweaks like my last commit snuck in, too.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12201 57a11ea4-9604-0410-9ed3-97b8803252fd
* standardize on 'acc' as variable name for Account.
* removed 'acc->inst.dirty = TRUE' when preceeded by mark_account.
* slightly more consistent whitespace.
* short-circuit no-op in many cases where we thought we were changing state but we really weren't. Don't dirty Accounts in these cases.
* fix a couple cases where we dirtied the account without dirtying the parent
* fix one BUG where we just blew away the account's Lots for no reason.
* comment possible bug where we don't dirty a split.
* comment two possible buglets where we generate double CM events.
* comment on possible bugs related to conditional sorting of the Split list.
* heavy conversion from lower-level to higher-level KVP api.
* plug mem leak of entire GList of splits.
* document minor change to corner-case behavior of xaccAccountHasAncestor().
* several control flow simplifications.
* fixed one case where we were changing the Account without dirtying it. (Can't find this one now. Maybe I imagined it.)
Please note where I've marked 'BUG'. I think there are still (at
least) 2 medium and 2 minor bugs remaining in this file. I'll have
another look some other day.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12199 57a11ea4-9604-0410-9ed3-97b8803252fd
buttons where they were missing. Pack option widgets into GtkEventBox
so that tooltips are really shown. Fix various string i18n bugs.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12193 57a11ea4-9604-0410-9ed3-97b8803252fd
deprecated functions. Change the default so that glib deprecated
functions are not allowed with glib <= 2.10.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12185 57a11ea4-9604-0410-9ed3-97b8803252fd
* lib/goffice-0.0.4/plugins/plot_radar/gog-radar.c:
rename 'fmin()' to 'gogi_fmin()' to prevent double
declaration on MacOS. It's an internal (static) function
so we can safely rename the function.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12184 57a11ea4-9604-0410-9ed3-97b8803252fd
gwrap-1.9.x packages. May be removed if we switch to a different
package detection code, potentially via pkgconfig, but for now copying
this macro is the easiest solution.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12169 57a11ea4-9604-0410-9ed3-97b8803252fd
shrink the size of the close button on notebook tabs.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12167 57a11ea4-9604-0410-9ed3-97b8803252fd