Commit Graph

10166 Commits

Author SHA1 Message Date
Christian Stimming
12f43b1bec Add author of r15203, 15206, 15207, 15208.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15210 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-12-12 11:36:51 +00:00
Christian Stimming
320c1af625 Code cleanup: Move variable declaration into block where it is used.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15209 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-12-12 11:34:42 +00:00
Christian Stimming
a95ff05967 Check for return value of regcomp() and return NULL on failure, as suggested by Jon Arney.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15208 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-12-12 11:33:03 +00:00
Christian Stimming
29bf7e2dd1 Rename private min/max functions to avoid name collisions with existing functions of macros, as suggested by Jon Arney
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15207 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-12-12 11:28:08 +00:00
Christian Stimming
4d598abed4 Change enum names to avoid name collisions, especially with win32 headers.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15206 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-12-12 11:24:14 +00:00
Derek Atkins
a70c7c4b88 Load and store a commodity's KVP-frame (IFF it's non-empty).
This would let us store something like an Asset Class.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15205 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-12-12 02:51:37 +00:00
Christian Stimming
9aa7ad31d2 Check for potentially failed utf8 conversion of locale strings. bug#383270
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15204 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-12-11 22:28:36 +00:00
Christian Stimming
0dcefd51f6 Rename variables to avoid potential conflicts with C/C++ keywords.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15203 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-12-11 17:48:44 +00:00
Andreas Köhler
47f406a9b7 Fix some printf's of NULL in DEBUG, ENTER and LEAVE macro invocations.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15188 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-12-06 20:03:30 +00:00
Christian Stimming
e453f3d4c1 Add Author for r15184 bugfix
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15185 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-12-05 21:21:21 +00:00
Christian Stimming
86e011e98b Remove unused variables and dead code. Patch provided by Jerry Quinn. Fixes #347084.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15184 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-12-05 21:19:48 +00:00
Christian Stimming
04b2a41c7c Updates for changed areas of contribution; add andi5 to top. Feel free to adjust this to your liking again.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15183 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-12-05 21:15:45 +00:00
Derek Atkins
e838b75c64 Print out more information about "broken" splits.
Extends r15179 which should fix the crash of bug #379625
NOTE: it now prints zeros, which could confuse the user...
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15180 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-12-04 03:09:24 +00:00
Chris Shoemaker
e8e2e12e11 Return zero instead of failing an assertion when the register asks a
Split for its amount in a commodity that is not involved in the split's
transaction.  This will prevent the crash in bug #379625, but doesn't solve
the underlying problem, which is a bug in the register.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15179 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-12-04 02:20:01 +00:00
Chris Shoemaker
099867608e Remove unused variables.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15170 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-12-03 01:40:32 +00:00
Chris Shoemaker
501d0943f5 Factor out some quiting code from gnc_main_window_delete_event() and
gnc_main_window_cmd_file_quit().  The new implementation fixes two bugs -
one in each of the previous implementations.  

The bug in the gnc_main_window_cmd_file_quit() code was a race condition 
whereby one could quit the application without finishing pending changes in 
pages.  This would happen if the began a save, modified the page during the 
save, and then triggered the File->Quit command before the save completed.  
For the register page, this sequence was possible, even though most of the UI 
controls are disabled during save.

The bug in the gnc_main_window_delete_event() code was that it didn't check 
for an in-progress save before prompting the user to save a dirty book.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15169 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-12-03 00:56:01 +00:00
Chris Shoemaker
60e5a01dfd Fix bug #353450 - Crash on quit during save.
Add a lock to the QofSession object, and use it in qof_session_save() to 
protect against re-entrance.

The lock always starts at 1 and is 0 while inside qof_session_save().  
If another call is made to qof_session_save() while one is in progress, 
the lock will momentarily drop below 0 before returning to zero.

