Commit Graph

13599 Commits

Author SHA1 Message Date
Christian Stimming
c2f070dcb8 Update newly introduced NANO version number in cmake build script as well.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20205 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-30 10:25:07 +00:00
Christian Stimming
47032f3687 Get rid of gtk dependency in <app-util/option-util.h> header by storing only a gpointer for the widget.
This means the very last part of a gtk-dependency in app-util is in option-util.c
in one error message. My goal is to remove gtk completely from app-util
so that all code in our dependency chain up to app-util can be packaged
into a GUI-independent library, which can then be used by the python wrappers
and other GUI frontends alike.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20204 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-30 10:21:48 +00:00
Christian Stimming
5cb52dbdb5 Updated Ukrainian translation, copied from the Translation Project.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20203 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-30 09:24:27 +00:00
John Ralls
725e14eb17 Add gnc_get_long_version, a guint concocted by adding the version values together allowing two digits for each. Add a new version value, GNUNCASH_NANO_VERSION, to be incremented when there's any change to data serialization. Use the new gnc_get_long_version to tag the Gnucash version in the versions table in the dbi backend.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20202 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-29 23:38:10 +00:00
John Ralls
e2c04cbbd4 Add libgncmod-app-utils.la to src/backend/dbi/tests LDADD so that gnc_push_locale and gnc_pop_locale can be found for testing.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20201 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-29 23:16:00 +00:00
Christian Stimming
2057e6ed34 Re-indentation of source code.
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@20200 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-29 21:37:27 +00:00
Christian Stimming
e16c4508af Fix missing include in cmake build file.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20199 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-29 21:33:43 +00:00
Christian Stimming
546b276912 Move gnc-ui.h file from top-level to gnome-utils. It is gtk-dependent anyway, so it is moved to where it belongs now.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20198 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-29 21:31:26 +00:00
Christian Stimming
5aa9a45fc2 Remove unneeded usage of a generic <gnc-ui.h> include in headers.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20197 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-29 21:31:16 +00:00
Christian Stimming
a00b438b3a Remove pointless header RecnWindow.h - nothing gtk-independent here anyway.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20196 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-29 21:17:59 +00:00
Christian Stimming
f72837c433 Fix cmake build file after file removal.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20195 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-29 21:13:21 +00:00
Christian Stimming
d5a71666b6 Drop the obsolete gncUIWidget typedef because all of our GUI-code is inherently gtk-dependent (with the exception of option-util.h).
If there were any re-write of gnucash with a different GUI toolkit, it will
define all GUI-related functions in its own way, so there's no point in
pretending those very gtk'ish functions were usable in a different toolkit as well.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20194 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-29 21:09:15 +00:00
John Ralls
1f3b1ea0db Delete the unused and slightly pointless gnucash_foo_version functions
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20193 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-29 20:58:56 +00:00
John Ralls
4187f8dc78 Adjust gnc_push_locale and gnc_pop_locale to take a locale category and
to handle MSWin32 (following gnome/druid-hierarchy.c) correctly.
Use them in gnc-backend-dbi.c instead of the incorrect code from r20189 
(Thanks, Christian).



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20192 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-29 20:40:02 +00:00
John Ralls
d681822461 Add locale.h; some systems seem not to pull it in via glib/gi18n.h
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20191 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-29 00:40:46 +00:00
John Ralls
dead5c2f81 Left out of r20188: Actually wrap the important code...
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20190 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-28 23:47:30 +00:00
John Ralls
866ce51260 Handle localization-ignorance bug in libdbi by setting LC_NUMERIC locale
to "C" before calling dbi_result_get_double() and back afterwards. This 
is not thread-safe, but we're not multithreaded yet.
 


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20189 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-28 21:35:50 +00:00
John Ralls
c2702ebec4 Better OSX language handling: Add a "C" locale to the language-list
after any english locale so that if that english locale isn't present, 
gettext will fall through to "C", which makes unnecessary the "en.po" 
file. Also removed the special casing and locale truncation; gettext is 
quite capable of doing that itself.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20188 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-28 21:03:40 +00:00
Geert Janssens
742db08612 Clarify the use of pathnames in the python bindings example scripts
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20187 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-28 20:57:54 +00:00
Geert Janssens
4ff3fab49d Allow all book types instead of only sqlite3 for account_analysis.py
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20186 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-28 20:57:44 +00:00
Cristian Marchi
4abf1dceec Fix a typo.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20185 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-28 19:48:28 +00:00
Christian Stimming
370f7a8563 Update German translation.
This is merged using msgmerge --no-location de.po gnucash.pot -o de.new.po
and we use "--no-location" to make the updates actually readable.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20181 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-27 21:02:46 +00:00
Christian Stimming
2776f5a6a4 I18n improvements: Fix typos, fix unnecessary near-duplicates, remove unneeded strings.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20180 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-27 21:02:30 +00:00
John Ralls
8889b307e5 Clean up an obvious time-waster.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20178 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-27 20:07:45 +00:00
John Ralls
a6ad52d647 Change serialization of doubles in the dbi backend to use
g_ascii_dtostr() instead of sprintf. 

