Commit Graph

15266 Commits

Author SHA1 Message Date
Geert Janssens
14208cbfb0 Add GSettings schemas and build rules
These are converted from their GConf equivalents.
Some caveats:
- During the code updates from GConf to GSettings both systems
  use the same backend and hence need the same key and
  path names or they won't see each others changes.
- For this reason the conversion in this commit
  preserves the GConf key names even though these can
  contain illegal characters for GSettings.
- Once all code is successfully converted
  to GSettings and we have a preferences conversion
  script in place, we need one more round of fixing
  the keys and paths (/apps is deprecated in GSettings
  in favour of /org)

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23216 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-07 14:03:59 +00:00
Geert Janssens
e87957e632 Prepare for GSettings conversion
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23215 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-07 14:03:22 +00:00
Geert Janssens
2e2cc12e6d Use more generic parameter name to cut association with gconf
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23214 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-07 14:02:48 +00:00
Geert Janssens
07e144ba39 Whitespace cleanup, comment improvements and spelling fixes
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23213 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-07 14:02:27 +00:00
Geert Janssens
302fb3bfb0 Cleanup after file backend settings refactoring
This affects many other components as well, including the
python bindings

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23212 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-07 14:02:08 +00:00
Geert Janssens
3861de653d Remove obsolete enable_euro key from gconf
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23211 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-07 14:01:51 +00:00
Geert Janssens
a050fcfa7d Remove redundant call
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23210 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-07 14:01:35 +00:00
John Ralls
cf5c84880e Fix pre-glib-2.38 definition of _Q in tests
Thanks to Frédéric Perrin <fred@fperrin.net> for pointing this out.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23209 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-06 15:59:29 +00:00
John Ralls
db4285f549 Remove ancient #if-0'd code from Engine
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23208 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-03 21:40:11 +00:00
John Ralls
44af452d48 Work around quote change in assertion messages
glib-2.38 changed the leading quote from ` to ', e.g.
"assertion `foo' failed" to "assertion 'foo' failed".

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23207 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-03 21:39:59 +00:00
John Ralls
413aa58c40 Remove ancient if-0'd code from backends
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23206 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-03 21:39:43 +00:00
John Ralls
2e4c3e5f2f Remove ancient if-0'd code from libqof
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23205 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-03 21:39:24 +00:00
John Ralls
ac0e3b36bf Convert - in filenames to _ for function names
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23204 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-03 21:39:11 +00:00
John Ralls
a3417ff44b Fix test broken by r23192
The test in question was working around the ref-counting bug;
removed the workaround.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23203 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-03 21:39:01 +00:00
Mike Evans
e6911c1a35 Bug #699450
Reverses previous commit for this bug and applies patches for fix.

This is an amalgum of 7 patches.
Patch comments are reproduced below.  All patches supplied by R Ratcliff.

[PATCH 1/7] Fix budget view resizing issue

