Commit Graph

389 Commits

Author SHA1 Message Date
Geert Janssens
453af7f081 Align master-only dist files between cmake and autotools 2017-07-10 22:00:15 +02:00
Geert Janssens
b430744fb5 Merge branch 'maint' 2017-07-10 20:22:35 +02:00
Geert Janssens
b1f9f80110 Add CMakeLists.txt files to dist tarball generated by autotools
This is half of the work to align the cmake and autotools generated dist tarballs.
What's missing in the cmake dist tarball on my system are all the files generated
or installed by running autogen.sh. I can't test this because cmake can't run
my version of automake (1.15), or at least our CMake configuration prevents this from happening.
2017-07-10 20:06:31 +02:00
Robert Fewell
18769d90f8 Replace Gtk3.22 deprecated function gtk_menu_popup 2017-07-09 21:56:35 +02:00
Geert Janssens
5405cf480c Merge branch 'gtk3' 2017-07-08 17:49:44 +02:00
John Ralls
c8402ad62e Merge CMake Distcheck from 'maint'.
Conflicts:
	CMakeLists.txt
	src/app-utils/CMakeLists.txt
	src/backend/sql/test/CMakeLists.txt
	src/backend/xml/test/CMakeLists.txt
	src/gnome-utils/CMakeLists.txt
	src/import-export/aqb/CMakeLists.txt
	src/import-export/csv-imp/CMakeLists.txt
	src/import-export/csv-imp/test/Makefile.am
	src/import-export/ofx/CMakeLists.txt
	src/import-export/qif-imp/CMakeLists.txt
	src/libqof/CMakeLists.txt
	src/register/ledger-core/CMakeLists.txt
	src/register/register-core/CMakeLists.txt
	src/register/register-gnome/CMakeLists.txt
	src/report/business-reports/CMakeLists.txt
	src/report/locale-specific/us/CMakeLists.txt
	src/report/report-gnome/CMakeLists.txt
	src/report/standard-reports/CMakeLists.txt
	src/report/stylesheets/CMakeLists.txt
2017-07-04 18:36:35 -07:00
Rob Gowin
6b14dc5b59 Implement 'dist', 'distcheck' and 'uninstall' targets for CMake 2017-07-03 16:15:17 -07:00
Robert Fewell
66de41bd57 Replace deprecated Gtk3.14 function gtk_arrow_new with an icon
Use icon 'go-down' as the arrow for the pop up selections.
2017-07-02 10:00:35 +01:00
Robert Fewell
9dd2e42376 Fix up, box should be a GtkWidget 2017-06-23 11:47:08 +01:00
Robert Fewell
090968f1f2 Replace deprecated widgets in goffice 2017-06-16 16:51:37 +01:00
Geert Janssens
2ca938bd67 Gtk3: Fix the remaining gtk direct access violations
These could not be fixed in Gtk2 because the accessor functions were only added as of Gtk3.
2017-04-14 19:21:34 +02:00
Geert Janssens
9b5fbcb2cb Gtk3: GtkObject has been removed
Replace with GtkWidget instead
2017-03-31 14:04:31 +02:00
Geert Janssens
790e358d06 Fix a couple of other deprecated symbols (gtk/gdk 2.x still) 2017-03-16 23:11:47 +01:00
Geert Janssens
dcce2d79cd Remove final dependencies on GOFFICE
This was still pulled in via the now removed gnc-csv-model.
In order to remove this, the fixed format csv importer
has been tweaked to get the required features from
the c++ csv importer code instead.
2017-02-20 17:54:09 +01:00
Geert Janssens
83da518763 Whitespace and spelling corrections 2017-02-20 17:41:32 +01:00
Geert Janssens
baf10bb7a5 Fix build issues with goffice imported sources
- Remove unused includes and functions
- Some small cleanups
2017-02-20 17:41:28 +01:00
Geert Janssens
d858c7d51d Internalize parts of the goffice code
We're using only a tiny fraction of that library.
Adding it directly in the gnucash source saves a large dependency chain.

