Commit Graph

9241 Commits

Author SHA1 Message Date
Chris Shoemaker
a652fc59d0 Dirty Splits when they change.
Add const to Split where appropriate.
   Fix GCache crash cause by using non-cached value in cached 'action' field 
   from the qsf-backend.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13368 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-23 17:44:42 +00:00
Derek Atkins
15cb6d2214 add QOF_LIBS to link line because debian libtool is broken.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13367 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-23 17:16:11 +00:00
Derek Atkins
eb29ffd9f8 force a build from svn to have access to svn version info.
this might break the broken ebuild that forcibly removes the
	  .svn directories, but the ebuild is broken and shouldn't do that.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13366 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-23 01:39:05 +00:00
Derek Atkins
5cd8bdf5a1 include gtk-compat.h so we build against gtk-2.4.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13365 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-23 01:35:25 +00:00
David Hampton
fa9f8dea28 Cleanup patch from Andreas Köhler.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13364 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-22 22:35:03 +00:00
Chris Shoemaker
3d6a06e208 Separate the Split functions from Transaction.c into Split.c.
Introduce xaccSplitVoid() and xaccSplitUnvoid() to aid the separation.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13363 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-22 21:52:46 +00:00
Chris Shoemaker
00ba10ef00 Add some comments, error checks, ENTER/LEAVE balances and a special-case
early-return for the conversion-rate calculation.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13362 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-22 17:41:58 +00:00
David Hampton
df6173132b Provide a callback whereby the core register code can tell the upper
layers that it has moved from an expanded transaction to a collapsed
transaction.  This lets the upper layer adjust the "split" transaction
toolbar button properly.  Fixes 332165.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13361 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-22 15:41:18 +00:00
Chris Shoemaker
9958820d8e Use correct function name qof_instance_set_dirty.
Comment on current state of Lot behavior.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13360 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-22 14:22:30 +00:00
Chris Shoemaker
656889ecce Convert Lots from a QofEntity to a QofInstance.
They now store their own dirty state.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13359 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-22 06:01:07 +00:00
Chris Shoemaker
da35e7c127 No need to run the BOOK_OPENED hook twice when open a book.
And no need to run it at all when we fail to open a book.
   Also, require HAVE_GTK26 before using gtk_get_option_group().


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13358 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-22 03:30:48 +00:00
Chris Shoemaker
e1e0d326d0 Avoid instantiating the current session until we're actually opening a file.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13357 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-22 03:05:20 +00:00
Chris Shoemaker
6ec9c70b26 Files accidentally left out of previous commit (r13355).
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13356 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-22 02:43:20 +00:00
Chris Shoemaker
53cd1da9cf Remove uses of deprecated qof_session_get_current_session() and
qof_session_set_current_session().  GnuCash now manages its own current
   session.  New function: gnc_current_session_exist() to test whether there
   is a current session.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13355 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-22 02:39:02 +00:00
David Hampton
66baad0f8e Fix from Andreas Köhler to deactivate the toolbar split button in an
auto-split register.  Fixes 330621.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13354 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-22 01:38:42 +00:00
David Hampton
c0dc99a3a6 Two fixes from Andreas Köhler. One fixes 331183, the problem where
editing a top-level account doesn't set the current parent.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13353 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-21 23:58:16 +00:00
Joshua Sled
81bf512533 Fix "default limit" QOF eventing stuff; thanks Andi.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13352 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-21 23:10:33 +00:00
Chris Shoemaker
d3fc3ba57e Mark the QofCollection as dirty when a new QofEntity is added or removed.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13351 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-21 21:46:07 +00:00
Chris Shoemaker
acb3913e7a Mark the GNC_LOT QofCollection dirty whenever a Lot changes.
This includes when the KVP is changed via the setters. 


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13350 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-21 21:44:42 +00:00
Christian Stimming
92f1daaf58 Updated German translation - 3568 out of 3738 done.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13349 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-21 20:55:48 +00:00
Christian Stimming
4a0bba0f13 Fix typos
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13348 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-21 20:44:17 +00:00
Chris Shoemaker
e13c1fc160 Avoid qof-dirtying Accounts when Splits or Lots are inserted or removed.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13347 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-21 20:27:40 +00:00
Christian Stimming
f73eaf6c1b Updated French translation by Didier Vidal
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13346 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-21 19:48:19 +00:00
Chris Shoemaker
2d1804e67c Move the code that (usually) ensures value/amount consistency for Splits
from add_random_splits() to get_random_split().
   Avoid numeric overflow when creating split values.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13345 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-21 19:43:00 +00:00