The fix here is to change the hardcoded width value from 86 to 60.
* Remove size-allocate signal bound to treeviewcolumn (columns
  don't emit signals)

[PATCH 2/7] Fix the way column width is determined

The budget tree view has a bunch of columns that have visible
set to false. These columns have a width of 0. Change
gbv_tree_view_resized_cb to ignore these columns.

[PATCH 3/7] Change column sizing method.

Not sure if this is crucial to the bug fix.

[PATCH 4/7] Fix regression for window horizontal resizing

This change does two things
* Set expand on totals_title_col to TRUE
* Not set the width of this column in gbv_treeview_resized_cb

Note: The second one is a bit tricky. It relies on the fact that
totals_title_col has a default sizing of GROW_ONLY. It only explicitly
sets the size on columns that have a sizing of FIXED

[PATCH 5/7] Fix horizontal scrolling

* Add a vbox inside the scrolled_window, and add the two treeviews to that.

This fixes horizontal scrolling. If the budget view is too wide for the
window, then a horizontal scrollbar will appear at the bottom, and scroll
both the main budget view and the totals view at the bottom.

However, it breaks vertical scrolling (vertical scrollbar will scroll the
entire view, instead of just the top view). I'll fix this in the next commit.

[PATCH 6/7] Fix vertical scrolling

Vertical scrolling will only apply to the top view (budget values) and not
to the bottom view (budget totals).

Implementation: add an inner scrolled window for the vertical scrollbar.
Set scrolled_window vertical scrollbar policy to NEVER.

Note: This design looks weird when both scrollbars are used because you
have to scroll horizontally to the right in order to see the vertical
scrollbar for the top section.

[PATCH 7/7] Clean up code before submitting patch

* Remove debugging and commented out code

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23202 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-01 12:22:00 +00:00
Christian Stimming
a81e9f6693 Fix typo in string (punctuation)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23201 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-09-30 19:38:23 +00:00
Christian Stimming
b44cf4ac27 Minor improvement in message about last modification time upon opening a file.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23200 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-09-28 21:28:17 +00:00
Christian Stimming
1968b38cfa Win32: Update aqbanking/gwenhywfar package versions for windows build.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23199 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-09-28 21:28:05 +00:00
John Ralls
6ee53ca581 Fix undeclared identifier from r23191
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23197 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-09-26 02:51:25 +00:00
John Ralls
0854231a14 Bug 708700 - "make check" fails (missing glib bits)
Author: Frédéric Perrin <fred+gnome@resel.fr>

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23196 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-09-24 21:24:34 +00:00
John Ralls
72d1387f30 Bug 654196 - "make check" fails when built with --enable-dbi
Change ordering of flags so that picky compilers build the test correctly.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23195 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-09-24 20:59:13 +00:00
John Ralls
84e4edcb67 Bug 632362 - Unable to create "reversing transaction" again after it is removed
From leaking references in g_object_get because both g_object_get
and g_value_set_object ref the object, which is only unreffed once.
Using g_value_take_object() instead prevents the double-ref.

BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23192 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-09-24 20:11:24 +00:00
John Ralls
378a419f8d Fix leaking Gtkosxapplication objects.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23191 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-09-24 20:11:11 +00:00
John Ralls
f8cf8bba1b Bug 654196 - "make check" fails when built with --enable-dbi
but without sqlite DBD installed.
Refine checks to use the values for dlopen and dlopen_lib already
discovered by libtool.
Improve the error message to offer more solutions.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23190 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-09-22 00:56:23 +00:00
Geert Janssens
c05773cf84 Revert r23187 "Revert dbi check"
This commit was only intended on my machine locally to be able
to continue to work.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23189 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-09-21 16:29:34 +00:00
Geert Janssens
1366f6b6bf Improve tab behaviour in Stock split assistant
This is a follow-up on Bug 650584 - Change Stock Split Druid to an Assistant
With these changes the amount edits in the assistant react to normal focus
events using keyboard navigation.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23188 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-09-21 16:13:02 +00:00
Geert Janssens
b389d44cd9 Revert dbi check
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23187 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-09-21 16:12:07 +00:00
John Ralls
e32a8e84b9 Bug 654196 - "make check" fails when built with --enable-dbi
but without sqlite DBD installed. Add configure test to ensure
that at least one of the supported modules is installed

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23186 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-09-20 22:41:50 +00:00
Christian Stimming
a46dba1201 After opening a file, display a statusbar message with the last modification date and time.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23185 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-09-20 21:09:46 +00:00
Christian Stimming
517a621d9a Make gnc_g_date_time_new_from_unix_local() function known in header.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23184 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-09-20 21:09:33 +00:00
Christian Stimming
d1a2d70be9 Fix memory leak due to missing free after gnc_ctime().
Also, remove the trailing newline from the returned time string, as this is rather unexpected here.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23183 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-09-20 21:09:21 +00:00
Christian Stimming
b73c10b8b9 Fix erroneous memset() parameter ordering, as notified by gcc-4.6.3
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23182 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-09-20 21:09:06 +00:00
John Ralls
8960812666 Fix win32 build errors
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23181 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-09-19 22:56:46 +00:00
John Ralls
18af3bc3b0 Bug #654196 make check fails without sqlite DBD installed
Test for dbd driver for each backend before trying to test that backend

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23180 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-09-19 21:29:53 +00:00
John Ralls
70e865c80f Bug #704039 time zone is not respected in Windows
Thanks to Kuang-che Wu <kcwu@csie.org>

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23179 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-09-19 19:23:13 +00:00
Mike Evans
ad1f7524fa Remove commented out code.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23176 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-09-18 10:13:14 +00:00
Mike Evans
6849406419 Fix bug 699450
* Remove extra call to gtk_tree_view_append_column. (It is already
  called in gnc_tree_view_account_add_custom_column.)

Author: Robert Ratliff <ratliff.bobby@gmail.com>

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23175 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-09-18 09:40:44 +00:00
John Ralls
31c339f8c6 Bug 674862 - 2038 bug in libdbi
Retrieve the numerical value directly from the dbi_result and use
it to create the Timespec or GDate.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23174 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-09-17 23:26:10 +00:00
John Ralls
e5ea307906 Modify xaccAccountChildrenEqual to not depend upon the order
A SQL backend can't be expected to always return children in the same order.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23173 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-09-17 23:25:43 +00:00
John Ralls
213344f378 Work around differing pgsql protocol and dbi name
Also silence postgres notices during test.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23172 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-09-17 23:25:11 +00:00
John Ralls
843fd20e8a Convert stray g_printf into PINFO
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23171 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-09-17 23:24:31 +00:00
John Ralls
e10dae8728 Add core-utils to backend-sql test LDADD
Needed for gnc_core_prefs_get_namespace_regexp and gnc_core_prefs_get_long_version

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23170 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-09-17 23:23:20 +00:00
John Ralls
4d083bc1ca Re-enable dbi backend basic tests with g_tester
Combining business and basic into renamed test-backend-dbi-basic--
not utest because these are integration tests rather than unit tests.
Remove all of the no-longer-used test program files.

The actual test routines remain in test-dbi-stuff.c and test-dbi-business.c
just to keep the size of test-backend-dbi-basic.c reasonable.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23169 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-09-15 17:48:54 +00:00
Cristian Marchi
5c58875e94 Update Dutch translation from the translation project.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23168 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-09-14 18:25:55 +00:00
John Ralls
38f1cc6479 Fix up state-changing business functions
To ensure that they all have a begin/commit and mark the instance
dirty so that the change is immediately written to the DB.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23167 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-09-13 23:36:36 +00:00
John Ralls
818c00630d Bug #682280 - bill/invoice importer fails to save imported bills/invoices
The first attempt to commit when creating the invoice failed because
the commodity had not yet been set. Wrapped the creation routine in
begin/commit to allow the invoice to be fully populated before trying
to write the DB.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23166 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-09-13 23:36:22 +00:00
John Ralls
c7f6d0e6e0 Bug 684670 - Interest amount calculation is wrong in Sqllite3 format
Yet another corner where forgetting to run a edit-commit cycle when
changing state breaks database save.
BP

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23164 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-09-12 23:29:42 +00:00
John Ralls
568cfd730e Prepare 2.5.5 release
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23161 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-09-09 17:08:46 +00:00
John Ralls
1009505831 Bug 704056 - Online Banking (Online Actions) does not appear in Action menu
Ensure that all functions are exported to the dll

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23160 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-09-09 03:01:14 +00:00
Geert Janssens
745afb94dd Prevent 2.4 from crashing when loading a book that was opened with 2.6 before.
The core issue is that open reports are using a new restore function in 2.6,
which doesn't exist in 2.4 and older. The restore code now checks for the
existence of this new function and falls back to the old one if necessary.
The (mild) side effect is that in 2.4 any link to a custom template is lost.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23159 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-09-04 12:55:49 +00:00