Commit Graph

15341 Commits

Author SHA1 Message Date
John Ralls
dadbb74abc Bug 710311 - Missing ChangeLogs
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23296 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-16 19:32:23 +00:00
Geert Janssens
30c365c412 Prefs migration: improve messaging
Redirect all messages to trace file (or wherever logs are configured to go)
Reduce default output by playing with the log levels

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23295 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-16 15:23:08 +00:00
Geert Janssens
e56f99669c Prefs migration: migrate ofx and aqbanking prefs if these options were enabled at build time
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23294 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-16 15:22:56 +00:00
Geert Janssens
b9b99c8b47 Prefs migration: write xsl transform to migrate a pair of coordinates
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23293 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-16 15:22:42 +00:00
Geert Janssens
67784e9b08 Prefs migration: fix radiobutton prefs migration
It contained a bug that would set two radiobuttons active in one
radiogroup. This was only really visible in the backend, but
resulted in the wrong option to be highlighted (for example
autoledger register style instead of ledger)

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23292 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-16 15:22:28 +00:00
Geert Janssens
31248bb3f3 Prefs migration improvements
- check if all parents of .gconf/apps/gnucash exist before attempting migration
- wrap guile parts in catch/throw handlers to prevent GnuCash from crashing
  if something goes wrong during the prefereces migration
