Andreas Köhler
f5e053f05d
Rename g_date_equals to gnc_gdate_equal and g_date_hash to gnc_gdate_hash.
...
Those are not native GLib functions. Make _equals consistent with
g_{str,int}_equal, also return a gboolean. g_date_compare checks its
parameters for validity already, so do not do that twice.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15851 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-09 00:51:51 +00:00
Andreas Köhler
ec22b196e5
Remove unused code for gnc_timet_get_day_{start,end}_gdate from qof.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15850 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-09 00:51:45 +00:00
David Hampton
a2269e623e
Fix compiler complaints about dereferencing type-punned pointers.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15849 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-07 18:24:53 +00:00
Derek Atkins
18c4cbf122
First step of QOF/Object GObjectification.
...
- Merge QofEntity into QofInstance
- Derive QofInstance from GObject
- Convert all QofInstance-derived objects to use GObject framework
- renamed qof_instance_init() to qof_instance_init_data()
- removed qof_instance_release() because it's no longer needed
Merge from branches/gobject-engine-dev-warlord (r15827)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15846 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-07 16:02:27 +00:00
Andreas Köhler
3fc5e23b51
Remove unused functions qof_print_{hours,minutes}_elapsed_buff().
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15845 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-06 23:29:56 +00:00
Andreas Köhler
8f8a8a33b1
Remove unused function qof_is_same_day().
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15844 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-06 22:59:34 +00:00
Joshua Sled
df48c26f49
s/printf/g_logging/
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15843 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-06 20:03:50 +00:00
Joshua Sled
459a053a30
Bug#348364: (Emulating price-cell,) we need to ensure the denominator of the amount is in the SCU of the account's commodity (so gnc-ui-util.c:is_decimal_fraction() on the remainder denom for fractional values will be a "decimal").
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15842 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-06 20:00:04 +00:00
Joshua Sled
cdcc26bbc9
Re-layout SX editor dialog: move 3 major components into notebook tabs. Bug#339003.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15841 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-06 17:24:11 +00:00
David Hampton
65c3b8d3c5
Conditionally remove some more deprecated functions.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15840 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-06 04:44:07 +00:00
Joshua Sled
aa94af8c94
Free memory.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15839 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-06 02:49:19 +00:00
David Hampton
df0cfeddc2
The function name xaccSplitDateOrder is misleading, so rename it to
...
xaccSplitOrder. Add a new xaccSplitOrderDateOnly function.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15838 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-06 02:31:28 +00:00
Joshua Sled
897633f01b
Combine two copies of "dow abbrev[iation]" code.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15837 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-06 02:22:29 +00:00
Joshua Sled
f7206b1fd1
Mem handling fixme.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15836 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-06 01:47:37 +00:00
Joshua Sled
49640205d3
Rename GncSxInstances->list to instance_list, which at least emacs doesn't hilight as a (potential)keyword.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15835 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-06 01:20:27 +00:00
David Hampton
d2f7b84a4e
Remove some deprecated functions. Bump version numbers were GnuCash
...
sets the "disable deprecated" flags.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15834 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-06 01:15:15 +00:00
Joshua Sled
18f0e755ec
Normalize memory handling of GncDenseCal marked-element "info" string.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15833 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-06 00:54:52 +00:00
Joshua Sled
bda70ee100
detail
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15832 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-06 00:51:42 +00:00
Joshua Sled
18703684f1
remove a level of (legacy) indirection around some calls.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15831 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-06 00:50:50 +00:00
Joshua Sled
f64b83c37f
decided against
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15830 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-06 00:50:13 +00:00
David Hampton
392cd816a3
Balance ENTER/LEAVE calls on some functions.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15829 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-06 00:19:08 +00:00
Andreas Köhler
b7cc4b2e1e
Fix a %s-NULL-printf.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15828 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-05 19:49:52 +00:00
Derek Atkins
8c6e7b8394
Add hooks for the gobject dispose() function so that we can
...
migrate each object's "free()" function to a combination of
dispose() and finalize().
(and yes, "make check" still passes all its tests)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gobject-engine-dev-warlord@15827 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-05 03:10:26 +00:00
Derek Atkins
b4323dbfcf
Get "make check" to work with the gobjectified objects.
...
- fix a bunch of tests to use the new gobject defs
- make sure we initialize g_type_init() in qof_init()
- fix qofbook's destruction sequence (I broke it earlier)
- use dispose() in QofInstance
- use qof_init() for the business tests.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gobject-engine-dev-warlord@15826 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-05 02:44:47 +00:00
Derek Atkins
4c64b3e9a0
convert GncVendor to gobject initialization
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gobject-engine-dev-warlord@15825 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-05 02:44:36 +00:00
Derek Atkins
aca8de8037
convert GncTaxTable to gobject initialization
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gobject-engine-dev-warlord@15824 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-05 02:44:25 +00:00
Derek Atkins
1b897fd18f
convert GncOrder to gobject initialization.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gobject-engine-dev-warlord@15823 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-05 02:44:17 +00:00
Derek Atkins
e38adf311d
convert GncJob to gobject initialization
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gobject-engine-dev-warlord@15822 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-05 02:44:08 +00:00
Derek Atkins
7f007696f9
Convert GncInvoice to gobject initialization.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gobject-engine-dev-warlord@15821 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-05 02:44:01 +00:00
Derek Atkins
4c1ba72597
convert gncEntry to gobject init.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gobject-engine-dev-warlord@15820 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-05 02:43:45 +00:00
Derek Atkins
1449cd97d1
convert GncEmployee to GObject initialzation.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gobject-engine-dev-warlord@15819 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-05 02:43:38 +00:00
Derek Atkins
292cf31279
convert GncCustomer to gobject initialization.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gobject-engine-dev-warlord@15818 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-05 02:43:31 +00:00
Derek Atkins
d93599d8f4
convert billterm to gobject initialization.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gobject-engine-dev-warlord@15817 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-05 02:43:26 +00:00
Derek Atkins
4271ca4e17
convert gncAddress to GObject initialization
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gobject-engine-dev-warlord@15816 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-05 02:43:18 +00:00
Joshua Sled
7832f0f069
update
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15815 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-05 01:33:55 +00:00
Joshua Sled
2b8ef2b7d6
Base the value of the "week_starts_monday" dense-cal parameter on an implementation detail of GTK. :(
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15814 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-05 01:33:13 +00:00
Joshua Sled
9abdbc10dc
GncDenseCal supports Monday being the start of the week.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15813 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-05 00:43:09 +00:00
Derek Atkins
49c4d834e3
convert price/pricedb objects to GObject initialization
...
rename gnc_price_{get,set}_type() to _typestr() so it doesn't
conflict with the GType gnc_price_get_type() API.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gobject-engine-dev-warlord@15812 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-05 00:24:38 +00:00
Derek Atkins
01d677ddb8
convert gnc-lot object to GObject initialization
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gobject-engine-dev-warlord@15811 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-05 00:24:28 +00:00
Derek Atkins
c7d7b9621f
Convert gnc_commodity objects to GObject initialization.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gobject-engine-dev-warlord@15810 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-05 00:24:18 +00:00
Derek Atkins
d71de524f8
Convert GncBudget object to GObject initialization.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gobject-engine-dev-warlord@15809 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-05 00:24:09 +00:00
Derek Atkins
e097404f0b
Convert the Transaction object to GObject Initialization
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gobject-engine-dev-warlord@15808 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-05 00:23:58 +00:00
Derek Atkins
cb8f58790c
Convert Split objects to GObject intiialization
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gobject-engine-dev-warlord@15807 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-05 00:23:50 +00:00
Derek Atkins
39d9258d19
Convert SX-book (SchedXactions) to GObject initialization.
...
Note that this object is never freed here, so it's a potential memory leak.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gobject-engine-dev-warlord@15806 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-05 00:23:42 +00:00
Derek Atkins
f1e6425dce
Convert SchedXaction to GObject initialization.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gobject-engine-dev-warlord@15805 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-05 00:23:32 +00:00
Derek Atkins
1cbf8b848c
Convert FreqSpec to GObject initialization.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/gobject-engine-dev-warlord@15804 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-05 00:23:11 +00:00
Joshua Sled
b0d66bf40d
better GncDenseCal minimum-size requesting
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15803 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-04 23:05:57 +00:00
Joshua Sled
855beadbd2
Save/restore gnc dense cal number-of-months view in SX List page.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15802 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-04 22:22:12 +00:00
Joshua Sled
4a35a0eac8
unused variable removal.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15801 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-04 22:21:38 +00:00
Joshua Sled
06ee9fcf88
Correctly set the GncDenseCal view combo box when set from code.
...
Better view label/combo-box widget layout and alignment.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15800 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-04 22:07:23 +00:00