Note this is a verbatim copy of these files from
https://github.com/GNOME/goffice/tree/GOFFICE_0_8_17
to preserve a clean link with it's origin.
It will only build correctly after the next commit.
2017-02-20 17:41:27 +01:00
John Ralls
e7aa53a75e Remove gmtime_r and localtime_r from lib/libc. They're no longer used. 2015-07-25 12:50:17 -07:00
Geert Janssens
24cb06156f Provide strfmon function for platforms that don't have it 2014-09-21 22:33:01 +02:00
Geert Janssens
25256c1ba7 Remove unused function yahoo-get-historical-quotes
This gets rid of the dependency on guile-www as well
2014-04-24 11:10:55 +02:00
Geert Janssens
47778a8325 Remove unused guile references in various source files
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22642 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-12-12 17:43:18 +00:00
Christian Stimming
00511d25ea Bug #671737: Let configure --disable-gui only build gui code
Patch by Kuang-che Wu.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22105 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-03-21 20:15:17 +00:00
John Ralls
a2cd913a5c Fix clean targets and DIST_SOURCES
Several subdirectories have a subdirectory "gnucash", which clean tried to remove by including in the CLEANFILES variable in Makefile.am. This doesn't work, because directories can't be removed with rm, they require rm -r. Add a clean-local: target which calls rm -r on the gnucash subdirectory.

Some Makefile.ams used an AC_SUBSTed variable to define an optionally-compiled subdirectory, then included the variable in SUBDIRS and the actual directory name in DIST_SUBDIRS. This breaks the distclean and maintainer-clean targets when the optional directory is built, because it is then processed twice, and there is no Makefile the second time so make halts. Replaced the AC_SUBSTed variables with ones local to the Makefile.am, switched with an AM_CONDITIONAL. That way automake can figure out the dist_subdirs on its own.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21570 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-17 21:27:40 +00:00
Geert Janssens
54324efc7f Remove local srfi's and require guile 1.6.7 or better.
All now supported versions of guile come bundled with these
srfi's, so there's no need to keep our own copies.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18995 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-04-05 16:48:09 +00:00
Christian Stimming
b53205e903 Set some more line-ending style properties.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18961 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-24 19:28:20 +00:00
Phil Longstaff
be4fce5ed5 If gmtime_r is defined as a macro, undef it
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18834 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-05 17:55:01 +00:00
Phil Longstaff
78d8fba84e Undefine localtime_r as a macro (new mingw pthreads package defines it)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18828 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-04 22:06:23 +00:00
Phil Longstaff
210472586c Add braces to make if-if-then-else structure clear and avoid GCC 4.4.0 error message
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18827 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-04 22:04:23 +00:00
Christian Stimming
04ffda604b Win32: Add more header includes where necessary to avoid using undeclared functions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18797 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-03 20:45:58 +00:00
Christian Stimming
ce99c42871 Re-indentation of source code, next batch.
This also strips trailing whitespaces from lines where they existed.
This re-indentation was done using astyle-1.24 using the following options:

astyle --indent=spaces=4 --brackets=break --pad-oper --pad-header --suffix=none

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18787 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-02 21:40:02 +00:00
Christian Stimming
49658f362a MSVC compatibility: Fix r18748, r18761 by replacing strncasecmp() with strnicmp().
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18773 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-03-01 18:44:49 +00:00
Christian Stimming
ce7f2889b9 Partly revert r18748, "Win32 compatibility": lib/libc directory doesn't have glib available.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18761 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-28 13:56:59 +00:00
Christian Stimming
f101adee5c Win32 compatibility: Use glib wrappers of non-usual POSIX functions.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18748 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-27 18:39:15 +00:00
Geert Janssens
86c7ae019c Bump glib2 minimum requirement to 2.12.
At the same time, remove all the conditional code and workarounds
that were in the code to cater for glib < 2.12.