Joshua Sled
756dafc04e remove dup ChangeLog entry.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13344 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-21 19:30:41 +00:00
Joshua Sled
95afa5babe A different approach to ensuring that a (unique) relevent split from the currently-pending transaction is always in the split list before we load it.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13343 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-21 18:40:32 +00:00
Joshua Sled
0e4ac8952a slightly better values.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13342 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-21 15:42:19 +00:00
Joshua Sled
c868ca663f Fix GNC_EVENT_* values.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13341 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-21 15:37:12 +00:00
David Hampton
600de300de Andreas Köhler's patch to prevent a crash in the register date picker
widget when using gtk 2.8.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13340 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-21 05:14:15 +00:00
David Hampton
de8e3a75c4 Disable quote related functionality when F::Q isn't installed.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13339 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-21 03:44:15 +00:00
Chris Shoemaker
416a64337f Use glib's slice allocator in favor of GMemChunks for glib >= 2.9.
Patch by Andreas Köhler <andi5.py@gmx.net>.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13338 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-21 01:24:03 +00:00
David Hampton
5b3e0a3fff Catch and defer the quit command if a file save is in progress.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13337 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-21 00:14:00 +00:00
David Hampton
19303357ea Ignore some files.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13336 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-20 22:37:48 +00:00
Neil Williams
8bf6b9769a moderating the deprecated handler log entry
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13335 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-20 22:29:23 +00:00
David Hampton
3bf8d37212 Update spec file from RH8 to FC4.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13334 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-20 22:02:37 +00:00
David Hampton
b575dc47af Compile cleanly with when _FORTIFY_SOURCE is defined. This definition
is forced when building RPMs on FC4.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13333 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-20 22:00:38 +00:00
Derek Atkins
b5713ba30c * configure.in: fix the qof configure test for OSX.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13332 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-20 21:45:11 +00:00
David Hampton
cc44d065bb Don't reference uninitialized memory.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13331 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-20 21:06:32 +00:00
Chris Shoemaker
6a6b7c5776 Add a local copy of GtkTreeModelSort from gtk 2.8.12. Our local copy is
called GncTreeModelSort.  This newer version of GtkTreeModelSort fixes at 
   least one observed bug with our use of sorted models.  The 
   gtktreedatalist.[ch] files are used by GtkTreeModelSort and are directly 
   from gtk 2.8.12 without any renames because they aren't exported by gtk.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13330 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-20 20:47:01 +00:00
Chris Shoemaker
3c72393369 Explictly require gtk2.6 for conditionally compiled code that needs it.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13329 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-20 20:22:24 +00:00
Chris Shoemaker
0b46642d65 Factor out a compat definition of GTK_TREE_SORTABLE_UNSORTED_SORT_COLUMN_ID
into gtk-compat.h.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13328 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-20 20:09:02 +00:00
Neil Williams
78f38c6ebd ChangeLog entries
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13327 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-20 19:55:36 +00:00
Neil Williams
7e890a2ed3 prepare for QOF 0.6.2 release
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13326 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-20 19:55:16 +00:00
Neil Williams
625a4cd05e replacing gnc-event with qofevent
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13325 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-20 19:54:03 +00:00
David Hampton
59a62d13ed Use a spin_box instead of an entry for the 'occurrences' and
'remaining' numeric fields.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13324 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-20 19:50:42 +00:00
David Hampton
133bb8957c HIGify the scheduled transaction dialogs.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13323 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-20 19:40:24 +00:00
Neil Williams
2a6f832ded removing more unneeded headers with move pending
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13322 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-20 19:09:46 +00:00
Neil Williams
1c6a7b6eb2 remove unnecessary (and soon to be moved) header file
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13321 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-20 18:49:46 +00:00
David Hampton
22b8646b43 Remove forced screen updates that are no longer necessary.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13320 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-20 16:11:06 +00:00
David Hampton
d1560a106c If the number of "visible to the user" lines in the register has
shrunk, force the parent widget to redraw.  This fixes #328787.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13319 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-20 16:02:06 +00:00