- add more sanity checks and debugging information
- set flag after first successful migration to prevent future runs

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23291 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-16 15:22:04 +00:00
John Ralls
8dda5cf552 Remove gnucash-launcher and related scripting files.
With GConf gone, gnucash can launch the same way on MacOSX as it does everywhere else.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23290 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-13 17:11:39 +00:00
John Ralls
8418c91170 Adjust error-message tests to pass with Clang
Clang emits full function signatures for __func__ where GCC emits
only the function name.
Adjust Gnucash's own error messages emitted via PWARN and friends
to trim the extra bits so that only the function name is emitted
regardless of compiler. For messages emitted directly by glib
(usually from g_return_if_fail macros), the message in the test
case is special-cased for Clang so that it matches and the test
passes.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23289 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-09 05:28:15 +00:00
John Ralls
54cd656980 Clean up a bunch of clang errors
Mostly unsigned and enum mismatches

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23288 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-09 05:28:02 +00:00
Geert Janssens
6a475eb9b8 Gnc-Prefs: make the prefs migration actually do something on Windows
... which is more than simply not crashing

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23287 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-08 20:25:51 +00:00
Geert Janssens
4f4b17c3d9 Gnc-Prefs: fix crash in migration script on Win32
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23284 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-08 16:31:41 +00:00
Geert Janssens
84394292b4 Gnc-Prefs: disable migration of aqbanking prefs for now
There seem to be issues with the schema installation that can cause gnucash to crash

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23282 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-07 21:12:58 +00:00
Geert Janssens
b4b0953a2f Gnc-Prefs: windows limits preference names to 32 characters
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23280 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-07 21:06:20 +00:00
John Ralls
05e6698614 Release 2.5.6
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23278 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-07 18:54:25 +00:00
John Ralls
4df0c7406e Fix EXTRA_DIST typo
Breaks dist & distcheck

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23277 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-07 17:39:26 +00:00
Geert Janssens
1fcb00bd31 Prefs migrate: skip preferences that don't have a value set
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23276 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-07 17:18:31 +00:00
Geert Janssens
c0b11d02bf Move prefs migration call from app-utils module load to inner_main
At the same time skip migration if the required xml and xsl files aren't found

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23275 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-07 17:18:10 +00:00
Geert Janssens
1244caf80d Fix make distcheck
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23274 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-07 15:50:19 +00:00
Geert Janssens
a807648901 Gnc-Prefs: add code to migrate settings from gconf to gsettings at runtime
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23273 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-07 14:32:02 +00:00
Geert Janssens
ce33da254f Gsettings schema corrections
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23272 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-07 14:31:50 +00:00
Geert Janssens
b8e9411506 Gnc-Prefs: add convenience functions for int64 and coords typed preferences
coords are a pair of floats

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23271 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-07 14:31:37 +00:00
Geert Janssens
6d00f46304 Gnc-Prefs: update the windows build system to handle gsettings properly
- drop installation of files in libexec (we don't ship any anymore)
- make sure gsettings schema files get installed
- drop ORBit2; this was a requirement for GConf only

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23270 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-07 14:31:22 +00:00
Geert Janssens
ebedd85c65 Test for empty filename in addition to no filename
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23269 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-07 14:31:10 +00:00
Geert Janssens
d9d754b8ab Add some debugging code to gnc-gsettings
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23268 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-07 14:30:59 +00:00
Geert Janssens
afa4a5cbf3 Gnc-Prefs: stop using gconf as gsettings backend
WARNING: the saved settings in gconf are not (yet) migrated to gsettings !
         running gnucash as of this commit will start you with default values
         for all preferences !

You can of course change your preferences, your changes will be saved
properly in gsettings and restored when you restart gnucash. But what
has been set in GConf before will basically be ignored.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23267 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-07 14:30:40 +00:00
Geert Janssens
1ca78698ce Gnc-Prefs: rename preferences to be compliant with gsettings syntax rules
Syntax changes in short:
1. replace all _ with - in preference keys and groups (_ is not allowed)
2. base path should be /org/gnucash instead of /apps/gnucash

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23266 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-07 14:30:10 +00:00
Geert Janssens
8af99a8b61 Properly share a variable between two source files
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23265 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-07 14:29:30 +00:00
Geert Janssens
b74194151f Remove remaining gconf code bits
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23264 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-07 14:28:44 +00:00
Geert Janssens
889f73afce Gnc-Prefs: call gnc_gui_refresh_all on changes in the general prefs group
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23263 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-07 14:28:14 +00:00
Geert Janssens
ccdd93b25b Remove state saving/restoring code from new and old register code
This is similar to what the previous commit did for GncTreeView
and means column widths, column's visibility and register sort order
are currently no longer saved or restored for any register.

This is done because the state code relies heavily on gconf
and unfortunately can't be mapped to gsettings in its present
form. State save/restore  will be added again later, once
the gconf conversion is complete.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23262 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-07 14:28:01 +00:00
Geert Janssens
6e42833321 Remove state saving/restoring code from gnc-tree-view
This means column widths, column's visibility and view sort order
are currently no longer saved or restored for any view based on
GncTreeView.

This is done because the state code relies heavily on gconf
and unfortunately can't be mapped to gsettings in its present
form.

State save/restore  will be added again later, but likely only
after the gconf conversion is complete.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23261 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-07 14:27:50 +00:00
Geert Janssens
23a824d460 Gnc-Prefs: Convert gnc user warnings
This is a little more involved that a simple
find/replace of gconf->gsettings functions.

Gsettings doesn't allow introspection on the schema
like gconf does. So we need another way to extract
the warnings' summaries and long descriptions to
show the user. To fix this, a new set of source
files is auto-generated based on the gsettings schema
source file for the warnings: gnc-warnings.[ch]

gnc-warnings.c: contains an array of warning
description structs and the implementation of
an accessor function. The array is to be assumed
read only

gnc-warnings.h: defines each warning using #define
and exposes the accessor function to the rest of the
source tree.

The two source files are constructed using an xsl
transformation on the gsettings schema source file.
This is done using the tool xsltproc, which should
already be available on each platform GnuCash supports
because it gets installed together with libxml2,
which is already a required dependency for GnuCash.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23260 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-07 14:27:34 +00:00
Geert Janssens
60aef37631 Remove unused gconf includes, cflags and libs so far
This reduces the cruft a bit, making it easier
to see what's still to be migrated

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23259 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-07 14:27:02 +00:00
Geert Janssens
d9802f1bff Refactor gnc-tree-view based widgets such that only gnc-tree-view itself deals with gconf
The only exception is gnc-split-reg2, which has it's own implementation
of sort parameters (also linked to gconf unfortunately).

Tree views store column visibility and sort preferences in gconf. This is
actually state information and should be kept in the gnucash state file
(*.gcm in .gnucash/books). It will definitely not be ported to gsettings,
simply because gsettings can't handle floating sections (sections not
strictly tied to schema).