Note: this commit will require a rerun of autogen.sh and configure.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18696 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-02-20 13:57:10 +00:00
Phil Longstaff
dc394c0030 Add win32 version of gmtime_r.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18277 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-08-24 02:00:39 +00:00
Phil Longstaff
89bfcce989 Rename lib/libqof -> src/libqof
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18029 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-04-07 00:48:53 +00:00
Phil Longstaff
4e47416ede 1) Add new files to po/POTFILES.in
2) Fix some unmatched quotes (in some cases, they were spelling errors)


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18016 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-04-05 00:52:30 +00:00
Phil Longstaff
945e700a37 Fix lots of splint issues (including memory leaks). This includes some changes
in qof and gnc files adding annotation comments to help splint analyze ownership
of memory and objects.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17983 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-03-09 17:17:57 +00:00
Phil Longstaff
c67b86b470 1) Before saving file contents via save-as, ensure that all data has been loaded. This
doesn't matter for the file backend, but does for the SQL backend, because the SQL backend 
only loads transactions/splits as needed.
2) Partially solve problem where int64 values are loaded incorrectly.  This started because 
num and denom for prices were seen to be limited to 32 bits.  libdbi provides a 
libdbi_result_get_longlong() routine, but unfortunately, on my system (with libdbi 0.8.2-3), 
it seems to have some bugs a) it returns negative values unsigned and b) it seems limited to 
a 32 bit value even when the correct value is in the db.  


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17925 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-02-15 19:26:38 +00:00
Charles Day
a0a034f2ce Documentation: Fix a wide range of small mistakes in doxygen comments, including a few spots where .c and .h function declarations didn't agree on parameter names.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17841 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-22 21:14:08 +00:00
Christian Stimming
3fe13a6733 Bug #566567: [Win32] Do not touch .scm-links on windows - always copy scm files
.scm files must be copied on windows because linking won't work.

Note: existing build directories will be fixed only after make clean.

Patch by C. Ernst.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17817 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-14 19:59:38 +00:00
Andreas Köhler
cda274944e Initialize GError in qof_log_parse_log_config().
This avoids a crash when the log configuration is not valid.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17813 57a11ea4-9604-0410-9ed3-97b8803252fd
2009-01-11 20:23:12 +00:00
Christian Stimming
9285d7b575 Fix missing correct CPPFLAGS when compiling qofmath test program.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17722 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-11-26 13:40:02 +00:00
Derek Atkins
d4448d19aa Fix gcc warning from qof's lookup macro
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17671 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-10-28 14:58:15 +00:00
Christian Stimming
60c32fd16b Bug #514043: Use AM_CPPFLAGS instead of AM_CFLAGS.
AM_CFLAGS is passed both to the compiler (.c -> .o) and to the linker, so it
should only have flags that are appropriate for both steps. AM_CPPFLAGS is
passed only to the compiler, so flags that are only appropriate for that step
(-I and -D flags, for example), should be in _CPPFLAGS instead of _CFLAGS.
Every gnucash-2.2.3 Makefile.am that passes -I flags gets it wrong, placing
them in _CFLAGS. It's not a functional bug (the linker ignores -I flags), but a
ton of superfluous flags makes the build output pretty verbose and hard to
debug when things do go wrong.

To make matters more confusing as a developer, the FOO_CFLAGS variable set by
PKG_CHECK_MODULES(FOO) is actually for _CPPFLAGS in the Makefile.am
('pkg-config --cflags' returns the -I flags).

A related -I bug (one that *is* functionally broken) is that sometimes a local
(build dir) -I flag is passed after a global (installed dependent library) one.
If my system happens to have a header installed from some unrelated thing,
compiler will find *that* one instead of the expected one in the source
directory. Should always pass all local -I before any global ones.

Patch by andi5 plus one manual addition in src/gnome-utils/Makefile.am

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17655 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-10-25 20:30:47 +00:00
Andreas Köhler
cb5b3ab59c Bug #539947: Replace __FUNCTION__ by G_STRFUNC.
Patch from Halton Huo.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17585 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-21 15:18:50 +00:00
Charles Day
ad6df218a0 gnc_numeric: Support reciprocals (negative denominators) in gnc_numeric_to_decimal().
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17554 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-18 08:33:27 +00:00
Andreas Köhler
44a07ec81c Optimize gnc_numeric_check() by G_LIKELY-fying that the denominator is non-zero.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17534 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-09-16 23:00:01 +00:00
Charles Day
eb29fc8e6d Make gnc_numeric values of zero always convertible to decimal form.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17456 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-08-07 18:18:00 +00:00
Phil Longstaff
9173035d57 Merge gda-dev2 branch into trunk.
This introduces the dbi backend and the --enable-dbi configure option.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17444 57a11ea4-9604-0410-9ed3-97b8803252fd
2008-08-01 16:02:07 +00:00