Commit Graph

169 Commits

Author SHA1 Message Date
Christian Stimming
df1f9b6306 Add substitution code for unavailable functions gettimeofday and gmtime_r.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13560 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-09 16:26:02 +00:00
Christian Stimming
3934e34aeb Add more linker flags, necessary for some platforms (windows)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13557 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-09 15:48:23 +00:00
Christian Stimming
e993e7256a Replace "ln -sf" by "$(LN_S) -f" for
systems that don't have symbolic links available.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13556 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-09 14:28:54 +00:00
David Hampton
59056ce619 Remove more functions to be deprecated in libqof2. (Pass Three - more
trivial substitutions and simple translations.)


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13550 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-09 06:08:02 +00:00
David Hampton
4b04137e7d Never include "config.h" from a header file. Doing so makes it nigh
impossible to override configuration settings.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13549 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-09 05:51:07 +00:00
David Hampton
61a12b2715 Remove more functions to be deprecated in libqof2. (Pass Two - more
trivial substitutions, some simple translations.)


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13547 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-09 03:48:49 +00:00
Derek Atkins
db890792bb Fix the definition of QOF_EVENT_BASE; use QOF_EVENT__LAST for tests.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13546 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-09 03:33:00 +00:00
Andreas Köhler
e278c02ea0 Add configure test for sys/times.h and corrected guid.c to check for that.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13527 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-07 23:15:04 +00:00
Christian Stimming
3006050069 Make seed collection parts that depend on particular functions
#ifdef'd on that to enable easier windows/mingw32 porting.




git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13525 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-07 22:01:35 +00:00
Christian Stimming
96dea8f6b7 Fix old libc substitution files, now needed for windows/mingw32
porting.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13524 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-07 22:00:44 +00:00
Christian Stimming
0651fed036 Minor header include cleanups to enable easier windows/mingw32 porting
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13523 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-07 21:59:15 +00:00
Derek Atkins
2e658ee940 properly ignore the return value of fgets(). Fixes an FC4 error.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13514 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-07 15:19:19 +00:00
David Hampton
2ff71abfda Make g_strv_length available outside of the gkeyfile compatability
library.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13477 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-03-04 19:09:31 +00:00
Neil Williams
9dd917ecf3 simplify creation of new application events
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13397 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-26 19:03:37 +00:00
Neil Williams
8fffaf8c7a using new events with object argument
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13396 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-26 18:59:38 +00:00
Neil Williams
082212a7eb replacing the macro to restore programme flow
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13394 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-26 18:06:52 +00:00
Chris Shoemaker
dd8ce0e090 Keep track of exactly how many bytes we've sent to md5_process_bytes().
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13391 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-26 05:00:52 +00:00
Chris Shoemaker
6a8404df1d Implement QOF_COMMIT_EDIT_PART2 as a function instead of a macro.
Any of the callbacks passed to this function may be NULL to decline the 
   use of that callback.  Also, the three callbacks are now called in three
   mutually exclusive cases, corresponding to: 
      1) a failed commit, ('on_error')
      2) a successful commit where the object remains valid, ('on_done'), and 
      3) a successful commit where the object has been destroyed, ('on_free').


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13390 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-26 04:56:47 +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
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
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
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
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
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
Derek Atkins
9606f87741 Phil Longstaff's patch to make the GUID length a magic number.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13309 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-19 23:41:53 +00:00
Neil Williams
fd4960d0cf Improved reference handling for recursive copying of entities - relocate disparate functions to a single new file
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13306 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-19 22:54:39 +00:00
Derek Atkins
7d0228fa58 Use glib's gi18n.h instead of redefining gettext.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13299 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-19 19:28:28 +00:00
David Hampton
0ea6ebe253 Prepare for gtk change that will issue warnings if the return value of
the gtk_tree_model iter functions are not used.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13287 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-18 03:02:32 +00:00
Derek Atkins
3fcedbca8e Make the build work if the build directory is not the source
directory.  Also symlink .scm files into the build directory
          so it's possible to run from it.
	  Also fix "fin.scm installed twice", bug #168629.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13281 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-17 20:22:54 +00:00
Derek Atkins
8f98e8a109 * lib/libqof/qof/Makefile.am: add qofla-dir.h to DISTCLEANFILES
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13279 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-16 06:07:17 +00:00
Derek Atkins
bb9dbe25e7 combine XML_{CFLAGS,LIBS} into LIBXML2_{CLFLAGS,LIBS}
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13276 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-16 04:31:37 +00:00
Derek Atkins
25bb23b8d0 Small QOF build fix for dist and non-srcdir builds:
* lib/libqof/qof/Makefile.am: keep qofla-dir.h out of the dist
	* configure.in: look in builddir for qof includes.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13269 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-15 16:19:17 +00:00
Neil Williams
80b8819625 Improve QOF_TYPE_COLLECT handling and recursive copies
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13236 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-12 18:28:56 +00:00
Neil Williams
87c16f98cb Check that files can be opened before
trying to work out their type. Use new QofBackendError value

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13235 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-12 18:25:23 +00:00
Neil Williams
1853bee97c New QofBackendError code if files cannot be read
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13234 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-12 18:24:59 +00:00
Derek Atkins
11a9890323 Better handling of event removal. This allows us to actually
clean up, but also makes sure we don't destroy the handler
list out from under us as we're processing events.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13196 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-10 22:43:19 +00:00
Chris Shoemaker
943532c8cd Don't allow the event handler list to shrink while we're traversing it.
This change isn't ideal in the sense that the handler list is now a 
   monotonically increasing resource, but it's better than crashing when the
   handler in node N+1 happens to be deleted while servicing the handler in
   node N.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13152 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-08 06:04:51 +00:00
Neil Williams
c31f9f6e66 Deprecating qof_log_set_level_global in favour of qof_log_set_level_registered.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13117 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-05 12:25:45 +00:00
Neil Williams
325d74fd90 Improve documentation of QofBackendProvider
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13116 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-05 10:58:38 +00:00
Neil Williams
bd4211ad2e support logging of qofchoice by default
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13115 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-05 10:58:13 +00:00
Neil Williams
9a66ebdf0b line-wrapping tweak
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13114 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-05 10:57:28 +00:00
Neil Williams
baeb72b172 reverting change to qofsession.c from r13084, already replaced in r13097
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13112 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-05 10:48:12 +00:00
Derek Atkins
52514db6fa Some gnc-numeric fixes (more to come).
- Fixes for handling reciprocal values.
	  - Mark a lot of places where potential overflow bugs
	    are not handled.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13107 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-05 01:41:27 +00:00
Joshua Sled
0324351b44 Fix overall and ".log"-specific file-retention issues: Bug#329670 (++).
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13084 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-03 02:09:29 +00:00
Derek Atkins
eb7c14d20b No need for the blank SUBDIRS +=
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13074 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-02-02 04:12:19 +00:00
Derek Atkins
1adcc37a8a Get libqof to link against glib and gmodule.
* configure.in: include gmodule in GLIB_LIBS
	* lib/libqof/qof/Makefile.am: link libqof against glib.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13058 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-31 16:29:01 +00:00
Neil Williams
f0d89dbfda reverting r12999 and implementing a set of default log modules
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13027 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-29 17:49:35 +00:00
Joshua Sled
a3f4252965 Change libgsf/goffice libraries and paths to be gnucash-specific.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13003 57a11ea4-9604-0410-9ed3-97b8803252fd
2006-01-28 18:57:29 +00:00