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
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
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
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
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
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
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
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
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
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
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
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
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
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
* 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
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
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
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
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
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
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
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
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