Commit Graph

108 Commits

Author SHA1 Message Date
Geert Janssens
a61204a921 Remove unused CFLAGS in configure test
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22658 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-12-15 19:15:31 +00:00
Geert Janssens
8f2af017d5 Move configure test to a more appropriate location
And remove a reference in the comment to a no longer existing function

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22657 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-12-15 19:15:23 +00:00
Geert Janssens
935c613267 Drop workarounds for potential guile issues with long long
- The workarounds for long long were added more than 12
years back (pre guile 1.6). One would reasonably assume this issue would
have been fixed by now.
- But more importantly, we can guarantee a proper 64 type
conversion by replacing scm_to/from_long_long with scm_to/from_int64
which is always 64bit, just as gint64

I have chosen nonetheless to keep this change in a separate commit so
it's easier to track if some obscure platform still manages to screw
this up.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22655 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-12-15 17:59:35 +00: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
John Ralls
fd47f981ab Accommodate g_threads changes in GLib-2.32 and later.
Guards older implementation with ifndef HAVE_GLIB_2_32

BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22533 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-11-06 21:34:03 +00:00
Geert Janssens
67b2a56855 Change of mind. Use scm instead of vcs.
scm is the modern term. vcs is rather used to refer to archaic systems
such as cvs and older. I wish I remembered this before my previous
commit. Oh well...

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22476 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-11-01 10:35:34 +00:00
Geert Janssens
27c76eccd5 Minor changes to indicate svn is not the only/primary vcs used.
The code actually has provisions for svn, svk, git and bzr. Only svn and
git are actively used by the core developers though.

This involves changing
- filenames that contained svn while meant for multiple vcs's
- variable and macro names that are relevant for multiple vcs's
- the various locations where the vcs revision info is displayed
  to the user, to mention the actual vcs used instead of standard "svn"

While at the last item, I also changed the text printed when gnucash is
called with the --version parameter, to reuse the translatable string
that is also used for the about dialog. This saves us one string to
translate.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22475 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-31 21:38:49 +00:00
John Ralls
a57f38a0d8 [Bug 686830] Non-portable equality test in configure.ac
[BP]

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22458 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-10-27 23:29:32 +00:00
Geert Janssens
3cf132b466 Replace gnome_program_init with gtk_init
This required some small reorganization of our setup code, but the end
result is that gnucash is now independent of libgnome.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22379 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-09-10 19:22:00 +00:00
Geert Janssens
f48ef78090 Reduce dependency on libgnome
After this patch the only parts still requiring gnome libraries are
- src/bin/gnucash-bin.c (for gnome_program_init)
- src/gnome-utils/gnc-gnome-utils.c (for gnome_program_init)
- register-gnome (only uses libgnomecanvas)

Some refactoring was required in register-gnome to prevent other parts
of GnuCash to continue to depend on libgnomecanvas as well (the
register interface needlessly exposed the implementation details, thus
leaking GnomeCanvas dependencies to other parts of gnucash).