The problem is that sprintf is subject to localization and will output 
e.g. 1,25 for one-and-a-quarter in European locales. SQL doesn't support 
localization, so will interpret 1,25 as two fields, 1 and 25.

Note also that GUID_ENCODING_LENGTH isn't big enough for a double, so 
that's changed to G_ASCII_DTOSTR_BUF_SIZE.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20177 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-27 19:38:39 +00:00
Christian Stimming
ebef4d5f0f Move quickfill and gnc-entry-quickfill files from gnome-utils to app-utils because they don't require gtk/gnome.
(account-quickfill can't be moved because it also works with a GtkListStore.)

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20176 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-27 19:22:16 +00:00
John Ralls
cf4239d489 Add #include gnc-main.h for declaration of gnc_get_svn_version() for test_dbi_version_control().
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20175 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-27 19:16:47 +00:00
Christian Stimming
2060e0e1b0 Fix core swig files to have appropriate ifdefs for guile only portions
Patch by Andy Clayton <q3aiml@gmail.com>

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20174 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-27 19:09:27 +00:00
Christian Stimming
cb8e464928 Fix r20169 for out-of-tree build. Clean up included .c file.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20173 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-27 19:02:35 +00:00
John Ralls
b0a39c1608 Add declaration for test_dbi_version_control; doxygen comments for test_dbi_safe_save and test_dbi_version_control; and rearrange order of declarations to keep the test functions together.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20172 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-27 18:36:16 +00:00
Geert Janssens
bf4c1a4daa Bug #631789 - "Assets" in summary bar does not match assets displayed
As proposed in the bug, I have changed it to "Net Assets"

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20171 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-27 16:28:09 +00:00
Geert Janssens
d20582a7c1 Spelling fixes in code comments.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20170 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-27 16:28:01 +00:00
Mike Evans
32c89135ae Open the newly created invoices for editing after import.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20169 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-26 17:13:09 +00:00
John Ralls
a7f21a324b Make the splash screen stack as a regular window instead of stacking in front of everything else.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20168 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-25 17:06:59 +00:00
John Ralls
02e2762634 Remove qof_instance_begin_edit test from test_book_readonly; qof_instance_begin_edit doesn't check qof_book_is_readonly anymore.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20167 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-25 17:05:58 +00:00
Geert Janssens
29a685c483 One more svn:ignore for bi_import plugin
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20166 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-25 14:09:20 +00:00
Geert Janssens
23f446dd34 Update svn:ignore for bi_import plugin
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20165 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-25 14:06:45 +00:00
Christian Stimming
801adc765f Set line ending property svn:eol-style to LF for newly added files
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20164 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-24 14:37:49 +00:00
Christian Stimming
c8f1244fff Re-indentation of source code.
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@20163 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-24 14:10:09 +00:00
Christian Stimming
bd17b5fa41 Add missing svn:executable property
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20162 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-24 14:04:37 +00:00
Christian Stimming
04cafacf3f Fix printf conversion specifier of 64 bit integers in message.
(Also, fix compiler warning about && and ||).

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20161 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-24 14:02:39 +00:00
Christian Stimming
d912e8a320 Improve wording of libdbi error message even more.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20160 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-24 09:45:09 +00:00
John Ralls
3c37a45b2d SQL Backend Version Control: The final part.
New error dialog boxes for ERR_SQL_DB_TOO_OLD and ERR_SQL_DB_TOO_NEW
Marks the book read-only if the user doesn't upgrade a too-old db and 
when the user tries to load a too-new db.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20159 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-23 19:33:35 +00:00
John Ralls
5429f5a8cf Add en to the ALL_LINGUAS list in configure.ac; should have been in r20142
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20158 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-23 19:29:47 +00:00
John Ralls
28abf46152 Reverse some extra changes that slipped into 20155
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20157 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-23 19:24:09 +00:00
John Ralls
ce8997dc45 Bug #637770: Fix progress bar on load and full save in sql backend.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20156 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-23 18:58:39 +00:00
John Ralls
d4e3354c47 Provide more detail in commit error when it's caused by a read-only book. Mark error message for translation.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20155 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-23 17:50:43 +00:00
John Ralls
05530a33c3 Throw an error and return if if the book is marked readonly.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20154 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-23 17:35:31 +00:00
John Ralls
978908404a Remove book_is_readonly check from qof_instance_begin_edit; it crashes if it's actually used.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20153 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-23 17:31:28 +00:00
John Ralls
879b1f2c0c Bug #611936: Test DBI backends for a dbi bug which causes 64-bit numbers
to not be stored on 32-bit systems, and prevent saving or loading with 
an informative error dialog box.



git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20147 57a11ea4-9604-0410-9ed3-97b8803252fd
2011-01-22 23:04:00 +00:00