So in the process, where it makes sense the word gconf is already
replaced with "state". That helps with cleaning up the remaining gconf
code in gnucash, and indicates these parts need to be reworked to
use the state file as backend.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23258 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-07 14:26:11 +00:00
Geert Janssens
5674f4ed21 Gnc-Prefs: cleanup gconf wiring in main summarybar
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23257 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-07 14:25:39 +00:00
Geert Janssens
8e630049a3 Gnc-Prefs: cleanup gconf wiring in report system
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23256 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-07 14:23:52 +00:00
Geert Janssens
32cd4189de Gnc-Prefs: cleanup (most) gconf wiring in import-export
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23255 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-07 14:22:52 +00:00
Geert Janssens
5b172e859b Gnc-Prefs: migrate remaining gconf calls in check printing
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23254 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-07 14:22:23 +00:00
Geert Janssens
cc1fa9216f Drop option to customize gconf_path via command line or environment variable
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23253 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-07 14:22:09 +00:00
Geert Janssens
e5bccf7e5c Gnc-Prefs: cleanup some remaining bits from the preferences dialog
It is now fully converted to the new preferences system

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23252 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-07 14:21:44 +00:00
Geert Janssens
8418749a81 Gnc-Prefs: migrate GncDateEdit widgets (and associated preferences)
All GncDateEdits now use the new preferences backend
so drop the GncDateEdit-Gconf wiring as well.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23251 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-07 14:19:29 +00:00
Geert Janssens
a89f2059ed Gnc-Prefs: migrate GncPeriodSelect widgets (and associated preferences)
All GncPeriodSelects now use the new preferences backend
so drop the GncPeriodSelect-Gconf wiring as well.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23250 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-07 14:18:49 +00:00
Geert Janssens
369071bfe6 Gnc-Prefs: migrate GncCurrencyEdit widgets (and associated preferences)
All GncCurrencyEdits now use the new preferences backend
so drop the GncCurrencyEdit-Gconf wiring as well.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23249 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-07 14:18:06 +00:00
Geert Janssens
b712968386 Gnc-Prefs: migrate gnc-plugin gconf machinery
Instead of storing a gconf callback function that will
eventually by attached to the preference when the
plugin is added to a window, simply do this for each
plugin internally in its own add_to_window override
function.
This had already been done in earlier commits for most
plugins. This commit cleans it up for the remaining
plugins and the base plugin code.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23248 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-07 14:16:59 +00:00
Geert Janssens
b453bf3838 Gnc-Prefs: migrate GtkRadiobutton widgets (and associated preferences)
All GtkRadiokButtons now use the new preferences backend
so drop the GtkRadiokButton-Gconf wiring as well.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23247 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-07 14:16:36 +00:00
Geert Janssens
526bee354a Gnc-Prefs: remove toolbar_style preference
This option should be handled by the environment, not by GnuCash

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23246 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-07 14:16:11 +00:00
Geert Janssens
57e0143551 Gnc-Prefs: migrate date_format preference
This includes converting the radio button group in preferences
into a combobox

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23245 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-07 14:15:55 +00:00
Geert Janssens
a91c0a9c3a Resave preferences dialog with a recent glade-3 version
This is in a commit of its own to separate automatic
changes from the real ones

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23244 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-07 14:15:43 +00:00
Geert Janssens
939d8f5f3a Gnc-Prefs: migrate account_separator preference (and associated GtkEntry widget)
All GtkEntries now use the new preferences backend
so drop the GtkEntry-Gconf wiring as well.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23243 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-07 14:15:18 +00:00
Geert Janssens
8c6d8fe3b0 Gnc-Prefs: migrate file history plugin
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23242 57a11ea4-9604-0410-9ed3-97b8803252fd
2013-10-07 14:14:27 +00:00