Joshua Sled
331863ed08
a bit safer.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15871 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-11 02:57:20 +00:00
Joshua Sled
ba63c51cc5
Bug#428452: use the g_path_get_dirname(...) of the last-file-opened to initialize the default directory of the File > Open dialog.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15870 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-11 02:08:23 +00:00
Christian Stimming
260dbe55b1
Use aqbanking's FiId field for correct OFX duplicate matching. #418072 , patch by David Reiser.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15868 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-10 19:32:30 +00:00
Derek Atkins
0db8a768b4
Phil Longstaff's patch for begin/commit edit in price quotes.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15860 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-10 14:17:11 +00:00
David Hampton
4a8089b4c5
Add some const declarations.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15857 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-09 23:28:09 +00:00
David Hampton
13d841930b
Add some begin_edit/commit_edit checks.
...
BP
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15856 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-09 23:26:43 +00:00
David Hampton
7e6d9f8a5f
Re-enable -Wunused checks.
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15855 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-09 23:24:35 +00:00
Derek Atkins
b15d6171c7
Phil Longstaff's patch to enable gnc_numeric to be a GValue
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15854 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-09 23:02:47 +00:00
Derek Atkins
7990568f9b
Phil Longstaff's patch to fix a kvp_frame bug.
...
Save the current frame so we know where to build the new one.
BP
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15853 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-09 23:02:33 +00:00
Joshua Sled
880da659b5
make hashtable destruction a bit more defensive
...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15852 57a11ea4-9604-0410-9ed3-97b8803252fd
2007-04-09 20:00:46 +00:00
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