Most other changes simply replaced gnome specific stuff with gtk
equivalents.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22358 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-09-05 10:45:04 +00:00
Frank H. Ellenberger
a95de8a2ed Add info about usage of locale-specific-tax by german SKR04 to configure.
Sequitur of Bug #473349 / r16503
[BP]

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22338 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-22 08:36:15 +00:00
John Ralls
e925c5c310 Configure won't accept python on Debian Wheezy
Debian Wheezy uses python2.pc instead of python.pc. Check both.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22297 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-09 22:44:53 +00:00
Frank H. Ellenberger
9bc245da9d Bug 680671: configure should check for the python-devel package if called with --enable-python
https://bugzilla.gnome.org/show_bug.cgi?id=680671
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22279 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-04 02:01:40 +00:00
Geert Janssens
3f5105198d Remove unused, depreciated functions
Patch by Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22277 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-08-01 13:54:32 +00:00
Derek Atkins
41f54fbe5e Remove (unused) LIBXML_VERSION from configure.ac (#680708)
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22272 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-07-27 15:45:41 +00:00
Mike Alexander
b58ff2ffc1 Don't lose optimization flags passed in CFLAGS.
Change r17720 has a typo that causes it to lose all -Ox flags passed in
CFLAGS when it was actually trying to preserve them.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22236 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-06-24 02:58:01 +00:00
John Ralls
5b602c3a93 Fix double definition of DEBUG_MEMORY
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22186 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-21 15:32:52 +00:00
Geert Janssens
7dfb8145dd Remove empty lines from AC_CONFIG_SOURCES as this will cause the Windows build to fail
when using a git repo as source

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22168 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-05-06 18:03:41 +00:00
Christian Stimming
a77ee1bc6f Increase trunk requirements to gtk-2.24, glib-2.28.
This means SVN trunk does no longer support a stock RHEL6 distribution.
See http://lists.gnucash.org/pipermail/gnucash-devel/2012-April/033877.html
and http://lists.gnucash.org/pipermail/gnucash-devel/2011-November/032931.html
for the discussion.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22148 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-15 18:57:05 +00:00
Christian Stimming
374747c4f6 Check whether header <pow.h> really exists before including it.
The windows build has been failing for several days due to this.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22146 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-04-13 20:43:23 +00:00
Christian Stimming
c6141acc5a Bug #672161: New CSV account and transaction importer
Patch by Robert Fewell:

Firstly, this patch allows for the creating and updating accounts based on the CSV file
being imported. New accounts are created if the commodity required exists and
existing accounts are updated for the four fields: code, description, notes and
colour. This can be used for doing bulk updates of these fields and also for
importing the account structure from another file.

The second part is the change of the existing CSV importer to use an assistant
to guide you through the import. Additional features added is the ability to
specify the start and end row to be imported allowing you to jump over a header
or footer or just import a few rows. A currency format option was added which
was requested in another bug to overcome a problem they were having with the
downloaded format from there bank. You can also associate the account name to a
GnuCash account using the 'online_id' kvp, not sure if this is Ok or whether it
should be a different one.

To achieve the above, I split the dialogs used in import_account_matcher and
import_main_matcher into the dialog and the content so I could load the content
into the assistant saving on duplication, hope this makes sense.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22086 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-03-16 20:26:22 +00:00
Christian Stimming
725f25fb8a Bug #672157: New CSV account and transaction exporter
Patch by Robert Fewell:

I have put together a new feature to export the account tree and transactions
to a deliminated file. Both options allow you to select the deliminator and the
use of quotes. Every thing seems to work on the testing I have done but may be
some of the text and the headings in the output might need changing.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22085 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-03-16 20:26:04 +00:00
Christian Stimming
ecdb6f078f Remove the separate "calculation" module and swallow it in app-utils.
Those few source files do not justify an extra loadable module. They are
just compiled-in into app-utils.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22075 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-03-11 22:05:22 +00:00
Mike Evans
105ab023f4 New plugin to import customers and vendors from a csv type file.
From a patch by Sebastian Held.
Again the CSV file is of fixed number of fields, similar to invoice/bill importer.
Please test this.
Field list:
id,  company,  name,  addr1,  addr2,  addr3,  addr4,  phone,  fax,  email,  notes,  shipname,  shipaddr1,  shipaddr2,  shipaddr3,  shipaddr4,  shipphone  shipfax,  shipemail
Vendors don't have shipping information so even though the fields have to exist, leave them empty.
The id field is optional, if empty a new id will be chosen. If an id is used this will UPDATE
a vendor/customer with the same id.  This may not be what the user wants.  Maybe this should
be optional/selectable behaviour.
To enable the plugin, add the line:
(gnc:module-load "gnucash/plugins/customer_import" 0)
to ~/.gnucash/config.user

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22065 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-28 18:38:26 +00:00
Geert Janssens
7729673280 Bug #669494 - Swedish account plan provided (BAS 2012)
Additionally this commit adds some required changes to get the
Swedish account plans to actually show up in GnuCash (both BAS and the
earlier committed Swedish small business account plan)
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22012 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-02-12 20:29:01 +00:00
Geert Janssens
9b12eaf158 Remove some stray references to libglade.
It's no longer used by GnuCash. Yay!

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21880 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-23 20:45:26 +00:00
Mike Evans
df94d1c936 Bug 667581 - Migrate Invoice / Bill plugin to Builder
Patch supplied by Bob Fewell.  Many thanks.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21869 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-21 12:20:49 +00:00
John Ralls
2a50ac6461 Reverse the test for HAVE_DBI
ac_cv_header_dbi_dbi_h is set only if want_dbi is true, so testing for != no succeeds if dbi isn't enabled -- which is not what we want.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21867 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-20 21:06:29 +00:00
Geert Janssens
793d4f8d80 Bug #667871 - Migrate druid old xml file import to an assistant
Patch by Bob Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21855 57a11ea4-9604-0410-9ed3-97b8803252fd
2012-01-16 17:42:11 +00:00
Geert Janssens
9c77d82385 Bug #666459 - Migrate the remaining business dialogs to builder
Patch by Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21765 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-20 20:42:33 +00:00
Geert Janssens
f859c49098 Bug #665401 - Migrate Tax Report Options from GladeXML to Builder
Patch by Robert Fewell

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21660 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-12-03 10:35:17 +00:00
John Ralls
732f9651fc Remove src/import-export/qif-io-core
This directory was created 10 years ago to hold a rewritten qif importer. It was never substantively worked on after.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21646 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-29 21:29:47 +00:00
Geert Janssens
9eb42b358c Dissolve business-utils module by moving the leftovers into app-utils.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21607 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-21 10:40:43 +00:00
Geert Janssens
e52619c40b Dissolve dialog-tax-table module by moving its only object into
gnome-utils.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21606 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-21 10:40:31 +00:00
Geert Janssens
76d820735c Dissolve the business-core module, by integrating its remaining bits in
the engine, where the rest already was moved before.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21605 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-21 10:40: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
2f51419545 Tighten gtk+ requirement to 2.18.1
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21557 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-11 11:28:35 +00:00
Geert Janssens
168ecd6c92 Set GUILE_INCS as an output variable.
Patch by Bill Nottingham

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21535 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-08 18:25:05 +00:00
Geert Janssens
0973504b5b Check for guile-2.0 as well as guile-1.8.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21534 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-11-08 12:31:33 +00:00
Geert Janssens
aac8fb2ccb Convert invoice.glade to gtkbuilder
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21492 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-27 18:33:10 +00:00
Christian Stimming
5a2b27c233 [Gtkmm] For unittests we only need glibmm, not gtkmm.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21484 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-24 07:59:18 +00:00
Christian Stimming
4684029cbd Add first unittest for glibmm C++ wrapper of QofBook.
Unfortunately, this reveals the C++ wrappers will only work if the GObject
system is used properly, that is, including ref() and unref() and such.
This is not what I'd expect throughout gnucash.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21431 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-17 20:10:56 +00:00
John Ralls
4c6d5a178c Update Mac customizations for gtk-mac-integration-1.0.0
Mac integration has had a name and api change from
ige-mac-integration as part of migration from Sourceforge to
Gnome.

Also, gtk_osxapplication_add_app_menu_item() has been replaced
with gtk_osxapplication_insert_menu_item(),
gtk_osxapplication_add_app_menu_group() has been removed (just
insert a separator where you want it), and  gtk_osxapplication
path functions had been deprecated in favor of quartz-application
equivalents; those deprecated convenience macros were removed in
1.0.0

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@21398 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-10-08 19:14:01 +00:00
Geert Janssens
b36e49ccbd Convert transfer dialog to gtkbuilder format
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20761 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-06-15 16:31:03 +00:00
Micha Lenk
f77309616d Don't ignore --docdir from ./configure for documentation destination dir
This was discussed in more detail here:
http://lists.gnucash.org/pipermail/gnucash-devel/2011-June/032066.html

This might change the default location where the documentation is installed to.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20736 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-06-06 21:02:49 +00:00
John Ralls
28b598fc4f Reverting screwups r20683, 20684, and 20685
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20686 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-05-23 19:44:24 +00:00
John Ralls
07eea7f6ec revert bogus directory added in r20682
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20685 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-05-23 19:36:01 +00:00
Christian Stimming
85e77079b7 Replace guile configure check by PKG_CHECK_MODULE so that it also works in cross-compiling.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20585 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-04-22 19:43:39 +00:00
Geert Janssens
57e9c00db3 Introduce a new directory to store all gtkbuilder compatible ui files
It already holds a first set of files that were converted from libglade
to gtkbuilder.
CAUTION: not all the GUI objects in these files work properly already !
Glade (the tool) simply deletes all widgets that are not supported
by gtkbuilder during the conversion. These will all be fixed gradually
while the corresponding calls in the C code are converted.

The idea is that with each GUI element that gets fixed in the
gtkbuilder file, and subsequently called from C, the old
GUI element is removed from the corresponding libglade file until all
the libglade files are empty and can be removed.
This way the conversion can be done gradually and both methods can
coexist until all widgets and code are converted.

This first commit for example contains a converted account hierarchy setup
assistant, but not yet the code to use it, so the old druid is still in
the libglade file. Once the code can succesfully use the new assistant
from the gtkbuilder file, the old druid will be removed from the
libglade file.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20531 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-04-05 19:55:25 +00:00
Christian Stimming
c6ec7e1039 Slightly lower the requirements from r20489 again so that the windows build builds.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20500 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-03-28 18:51:22 +00:00