Note: The per-session nature of the lock would make it appear that we support
concurrent saving of different sessions.  In fact, we do not, because the 
file backend blocks the main process until the forked gzip process is 
finished, and it only knows how to keep track of one child pid at a time. 



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15168 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-12-02 22:13:13 +00:00
Andreas Köhler
4018fd17ab Drop argv-list-converters.[ch], because its use was removed by r12942
when we switched to a more C-based start-up.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15167 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-12-02 18:03:13 +00:00
Andreas Köhler
36e5eb23ec Save window size and position of the transfer dialog.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15166 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-12-02 02:46:30 +00:00
Andreas Köhler
26f4dd062a When progress bar is showing, do not make menus and toolbars
insensitive, but rather the underlying action groups. This way even
keyboard accelerators will not make sneaking calls while saving.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15162 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-29 19:46:34 +00:00
Christian Stimming
8139f08d62 Replace 'static inline' by 'static' for functions that are used by function pointers.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15161 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-29 15:13:02 +00:00
Christian Stimming
0b5c0fd30b Oops. Now really fix absolute path of perl binary
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15157 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-28 09:10:57 +00:00
Christian Stimming
376c2592c0 Fix absolute path of perl binary
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15156 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-28 09:09:18 +00:00
Christian Stimming
278c11df1f Version number updates for mingw and libxml2
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15155 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-28 08:47:31 +00:00
Christian Stimming
81ee8fa296 Check for installed perl by absolute path of expected location
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15154 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-28 08:46:31 +00:00
Christian Stimming
d809670e2a Updated French README and small corrections to main README by Fabrice Kurz
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15152 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-27 14:40:10 +00:00
Christian Stimming
f60c817a45 Remove unneeded extra Makefile variable
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15150 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-27 13:32:32 +00:00
Christian Stimming
7f94d3b5b7 Remove configure-time path variables that are not used in the source code
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15149 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-27 12:56:12 +00:00
Christian Stimming
29c158335a Remove configure argument --with-locale-dir because it is unused anyway
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15134 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-24 14:04:43 +00:00
Christian Stimming
7852857000 Remove compiled-in pathname LOCALE_DIR by relocatable runtime function
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15133 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-24 13:50:41 +00:00
Christian Stimming
462cebb82f Fix gnc_path_get_localedir() because binreloc's implementation did not
respect the choice of DATADIRNAME from AM_GLIB_GNU_GETTEXT in configure.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15132 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-24 13:14:41 +00:00
Christian Stimming
efe2a9fc12 Add version numbers for opensuse 10.2, due 2006-12-07.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15131 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-24 10:38:39 +00:00
Derek Atkins
b4ca5382d8 Don't have aktzu in the "case" twice. Fixes #377519.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15128 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-21 14:56:24 +00:00
Christian Stimming
3571a1f3ad Mark forgotten string as translatable
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15126 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-19 20:57:39 +00:00
Christian Stimming
80886e50c6 Revert r15119. That change needs more testing on my side.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15123 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-15 08:54:51 +00:00
Christian Stimming
175bc56f09 For non-msys startup script, add SCHEME_LIBRARY_PATH again - it's definitely needed on at least one of my test machines.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15119 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-14 21:56:24 +00:00
Christian Stimming
3c2dfcb44a Replace mkstemp by g_mkstemp because the former is unavailable on windows
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15118 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-14 20:58:21 +00:00
Chris Shoemaker
b2c2ae2bf8 Add src/base-typemaps.i as a prerequisite for all wrapper-generator rules.
Fix some comment typos.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15114 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-14 02:14:13 +00:00
Chris Shoemaker
0866a83d33 Add a custom SWIG typemap for wrapping a return value of (char *)NULL
as an empty guile string. 


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15113 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-14 02:10:14 +00:00
Chris Shoemaker
74871917d7 Fix some #f vs. '() issues in qif import files.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15112 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-14 02:07:03 +00:00
Chris Shoemaker
e52027a7f5 Make the xml file read behavior less random for malformed account input.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15111 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-14 02:05:28 +00:00
Christian Stimming
6005e8deca Fix missing date when reconciling from HBCI as suggested by Konstantin Goudkov, #372929.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15110 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-12 11:06:30 +00:00
Andreas Köhler
c94218b42c Fix three incorrect tests for swig-wrapped objects and one
initialization as #f instead of '(), the latter making qif imports work
again. Remove also a few lines of old commented cruft.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15102 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-09 14:27:48 +00:00
David Hampton
554c03d055 The args to g_build_filename should be NULL terminated.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15099 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-08 22:43:59 +00:00
David Hampton
101c8c4e80 gnc_history_get_last() can return NULL.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15098 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-08 22:42:48 +00:00
Andreas Köhler
e0cbea3e7a Replace remaining _WIN32 macro tests by G_OS_WIN32 ones.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15097 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-08 21:06:59 +00:00
Andreas Köhler
7ebf6b80b7 Add swig base-typemap double gdouble. gnc-progress-dialog-set-value
should work again now.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15096 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-08 20:50:45 +00:00
Andreas Köhler
084159c80d Default directory tweaks:
* replace gnc_init_default_directory by gnc_get_default_directory and do
  gconf query there
* remove gnc_extract_directory, but add gnc_set_default_directory
* do not save default directory with trailing (back)slash anymore


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15095 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-08 16:40:41 +00:00
Andreas Köhler
30abc747ec Work around a bug in the MSYS bash (which generates 0x01 smilies when
handling some command substitutions), by adding a wrapper script for
pkg-config.exe.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15093 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-07 00:23:53 +00:00
Andreas Köhler
6ff291e2c9 Do not simply touch install-sh because we need that from automake
--add-missing. Warn the user if he has put install.sh in ., .., or
..\.. from the repository. Improves r15037.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15092 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-11-06 23:52:44 +00:00