mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Remove remaining gconf code bits
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@23264 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
889f73afce
commit
b74194151f
22
configure.ac
22
configure.ac
@ -61,16 +61,6 @@ AM_PROG_CC_C_O
|
|||||||
AC_GNU_SOURCE
|
AC_GNU_SOURCE
|
||||||
AC_PROG_INTLTOOL
|
AC_PROG_INTLTOOL
|
||||||
|
|
||||||
AM_GCONF_SOURCE_2
|
|
||||||
|
|
||||||
# Override gconf default install locations. The default is to always
|
|
||||||
# put them into /etc. This change puts them into $(prefix)/etc.
|
|
||||||
if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
|
|
||||||
GCONF_SCHEMA_CONFIG_SOURCE="xml::${sysconfdir}/gconf/gconf.xml.defaults"
|
|
||||||
fi
|
|
||||||
GCONF_SCHEMA_CONFIG_SOURCE_DIRONLY=`echo $GCONF_SCHEMA_CONFIG_SOURCE | cut -d ':' -f 3`
|
|
||||||
AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE_DIRONLY)
|
|
||||||
|
|
||||||
|
|
||||||
AC_SUBST(GNUCASH_MAJOR_VERSION)
|
AC_SUBST(GNUCASH_MAJOR_VERSION)
|
||||||
AC_SUBST(GNUCASH_MINOR_VERSION)
|
AC_SUBST(GNUCASH_MINOR_VERSION)
|
||||||
@ -476,16 +466,6 @@ GUILE_MODULE_AVAILABLE(gnc_have_guile_www,[(www main)])
|
|||||||
|
|
||||||
AM_CONDITIONAL(GNC_HAVE_GUILE_WWW, test "${gnc_have_guile_www}" = yes)
|
AM_CONDITIONAL(GNC_HAVE_GUILE_WWW, test "${gnc_have_guile_www}" = yes)
|
||||||
|
|
||||||
### --------------------------------------------------------------------------
|
|
||||||
### look for gconf
|
|
||||||
|
|
||||||
PKG_CHECK_MODULES(GCONF, gconf-2.0 >= 2.31.1)
|
|
||||||
# Look up gconftool-2
|
|
||||||
AC_PATH_PROG(GCONFTOOL, gconftool-2)
|
|
||||||
AC_SUBST(GCONFTOOL)
|
|
||||||
AC_SUBST(GCONF_CFLAGS)
|
|
||||||
AC_SUBST(GCONF_LIBS)
|
|
||||||
|
|
||||||
### --------------------------------------------------------------------------
|
### --------------------------------------------------------------------------
|
||||||
### LIBXML -- GNOME_XML_LIB is defined by GNOME_XML_CHECK
|
### LIBXML -- GNOME_XML_LIB is defined by GNOME_XML_CHECK
|
||||||
|
|
||||||
@ -1319,12 +1299,10 @@ AC_CONFIG_FILES(
|
|||||||
src/gnome/Makefile
|
src/gnome/Makefile
|
||||||
src/gnome/gtkbuilder/Makefile
|
src/gnome/gtkbuilder/Makefile
|
||||||
src/gnome/gschemas/Makefile
|
src/gnome/gschemas/Makefile
|
||||||
src/gnome/schemas/Makefile
|
|
||||||
src/gnome/ui/Makefile
|
src/gnome/ui/Makefile
|
||||||
src/gnome-utils/Makefile
|
src/gnome-utils/Makefile
|
||||||
src/gnome-utils/gtkbuilder/Makefile
|
src/gnome-utils/gtkbuilder/Makefile
|
||||||
src/gnome-utils/gschemas/Makefile
|
src/gnome-utils/gschemas/Makefile
|
||||||
src/gnome-utils/schemas/Makefile
|
|
||||||
src/gnome-utils/test/Makefile
|
src/gnome-utils/test/Makefile
|
||||||
src/gnome-utils/ui/Makefile
|
src/gnome-utils/ui/Makefile
|
||||||
src/gnome-search/Makefile
|
src/gnome-search/Makefile
|
||||||
|
@ -191,8 +191,7 @@ function inst_libxslt_gnome() {
|
|||||||
else
|
else
|
||||||
add_to_env pkg-config PKG_CONFIG
|
add_to_env pkg-config PKG_CONFIG
|
||||||
fi
|
fi
|
||||||
if quiet gconftool-2 --version &&
|
if quiet ${PKG_CONFIG} --exists libxslt &&
|
||||||
quiet ${PKG_CONFIG} --exists libxslt &&
|
|
||||||
[ -f $_GNOME_UDIR/lib/pkgconfig/libxslt.pc ] &&
|
[ -f $_GNOME_UDIR/lib/pkgconfig/libxslt.pc ] &&
|
||||||
quiet intltoolize --version
|
quiet intltoolize --version
|
||||||
then
|
then
|
||||||
@ -245,8 +244,7 @@ function check_gnome() {
|
|||||||
else
|
else
|
||||||
add_to_env pkg-config PKG_CONFIG
|
add_to_env pkg-config PKG_CONFIG
|
||||||
fi
|
fi
|
||||||
if quiet gconftool-2 --version &&
|
if quiet ${PKG_CONFIG} --exists gtk+-2.0 cairo libxml-2.0 &&
|
||||||
quiet ${PKG_CONFIG} --exists gconf-2.0 gtk+-2.0 cairo libxml-2.0 &&
|
|
||||||
quiet intltoolize --version
|
quiet intltoolize --version
|
||||||
then
|
then
|
||||||
echo "gnome packages installed."
|
echo "gnome packages installed."
|
||||||
@ -282,8 +280,7 @@ function inst_enchant () {
|
|||||||
else
|
else
|
||||||
add_to_env pkg-config PKG_CONFIG
|
add_to_env pkg-config PKG_CONFIG
|
||||||
fi
|
fi
|
||||||
if quiet gconftool-2 --version &&
|
if quiet ${PKG_CONFIG} --exists enchant &&
|
||||||
quiet ${PKG_CONFIG} --exists enchant &&
|
|
||||||
[ -f $_GNOME_UDIR/lib/pkgconfig/enchant.pc ] &&
|
[ -f $_GNOME_UDIR/lib/pkgconfig/enchant.pc ] &&
|
||||||
quiet intltoolize --version
|
quiet intltoolize --version
|
||||||
then
|
then
|
||||||
@ -307,8 +304,7 @@ function inst_libsoup () {
|
|||||||
else
|
else
|
||||||
add_to_env pkg-config PKG_CONFIG
|
add_to_env pkg-config PKG_CONFIG
|
||||||
fi
|
fi
|
||||||
if quiet gconftool-2 --version &&
|
if quiet ${PKG_CONFIG} --exists libsoup-2.4 &&
|
||||||
quiet ${PKG_CONFIG} --exists libsoup-2.4 &&
|
|
||||||
[ -f $_GNOME_UDIR/lib/pkgconfig/libsoup-2.4.pc ] &&
|
[ -f $_GNOME_UDIR/lib/pkgconfig/libsoup-2.4.pc ] &&
|
||||||
quiet intltoolize --version
|
quiet intltoolize --version
|
||||||
then
|
then
|
||||||
@ -357,8 +353,7 @@ function inst_webkit() {
|
|||||||
else
|
else
|
||||||
add_to_env pkg-config PKG_CONFIG
|
add_to_env pkg-config PKG_CONFIG
|
||||||
fi
|
fi
|
||||||
if quiet gconftool-2 --version &&
|
if quiet ${PKG_CONFIG} --exists webkit-1.0 &&
|
||||||
quiet ${PKG_CONFIG} --exists webkit-1.0 &&
|
|
||||||
[ -f $_GNOME_UDIR/lib/pkgconfig/webkit-1.0.pc ] &&
|
[ -f $_GNOME_UDIR/lib/pkgconfig/webkit-1.0.pc ] &&
|
||||||
quiet intltoolize --version
|
quiet intltoolize --version
|
||||||
then
|
then
|
||||||
|
@ -236,9 +236,6 @@ set_default FREETYPE_URL "$GNOME_WIN32_DEPS_URL/freetype_2.4.4-1_win3
|
|||||||
set_default FREETYPE_DEV_URL "$GNOME_WIN32_DEPS_URL/freetype-dev_2.4.4-1_win32.zip"
|
set_default FREETYPE_DEV_URL "$GNOME_WIN32_DEPS_URL/freetype-dev_2.4.4-1_win32.zip"
|
||||||
set_default GAIL_URL "$GNOME_WIN32_URL/gail/1.22/gail-1.22.0.zip"
|
set_default GAIL_URL "$GNOME_WIN32_URL/gail/1.22/gail-1.22.0.zip"
|
||||||
set_default GAIL_DEV_URL "$GNOME_WIN32_URL/gail/1.22/gail-dev-1.22.0.zip"
|
set_default GAIL_DEV_URL "$GNOME_WIN32_URL/gail/1.22/gail-dev-1.22.0.zip"
|
||||||
GCONF_VERSION="2.22.0"
|
|
||||||
set_default GCONF_URL "$GNOME_WIN32_URL/GConf/2.22/GConf_${GCONF_VERSION}-3_win32.zip"
|
|
||||||
set_default GCONF_DEV_URL "$GNOME_WIN32_URL/GConf/2.22/GConf-dev_${GCONF_VERSION}-3_win32.zip"
|
|
||||||
GDK_PIXBUF_VERSION=2.24.0
|
GDK_PIXBUF_VERSION=2.24.0
|
||||||
set_default GDK_PIXBUF_URL "$GNOME_WIN32_URL/gdk-pixbuf/2.24/gdk-pixbuf_${GDK_PIXBUF_VERSION}-1_win32.zip"
|
set_default GDK_PIXBUF_URL "$GNOME_WIN32_URL/gdk-pixbuf/2.24/gdk-pixbuf_${GDK_PIXBUF_VERSION}-1_win32.zip"
|
||||||
set_default GDK_PIXBUF_DEV_URL "$GNOME_WIN32_URL/gdk-pixbuf/2.24/gdk-pixbuf-dev_${GDK_PIXBUF_VERSION}-1_win32.zip"
|
set_default GDK_PIXBUF_DEV_URL "$GNOME_WIN32_URL/gdk-pixbuf/2.24/gdk-pixbuf-dev_${GDK_PIXBUF_VERSION}-1_win32.zip"
|
||||||
|
@ -52,7 +52,6 @@ Please set AQBANKING_WITH_QT to yes and rerun install.sh first."
|
|||||||
_ISOCODES_UDIR=`unix_path $ISOCODES_DIR`
|
_ISOCODES_UDIR=`unix_path $ISOCODES_DIR`
|
||||||
_MINGW_WFSDIR=`win_fs_path $MINGW_DIR`
|
_MINGW_WFSDIR=`win_fs_path $MINGW_DIR`
|
||||||
add_to_env $_UNZIP_UDIR/bin PATH # unzip
|
add_to_env $_UNZIP_UDIR/bin PATH # unzip
|
||||||
add_to_env $_GNOME_UDIR/bin PATH # gconftool-2
|
|
||||||
add_to_env $_EXETYPE_UDIR/bin PATH # exetype
|
add_to_env $_EXETYPE_UDIR/bin PATH # exetype
|
||||||
|
|
||||||
_PID=$$
|
_PID=$$
|
||||||
@ -87,7 +86,6 @@ function dist_gnome() {
|
|||||||
wget_unpacked $FONTCONFIG_URL $DOWNLOAD_DIR $DIST_DIR
|
wget_unpacked $FONTCONFIG_URL $DOWNLOAD_DIR $DIST_DIR
|
||||||
wget_unpacked $FREETYPE_URL $DOWNLOAD_DIR $DIST_DIR
|
wget_unpacked $FREETYPE_URL $DOWNLOAD_DIR $DIST_DIR
|
||||||
wget_unpacked $GAIL_URL $DOWNLOAD_DIR $DIST_DIR
|
wget_unpacked $GAIL_URL $DOWNLOAD_DIR $DIST_DIR
|
||||||
wget_unpacked $GCONF_URL $DOWNLOAD_DIR $DIST_DIR
|
|
||||||
wget_unpacked $GDK_PIXBUF_URL $DOWNLOAD_DIR $DIST_DIR
|
wget_unpacked $GDK_PIXBUF_URL $DOWNLOAD_DIR $DIST_DIR
|
||||||
wget_unpacked $GETTEXT_RUNTIME_URL $DOWNLOAD_DIR $DIST_DIR
|
wget_unpacked $GETTEXT_RUNTIME_URL $DOWNLOAD_DIR $DIST_DIR
|
||||||
wget_unpacked $GLIB_URL $DOWNLOAD_DIR $DIST_DIR
|
wget_unpacked $GLIB_URL $DOWNLOAD_DIR $DIST_DIR
|
||||||
@ -118,7 +116,6 @@ function dist_gnome() {
|
|||||||
|
|
||||||
cp -a $_GNOME_UDIR/bin/libxml*.dll $DIST_DIR/bin
|
cp -a $_GNOME_UDIR/bin/libxml*.dll $DIST_DIR/bin
|
||||||
|
|
||||||
rm -rf $DIST_UDIR/etc/gconf/gconf.xml.defaults/{desktop,schemas}
|
|
||||||
if [ -d $DIST_UDIR/lib/locale ] ; then
|
if [ -d $DIST_UDIR/lib/locale ] ; then
|
||||||
# Huh, is this removed in newer gtk?
|
# Huh, is this removed in newer gtk?
|
||||||
cp -a $DIST_UDIR/lib/locale $DIST_UDIR/share
|
cp -a $DIST_UDIR/lib/locale $DIST_UDIR/share
|
||||||
@ -233,8 +230,6 @@ function dist_gnucash() {
|
|||||||
mkdir -p $DIST_UDIR/bin
|
mkdir -p $DIST_UDIR/bin
|
||||||
cp $_MINGW_UDIR/bin/pthreadGC2.dll $DIST_UDIR/bin
|
cp $_MINGW_UDIR/bin/pthreadGC2.dll $DIST_UDIR/bin
|
||||||
cp -a $_INSTALL_UDIR/bin/* $DIST_UDIR/bin
|
cp -a $_INSTALL_UDIR/bin/* $DIST_UDIR/bin
|
||||||
mkdir -p $DIST_UDIR/etc/gconf/schemas
|
|
||||||
cp -a $_INSTALL_UDIR/etc/gconf/schemas/* $DIST_UDIR/etc/gconf/schemas
|
|
||||||
mkdir -p $DIST_UDIR/etc/gnucash
|
mkdir -p $DIST_UDIR/etc/gnucash
|
||||||
cp -a $_INSTALL_UDIR/etc/gnucash/* $DIST_UDIR/etc/gnucash
|
cp -a $_INSTALL_UDIR/etc/gnucash/* $DIST_UDIR/etc/gnucash
|
||||||
cp -a $_INSTALL_UDIR/lib/lib*.la $DIST_UDIR/bin
|
cp -a $_INSTALL_UDIR/lib/lib*.la $DIST_UDIR/bin
|
||||||
@ -263,19 +258,6 @@ function dist_gnucash() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function dist_finish() {
|
function dist_finish() {
|
||||||
for file in $DIST_UDIR/etc/gconf/schemas/*.schemas; do
|
|
||||||
echo -n "Installing $file ... "
|
|
||||||
gconftool-2 \
|
|
||||||
--config-source=xml:merged:${DIST_WFSDIR}/etc/gconf/gconf.xml.defaults \
|
|
||||||
--install-schema-file $file >/dev/null
|
|
||||||
echo "done"
|
|
||||||
done
|
|
||||||
gconftool-2 --shutdown
|
|
||||||
|
|
||||||
mv $DIST_UDIR/libexec/gconfd-2.exe $DIST_UDIR/bin
|
|
||||||
exetype $DIST_UDIR/bin/gconfd-2.exe windows
|
|
||||||
cp $_INSTALL_UDIR/bin/redirect.exe $DIST_UDIR/libexec/gconfd-2.exe
|
|
||||||
|
|
||||||
if [ "$AQBANKING_WITH_QT" = "yes" ]; then
|
if [ "$AQBANKING_WITH_QT" = "yes" ]; then
|
||||||
assert_one_dir ${DIST_UDIR}/lib/aqbanking/plugins/*/wizards
|
assert_one_dir ${DIST_UDIR}/lib/aqbanking/plugins/*/wizards
|
||||||
_qt3_wizard_path=`ls ${DIST_UDIR}/lib/aqbanking/plugins/*/wizards/qt3-wizard.exe`
|
_qt3_wizard_path=`ls ${DIST_UDIR}/lib/aqbanking/plugins/*/wizards/qt3-wizard.exe`
|
||||||
|
@ -502,9 +502,7 @@ function inst_gnome() {
|
|||||||
else
|
else
|
||||||
add_to_env pkg-config PKG_CONFIG
|
add_to_env pkg-config PKG_CONFIG
|
||||||
fi
|
fi
|
||||||
if quiet gconftool-2 --version &&
|
if quiet ${PKG_CONFIG} --atleast-version=${GTK_VERSION} gtk+-2.0 &&
|
||||||
quiet ${PKG_CONFIG} --atleast-version=${GCONF_VERSION} gconf-2.0 &&
|
|
||||||
quiet ${PKG_CONFIG} --atleast-version=${GTK_VERSION} gtk+-2.0 &&
|
|
||||||
quiet ${PKG_CONFIG} --atleast-version=${CAIRO_VERSION} cairo &&
|
quiet ${PKG_CONFIG} --atleast-version=${CAIRO_VERSION} cairo &&
|
||||||
quiet ${PKG_CONFIG} --exact-version=${LIBXML2_VERSION} libxml-2.0 &&
|
quiet ${PKG_CONFIG} --exact-version=${LIBXML2_VERSION} libxml-2.0 &&
|
||||||
quiet intltoolize --version
|
quiet intltoolize --version
|
||||||
@ -524,8 +522,6 @@ function inst_gnome() {
|
|||||||
wget_unpacked $FREETYPE_DEV_URL $DOWNLOAD_DIR $GNOME_DIR
|
wget_unpacked $FREETYPE_DEV_URL $DOWNLOAD_DIR $GNOME_DIR
|
||||||
wget_unpacked $GAIL_URL $DOWNLOAD_DIR $GNOME_DIR
|
wget_unpacked $GAIL_URL $DOWNLOAD_DIR $GNOME_DIR
|
||||||
wget_unpacked $GAIL_DEV_URL $DOWNLOAD_DIR $GNOME_DIR
|
wget_unpacked $GAIL_DEV_URL $DOWNLOAD_DIR $GNOME_DIR
|
||||||
wget_unpacked $GCONF_URL $DOWNLOAD_DIR $GNOME_DIR
|
|
||||||
wget_unpacked $GCONF_DEV_URL $DOWNLOAD_DIR $GNOME_DIR
|
|
||||||
wget_unpacked $GDK_PIXBUF_URL $DOWNLOAD_DIR $GNOME_DIR
|
wget_unpacked $GDK_PIXBUF_URL $DOWNLOAD_DIR $GNOME_DIR
|
||||||
wget_unpacked $GDK_PIXBUF_DEV_URL $DOWNLOAD_DIR $GNOME_DIR
|
wget_unpacked $GDK_PIXBUF_DEV_URL $DOWNLOAD_DIR $GNOME_DIR
|
||||||
wget_unpacked $GETTEXT_RUNTIME_URL $DOWNLOAD_DIR $GNOME_DIR
|
wget_unpacked $GETTEXT_RUNTIME_URL $DOWNLOAD_DIR $GNOME_DIR
|
||||||
@ -574,10 +570,6 @@ function inst_gnome() {
|
|||||||
qpushd $_GNOME_UDIR
|
qpushd $_GNOME_UDIR
|
||||||
assert_one_dir $TMP_UDIR/gtk-doc-*
|
assert_one_dir $TMP_UDIR/gtk-doc-*
|
||||||
mv $TMP_UDIR/gtk-doc-*/gtk-doc.m4 $_GNOME_UDIR/share/aclocal
|
mv $TMP_UDIR/gtk-doc-*/gtk-doc.m4 $_GNOME_UDIR/share/aclocal
|
||||||
if [ ! -f libexec/gconfd-2.console.exe ]; then
|
|
||||||
cp libexec/gconfd-2.exe libexec/gconfd-2.console.exe
|
|
||||||
fi
|
|
||||||
exetype libexec/gconfd-2.exe windows
|
|
||||||
for file in bin/intltool-*; do
|
for file in bin/intltool-*; do
|
||||||
sed '1s,!.*perl,!'"$INTLTOOL_PERL"',;s,/opt/gnu/bin/iconv,iconv,' $file > tmp
|
sed '1s,!.*perl,!'"$INTLTOOL_PERL"',;s,/opt/gnu/bin/iconv,iconv,' $file > tmp
|
||||||
mv tmp $file
|
mv tmp $file
|
||||||
@ -620,8 +612,6 @@ EOF
|
|||||||
#perl -pi.bak -e's!^Libs: !Libs: -L\${prefix}/bin !' *.pc
|
#perl -pi.bak -e's!^Libs: !Libs: -L\${prefix}/bin !' *.pc
|
||||||
qpopd
|
qpopd
|
||||||
|
|
||||||
quiet gconftool-2 --version || die "gnome not installed correctly"
|
|
||||||
quiet ${PKG_CONFIG} --atleast-version=${GCONF_VERSION} gconf-2.0 || die "gnome not installed correctly: no gconf-2.0 with atleast-version=${GCONF_VERSION}"
|
|
||||||
quiet ${PKG_CONFIG} --atleast-version=${GTK_VERSION} gtk+-2.0 || die "gnome not installed correctly: no gtk+-2.0 with atleast-version=${GTK_VERSION}"
|
quiet ${PKG_CONFIG} --atleast-version=${GTK_VERSION} gtk+-2.0 || die "gnome not installed correctly: no gtk+-2.0 with atleast-version=${GTK_VERSION}"
|
||||||
quiet ${PKG_CONFIG} --atleast-version=${CAIRO_VERSION} cairo || die "gnome not installed correctly: no cairo with atleast-version=${CAIRO_VERSION}"
|
quiet ${PKG_CONFIG} --atleast-version=${CAIRO_VERSION} cairo || die "gnome not installed correctly: no cairo with atleast-version=${CAIRO_VERSION}"
|
||||||
quiet ${PKG_CONFIG} --exact-version=${LIBXML2_VERSION} libxml-2.0 || die "gnome not installed correctly: no libxml-2.0 with exact-version=${LIBXML2_VERSION}"
|
quiet ${PKG_CONFIG} --exact-version=${LIBXML2_VERSION} libxml-2.0 || die "gnome not installed correctly: no libxml-2.0 with exact-version=${LIBXML2_VERSION}"
|
||||||
@ -1458,7 +1448,7 @@ function inst_gnucash() {
|
|||||||
|
|
||||||
# This function will be called by make_install.sh as well,
|
# This function will be called by make_install.sh as well,
|
||||||
# so do not regard variables from inst_* functions as set
|
# so do not regard variables from inst_* functions as set
|
||||||
# Parameters allowed: skip_scripts, skip_schemas
|
# Parameters allowed: skip_scripts
|
||||||
function make_install() {
|
function make_install() {
|
||||||
_BUILD_UDIR=`unix_path $BUILD_DIR`
|
_BUILD_UDIR=`unix_path $BUILD_DIR`
|
||||||
_INSTALL_UDIR=`unix_path $INSTALL_DIR`
|
_INSTALL_UDIR=`unix_path $INSTALL_DIR`
|
||||||
@ -1483,7 +1473,6 @@ function make_install() {
|
|||||||
|
|
||||||
for param in "$@"; do
|
for param in "$@"; do
|
||||||
[ "$param" = "skip_scripts" ] && _skip_scripts=1
|
[ "$param" = "skip_scripts" ] && _skip_scripts=1
|
||||||
[ "$param" = "skip_schemas" ] && _skip_schemas=1
|
|
||||||
done
|
done
|
||||||
|
|
||||||
make install
|
make install
|
||||||
@ -1511,17 +1500,6 @@ function make_install() {
|
|||||||
done
|
done
|
||||||
qpopd
|
qpopd
|
||||||
|
|
||||||
if [ -z $_skip_schemas ]; then
|
|
||||||
qpushd $_INSTALL_UDIR/etc/gconf/schemas
|
|
||||||
for file in *.schemas; do
|
|
||||||
gconftool-2 \
|
|
||||||
--config-source=xml:merged:${_INSTALL_WFSDIR}/etc/gconf/gconf.xml.defaults \
|
|
||||||
--install-schema-file $file >/dev/null
|
|
||||||
done
|
|
||||||
gconftool-2 --shutdown
|
|
||||||
qpopd
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z $_skip_scripts ]; then
|
if [ -z $_skip_scripts ]; then
|
||||||
# Create a startup script that works without the msys shell
|
# Create a startup script that works without the msys shell
|
||||||
# If you make any changes here, you should probably also change
|
# If you make any changes here, you should probably also change
|
||||||
|
@ -33,7 +33,6 @@ AM_CPPFLAGS = \
|
|||||||
${GUILE_INCS} \
|
${GUILE_INCS} \
|
||||||
${PYTHON_CPPFLAGS} \
|
${PYTHON_CPPFLAGS} \
|
||||||
${GLIB_CFLAGS} \
|
${GLIB_CFLAGS} \
|
||||||
${GCONF_CFLAGS} \
|
|
||||||
${GTK_CFLAGS}
|
${GTK_CFLAGS}
|
||||||
|
|
||||||
libgncmod_app_utils_la_SOURCES = \
|
libgncmod_app_utils_la_SOURCES = \
|
||||||
@ -52,7 +51,6 @@ libgncmod_app_utils_la_SOURCES = \
|
|||||||
gnc-entry-quickfill.c \
|
gnc-entry-quickfill.c \
|
||||||
gnc-euro.c \
|
gnc-euro.c \
|
||||||
gnc-exp-parser.c \
|
gnc-exp-parser.c \
|
||||||
gnc-gconf-utils.c \
|
|
||||||
gnc-gettext-util.c \
|
gnc-gettext-util.c \
|
||||||
gnc-gsettings.c \
|
gnc-gsettings.c \
|
||||||
gnc-helpers.c \
|
gnc-helpers.c \
|
||||||
@ -79,7 +77,6 @@ gncinclude_HEADERS = \
|
|||||||
gnc-entry-quickfill.h \
|
gnc-entry-quickfill.h \
|
||||||
gnc-euro.h \
|
gnc-euro.h \
|
||||||
gnc-exp-parser.h \
|
gnc-exp-parser.h \
|
||||||
gnc-gconf-utils.h \
|
|
||||||
gnc-gettext-util.h \
|
gnc-gettext-util.h \
|
||||||
gnc-gsettings.h \
|
gnc-gsettings.h \
|
||||||
gnc-help-utils.h \
|
gnc-help-utils.h \
|
||||||
@ -98,7 +95,6 @@ libgncmod_app_utils_la_LIBADD = \
|
|||||||
${top_builddir}/src/engine/libgncmod-engine.la \
|
${top_builddir}/src/engine/libgncmod-engine.la \
|
||||||
${top_builddir}/src/core-utils/libgnc-core-utils.la \
|
${top_builddir}/src/core-utils/libgnc-core-utils.la \
|
||||||
${top_builddir}/src/libqof/qof/libgnc-qof.la \
|
${top_builddir}/src/libqof/qof/libgnc-qof.la \
|
||||||
${GCONF_LIBS} \
|
|
||||||
${GTK_LIBS} \
|
${GTK_LIBS} \
|
||||||
${GUILE_LIBS} \
|
${GUILE_LIBS} \
|
||||||
${GLIB_LIBS}
|
${GLIB_LIBS}
|
||||||
|
@ -1,962 +0,0 @@
|
|||||||
/********************************************************************\
|
|
||||||
* gnc-gconf-utils.c -- utility functions for storing/retrieving *
|
|
||||||
* data in the GConf database for GnuCash *
|
|
||||||
* Copyright (C) 2005,2006 David Hampton <hampton@employees.org> *
|
|
||||||
* *
|
|
||||||
* This program is free software; you can redistribute it and/or *
|
|
||||||
* modify it under the terms of the GNU General Public License as *
|
|
||||||
* published by the Free Software Foundation; either version 2 of *
|
|
||||||
* the License, or (at your option) any later version. *
|
|
||||||
* *
|
|
||||||
* This program is distributed in the hope that it will be useful, *
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
||||||
* GNU General Public License for more details. *
|
|
||||||
* *
|
|
||||||
* You should have received a copy of the GNU General Public License*
|
|
||||||
* along with this program; if not, contact: *
|
|
||||||
* *
|
|
||||||
* Free Software Foundation Voice: +1-617-542-5942 *
|
|
||||||
* 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
|
|
||||||
* Boston, MA 02110-1301, USA gnu@gnu.org *
|
|
||||||
* *
|
|
||||||
\********************************************************************/
|
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include "gnc-gconf-utils.h"
|
|
||||||
#include "gnc-prefs.h"
|
|
||||||
|
|
||||||
#define CLIENT_TAG "%s-%s-client"
|
|
||||||
#define NOTIFY_TAG "%s-%s-notify_id"
|
|
||||||
#define GCONF_PREFIX "/apps/gnucash"
|
|
||||||
|
|
||||||
static GConfClient *our_client = NULL;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/************************************************************/
|
|
||||||
/* Enum Utilities */
|
|
||||||
/************************************************************/
|
|
||||||
|
|
||||||
const gchar *
|
|
||||||
gnc_enum_to_nick(GType type,
|
|
||||||
gint value)
|
|
||||||
{
|
|
||||||
GEnumClass *enum_class;
|
|
||||||
GEnumValue *enum_value;
|
|
||||||
|
|
||||||
/* Lookup the enum in the glib type system */
|
|
||||||
enum_class = g_type_class_ref (type);
|
|
||||||
if (!enum_class)
|
|
||||||
{
|
|
||||||
/* g_type_class_ref has already printed a warning. */
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
enum_value = g_enum_get_value (enum_class, value);
|
|
||||||
if (!enum_value)
|
|
||||||
{
|
|
||||||
/* Use the first item in the enum */
|
|
||||||
enum_value = g_enum_get_value (enum_class, 0);
|
|
||||||
}
|
|
||||||
return enum_value->value_nick;
|
|
||||||
}
|
|
||||||
|
|
||||||
gint
|
|
||||||
gnc_enum_from_nick(GType type,
|
|
||||||
const gchar *name,
|
|
||||||
gint default_value)
|
|
||||||
{
|
|
||||||
GEnumClass *enum_class;
|
|
||||||
GEnumValue *enum_value;
|
|
||||||
gchar *alt_name, *ptr;
|
|
||||||
|
|
||||||
if (name == NULL)
|
|
||||||
return default_value;
|
|
||||||
|
|
||||||
/* Lookup the enum class in the glib type system */
|
|
||||||
enum_class = g_type_class_ref (type);
|
|
||||||
if (!enum_class)
|
|
||||||
{
|
|
||||||
/* g_type_class_ref has already printed a warning. */
|
|
||||||
return default_value;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Lookup the specified enum in the class */
|
|
||||||
enum_value = g_enum_get_value_by_nick(enum_class, name);
|
|
||||||
if (enum_value)
|
|
||||||
return enum_value->value;
|
|
||||||
|
|
||||||
/* Flip '-' and '_' and try again */
|
|
||||||
alt_name = g_strdup(name);
|
|
||||||
if ((ptr = strchr(alt_name, '-')) != NULL)
|
|
||||||
{
|
|
||||||
do
|
|
||||||
{
|
|
||||||
*ptr++ = '_';
|
|
||||||
}
|
|
||||||
while ((ptr = strchr(ptr, '-')) != NULL);
|
|
||||||
}
|
|
||||||
else if ((ptr = strchr(alt_name, '_')) != NULL)
|
|
||||||
{
|
|
||||||
do
|
|
||||||
{
|
|
||||||
*ptr++ = '-';
|
|
||||||
}
|
|
||||||
while ((ptr = strchr(ptr, '_')) != NULL);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
g_free(alt_name);
|
|
||||||
return default_value;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Lookup the specified enum in the class */
|
|
||||||
enum_value = g_enum_get_value_by_nick(enum_class, alt_name);
|
|
||||||
g_free(alt_name);
|
|
||||||
if (enum_value)
|
|
||||||
return enum_value->value;
|
|
||||||
return default_value;
|
|
||||||
}
|
|
||||||
|
|
||||||
/************************************************************/
|
|
||||||
/* Notification of "General" Section Changes */
|
|
||||||
/************************************************************/
|
|
||||||
|
|
||||||
static GOnce gcb_init_once = G_ONCE_INIT;
|
|
||||||
static GHashTable *gcb_callback_hash = NULL;
|
|
||||||
static GHookList *gcb_final_hook_list = NULL;
|
|
||||||
|
|
||||||
static gpointer
|
|
||||||
gcb_init (gpointer unused)
|
|
||||||
{
|
|
||||||
gcb_callback_hash = g_hash_table_new(g_str_hash, g_str_equal);
|
|
||||||
|
|
||||||
gcb_final_hook_list = g_malloc(sizeof(GHookList));
|
|
||||||
g_hook_list_init(gcb_final_hook_list, sizeof(GHook));
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
gcb_call_hook (GHook *hook, gpointer data)
|
|
||||||
{
|
|
||||||
((GFunc)hook->func)(data, hook->data);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
gnc_gconf_general_changed (GConfClient *client,
|
|
||||||
guint cnxn_id,
|
|
||||||
GConfEntry *entry,
|
|
||||||
gpointer data)
|
|
||||||
{
|
|
||||||
const gchar *key, *key_tail;
|
|
||||||
GHookList *hook_list;
|
|
||||||
|
|
||||||
g_once(&gcb_init_once, gcb_init, NULL);
|
|
||||||
|
|
||||||
key = gconf_entry_get_key(entry);
|
|
||||||
key_tail = strrchr(key, '/');
|
|
||||||
if (key_tail != NULL)
|
|
||||||
{
|
|
||||||
key_tail++;
|
|
||||||
}
|
|
||||||
if (key_tail == NULL)
|
|
||||||
{
|
|
||||||
/* Should never happen. */
|
|
||||||
g_warning("Malformed key %s:", key);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
hook_list = g_hash_table_lookup(gcb_callback_hash, key_tail);
|
|
||||||
if (hook_list != NULL)
|
|
||||||
g_hook_list_marshal(hook_list, TRUE, gcb_call_hook, entry);
|
|
||||||
g_hook_list_invoke(gcb_final_hook_list, TRUE);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void
|
|
||||||
gnc_gconf_general_register_cb (const gchar *key,
|
|
||||||
GncGconfGeneralCb func,
|
|
||||||
gpointer user_data)
|
|
||||||
{
|
|
||||||
GHookList *hook_list;
|
|
||||||
GHook *hook;
|
|
||||||
|
|
||||||
g_once(&gcb_init_once, gcb_init, NULL);
|
|
||||||
hook_list = g_hash_table_lookup(gcb_callback_hash, key);
|
|
||||||
if (hook_list == NULL)
|
|
||||||
{
|
|
||||||
hook_list = g_malloc(sizeof(GHookList));
|
|
||||||
g_hook_list_init(hook_list, sizeof(GHook));
|
|
||||||
g_hash_table_insert(gcb_callback_hash, (gpointer)key, hook_list);
|
|
||||||
}
|
|
||||||
|
|
||||||
hook = g_hook_find_func_data(hook_list, TRUE, func, user_data);
|
|
||||||
if (hook != NULL)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
hook = g_hook_alloc(hook_list);
|
|
||||||
hook->func = func;
|
|
||||||
hook->data = user_data;
|
|
||||||
g_hook_append(hook_list, hook);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void
|
|
||||||
gnc_gconf_general_remove_cb (const gchar *key,
|
|
||||||
GncGconfGeneralCb func,
|
|
||||||
gpointer user_data)
|
|
||||||
{
|
|
||||||
GHookList *hook_list;
|
|
||||||
GHook *hook;
|
|
||||||
|
|
||||||
g_once(&gcb_init_once, gcb_init, NULL);
|
|
||||||
hook_list = g_hash_table_lookup(gcb_callback_hash, key);
|
|
||||||
if (hook_list == NULL)
|
|
||||||
return;
|
|
||||||
hook = g_hook_find_func_data(hook_list, TRUE, func, user_data);
|
|
||||||
if (hook == NULL)
|
|
||||||
return;
|
|
||||||
|
|
||||||
g_hook_destroy_link(hook_list, hook);
|
|
||||||
if (hook_list->hooks == NULL)
|
|
||||||
{
|
|
||||||
g_hash_table_remove(gcb_callback_hash, key);
|
|
||||||
g_free(hook_list);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void
|
|
||||||
gnc_gconf_general_register_any_cb (GncGconfGeneralAnyCb func,
|
|
||||||
gpointer user_data)
|
|
||||||
{
|
|
||||||
GHook *hook;
|
|
||||||
|
|
||||||
g_once(&gcb_init_once, gcb_init, NULL);
|
|
||||||
hook = g_hook_find_func_data(gcb_final_hook_list, TRUE, func, user_data);
|
|
||||||
if (hook != NULL)
|
|
||||||
return;
|
|
||||||
|
|
||||||
hook = g_hook_alloc(gcb_final_hook_list);
|
|
||||||
hook->func = func;
|
|
||||||
hook->data = user_data;
|
|
||||||
g_hook_append(gcb_final_hook_list, hook);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void
|
|
||||||
gnc_gconf_general_remove_any_cb (GncGconfGeneralAnyCb func,
|
|
||||||
gpointer user_data)
|
|
||||||
{
|
|
||||||
GHook *hook;
|
|
||||||
|
|
||||||
g_once(&gcb_init_once, gcb_init, NULL);
|
|
||||||
hook = g_hook_find_func_data(gcb_final_hook_list, TRUE, func, user_data);
|
|
||||||
if (hook == NULL)
|
|
||||||
return;
|
|
||||||
|
|
||||||
g_hook_unref(gcb_final_hook_list, hook);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/************************************************************/
|
|
||||||
/* Gconf Utilities */
|
|
||||||
/************************************************************/
|
|
||||||
|
|
||||||
char *
|
|
||||||
gnc_gconf_section_name (const char *name)
|
|
||||||
{
|
|
||||||
if (name == NULL)
|
|
||||||
{
|
|
||||||
/* Need to return a newly allocated string */
|
|
||||||
return g_strdup(GCONF_PREFIX);
|
|
||||||
}
|
|
||||||
if (*name == '/')
|
|
||||||
{
|
|
||||||
/* Need to return a newly allocated string */
|
|
||||||
return g_strdup(name);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* This could (should?) be accomplished with a call to
|
|
||||||
* gnome_gconf_get_app_settings_relative(), but that would introduce
|
|
||||||
* a new library dependancy, even though its not a gui library. In
|
|
||||||
* order to keep this file completely "gnome-free" this approach was
|
|
||||||
* used.
|
|
||||||
*/
|
|
||||||
return g_strjoin("/", GCONF_PREFIX, name, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
char *
|
|
||||||
gnc_gconf_schema_section_name (const char *name)
|
|
||||||
{
|
|
||||||
if (strncmp(name, "/schemas", sizeof("/schemas")) == 0)
|
|
||||||
{
|
|
||||||
/* Need to return a newly allocated string */
|
|
||||||
return g_strdup(name);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* This could (should?) be accomplished with a call to
|
|
||||||
* gnome_gconf_get_app_settings_relative(), but that would introduce
|
|
||||||
* a new library dependancy, even though its not a gui library. In
|
|
||||||
* order to keep this file completely "gnome-free" this approach was
|
|
||||||
* used.
|
|
||||||
*/
|
|
||||||
return g_strconcat("/schemas", GCONF_PREFIX, "/", name, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
static gchar *
|
|
||||||
gnc_gconf_make_key (const gchar *section, const gchar *name)
|
|
||||||
{
|
|
||||||
gchar *section_path, *key;
|
|
||||||
|
|
||||||
g_assert ((section != NULL) || (name != NULL));
|
|
||||||
|
|
||||||
if (section == NULL)
|
|
||||||
{
|
|
||||||
if (*name == '/')
|
|
||||||
return g_strdup(name);
|
|
||||||
return gnc_gconf_section_name(name);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (name == NULL)
|
|
||||||
{
|
|
||||||
if (*section == '/')
|
|
||||||
return g_strdup(section);
|
|
||||||
return gnc_gconf_section_name(section);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (*section == '/')
|
|
||||||
{
|
|
||||||
if (*name == '/')
|
|
||||||
return g_strjoin(NULL, section, name, NULL);
|
|
||||||
return g_strjoin("/", section, name, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
section_path = gnc_gconf_section_name(section);
|
|
||||||
key = g_strjoin("/", section_path, name, NULL);
|
|
||||||
g_free(section_path);
|
|
||||||
return key;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static gchar *
|
|
||||||
gnc_gconf_make_schema_key (const gchar *section, const gchar *name)
|
|
||||||
{
|
|
||||||
gchar *intermediate, *key;
|
|
||||||
|
|
||||||
g_assert ((section != NULL) || (name != NULL));
|
|
||||||
|
|
||||||
intermediate = gnc_gconf_make_key(section, name);
|
|
||||||
key = g_strconcat("/schemas", intermediate, NULL);
|
|
||||||
g_free(intermediate);
|
|
||||||
return key;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/** Either propagate an error between data structures, or display the
|
|
||||||
* error to the user. This is a helper function called by all of the
|
|
||||||
* load functions in this file. It checks to see if the function
|
|
||||||
* that called in to this file wants to handle the error, or if this
|
|
||||||
* function should display a default error message.
|
|
||||||
*
|
|
||||||
* @internal
|
|
||||||
*
|
|
||||||
* @param key The name of the key that failed to load.
|
|
||||||
*
|
|
||||||
* @param caller_error A pointer to where the caller of this file
|
|
||||||
* would like the error stored. If NULL, then the caller doesn't
|
|
||||||
* want to handle the error.
|
|
||||||
*
|
|
||||||
* @param error A pointer to the error that this file received from
|
|
||||||
* gconf.
|
|
||||||
*/
|
|
||||||
static void
|
|
||||||
gnc_gconf_load_error (const gchar *key,
|
|
||||||
GError **caller_error,
|
|
||||||
GError *error)
|
|
||||||
{
|
|
||||||
if (caller_error)
|
|
||||||
{
|
|
||||||
g_propagate_error(caller_error, error);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
printf("Failed to load key %s: %s", key, error->message);
|
|
||||||
g_error_free(error);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/** Either propagate an error between data structures, or display the
|
|
||||||
* error to the user. This is a helper function called by all of the
|
|
||||||
* save functions in this file. It checks to see if the function
|
|
||||||
* that called in to this file wants to handle the error, or if this
|
|
||||||
* function should display a default error message.
|
|
||||||
*
|
|
||||||
* @internal
|
|
||||||
*
|
|
||||||
* @param key The name of the key that failed to load.
|
|
||||||
*
|
|
||||||
* @param caller_error A pointer to where the caller of this file
|
|
||||||
* would like the error stored. If NULL, then the caller doesn't
|
|
||||||
* want to handle the error.
|
|
||||||
*
|
|
||||||
* @param error A pointer to the error that this file received from
|
|
||||||
* gconf.
|
|
||||||
*/
|
|
||||||
static void
|
|
||||||
gnc_gconf_save_error (const gchar *key,
|
|
||||||
GError **caller_error,
|
|
||||||
GError *error)
|
|
||||||
{
|
|
||||||
if (caller_error)
|
|
||||||
{
|
|
||||||
g_propagate_error(caller_error, error);
|
|
||||||
}
|
|
||||||
else if (error)
|
|
||||||
{
|
|
||||||
printf("Failed to save key %s: %s", key, error->message);
|
|
||||||
g_error_free(error);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
printf("Failed to save key %s: %s", key, "Unknown error");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
gboolean
|
|
||||||
gnc_gconf_get_bool (const gchar *section,
|
|
||||||
const gchar *name,
|
|
||||||
GError **caller_error)
|
|
||||||
{
|
|
||||||
GError *error = NULL;
|
|
||||||
gboolean value;
|
|
||||||
gchar *key;
|
|
||||||
|
|
||||||
if (our_client == NULL)
|
|
||||||
our_client = gconf_client_get_default();
|
|
||||||
|
|
||||||
key = gnc_gconf_make_key(section, name);
|
|
||||||
value = gconf_client_get_bool(our_client, key, &error);
|
|
||||||
if (error)
|
|
||||||
{
|
|
||||||
gnc_gconf_load_error(key, caller_error, error);
|
|
||||||
}
|
|
||||||
g_free(key);
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
|
|
||||||
gboolean
|
|
||||||
gnc_gconf_get_bool_no_error (const gchar *section,
|
|
||||||
const gchar *name)
|
|
||||||
{
|
|
||||||
return gnc_gconf_get_bool(section, name, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
gnc_gconf_set_bool (const gchar *section,
|
|
||||||
const gchar *name,
|
|
||||||
const gboolean value,
|
|
||||||
GError **caller_error)
|
|
||||||
{
|
|
||||||
GError *error = NULL;
|
|
||||||
gchar *key;
|
|
||||||
|
|
||||||
if (our_client == NULL)
|
|
||||||
our_client = gconf_client_get_default();
|
|
||||||
|
|
||||||
/* Remember whether the column width */
|
|
||||||
key = gnc_gconf_make_key(section, name);
|
|
||||||
if (!gconf_client_set_bool(our_client, key, value, &error))
|
|
||||||
{
|
|
||||||
gnc_gconf_save_error(key, caller_error, error);
|
|
||||||
}
|
|
||||||
g_free(key);
|
|
||||||
}
|
|
||||||
|
|
||||||
gint
|
|
||||||
gnc_gconf_get_int (const gchar *section,
|
|
||||||
const gchar *name,
|
|
||||||
GError **caller_error)
|
|
||||||
{
|
|
||||||
GError *error = NULL;
|
|
||||||
gint value;
|
|
||||||
gchar *key;
|
|
||||||
|
|
||||||
if (our_client == NULL)
|
|
||||||
our_client = gconf_client_get_default();
|
|
||||||
|
|
||||||
key = gnc_gconf_make_key(section, name);
|
|
||||||
value = gconf_client_get_int(our_client, key, &error);
|
|
||||||
if (error)
|
|
||||||
{
|
|
||||||
gnc_gconf_load_error(key, caller_error, error);
|
|
||||||
}
|
|
||||||
g_free(key);
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
gnc_gconf_set_int (const gchar *section,
|
|
||||||
const gchar *name,
|
|
||||||
const gint value,
|
|
||||||
GError **caller_error)
|
|
||||||
{
|
|
||||||
GError *error = NULL;
|
|
||||||
gchar *key;
|
|
||||||
|
|
||||||
if (our_client == NULL)
|
|
||||||
our_client = gconf_client_get_default();
|
|
||||||
|
|
||||||
/* Remember whether the column width */
|
|
||||||
key = gnc_gconf_make_key(section, name);
|
|
||||||
if (!gconf_client_set_int(our_client, key, value, &error))
|
|
||||||
{
|
|
||||||
gnc_gconf_save_error(key, caller_error, error);
|
|
||||||
}
|
|
||||||
g_free(key);
|
|
||||||
}
|
|
||||||
|
|
||||||
gdouble
|
|
||||||
gnc_gconf_get_float (const gchar *section,
|
|
||||||
const gchar *name,
|
|
||||||
GError **caller_error)
|
|
||||||
{
|
|
||||||
GError *error = NULL;
|
|
||||||
gdouble value;
|
|
||||||
gchar *key;
|
|
||||||
|
|
||||||
if (our_client == NULL)
|
|
||||||
our_client = gconf_client_get_default();
|
|
||||||
|
|
||||||
key = gnc_gconf_make_key(section, name);
|
|
||||||
value = gconf_client_get_float(our_client, key, &error);
|
|
||||||
if (error)
|
|
||||||
{
|
|
||||||
gnc_gconf_load_error(key, caller_error, error);
|
|
||||||
}
|
|
||||||
g_free(key);
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
gnc_gconf_set_float (const gchar *section,
|
|
||||||
const gchar *name,
|
|
||||||
const gdouble value,
|
|
||||||
GError **caller_error)
|
|
||||||
{
|
|
||||||
GError *error = NULL;
|
|
||||||
gchar *key;
|
|
||||||
|
|
||||||
if (our_client == NULL)
|
|
||||||
our_client = gconf_client_get_default();
|
|
||||||
|
|
||||||
/* Remember whether the column width */
|
|
||||||
key = gnc_gconf_make_key(section, name);
|
|
||||||
if (!gconf_client_set_float(our_client, key, value, &error))
|
|
||||||
{
|
|
||||||
gnc_gconf_save_error(key, caller_error, error);
|
|
||||||
}
|
|
||||||
g_free(key);
|
|
||||||
}
|
|
||||||
|
|
||||||
gchar *
|
|
||||||
gnc_gconf_get_string (const gchar *section,
|
|
||||||
const gchar *name,
|
|
||||||
GError **caller_error)
|
|
||||||
{
|
|
||||||
GError *error = NULL;
|
|
||||||
gchar *value;
|
|
||||||
gchar *key;
|
|
||||||
|
|
||||||
if (our_client == NULL)
|
|
||||||
our_client = gconf_client_get_default();
|
|
||||||
|
|
||||||
key = gnc_gconf_make_key(section, name);
|
|
||||||
value = gconf_client_get_string(our_client, key, &error);
|
|
||||||
if (error)
|
|
||||||
{
|
|
||||||
gnc_gconf_load_error(key, caller_error, error);
|
|
||||||
}
|
|
||||||
g_free(key);
|
|
||||||
|
|
||||||
if (value && strlen(value) == 0)
|
|
||||||
{
|
|
||||||
g_free(value);
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
gnc_gconf_set_string (const gchar *section,
|
|
||||||
const gchar *name,
|
|
||||||
const gchar *value,
|
|
||||||
GError **caller_error)
|
|
||||||
{
|
|
||||||
GError *error = NULL;
|
|
||||||
gchar *key;
|
|
||||||
|
|
||||||
if (our_client == NULL)
|
|
||||||
our_client = gconf_client_get_default();
|
|
||||||
|
|
||||||
key = gnc_gconf_make_key(section, name);
|
|
||||||
if (!gconf_client_set_string(our_client, key, value, &error))
|
|
||||||
{
|
|
||||||
gnc_gconf_save_error(key, caller_error, error);
|
|
||||||
}
|
|
||||||
g_free(key);
|
|
||||||
}
|
|
||||||
|
|
||||||
GSList *
|
|
||||||
gnc_gconf_get_list (const gchar *section,
|
|
||||||
const gchar *name,
|
|
||||||
GConfValueType list_type,
|
|
||||||
GError **caller_error)
|
|
||||||
{
|
|
||||||
GError *error = NULL;
|
|
||||||
GSList *value;
|
|
||||||
gchar *key;
|
|
||||||
|
|
||||||
if (our_client == NULL)
|
|
||||||
our_client = gconf_client_get_default();
|
|
||||||
|
|
||||||
key = gnc_gconf_make_key(section, name);
|
|
||||||
value = gconf_client_get_list(our_client, key, list_type, &error);
|
|
||||||
if (error)
|
|
||||||
{
|
|
||||||
gnc_gconf_load_error(key, caller_error, error);
|
|
||||||
}
|
|
||||||
g_free(key);
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
gnc_gconf_set_list (const gchar *section,
|
|
||||||
const gchar *name,
|
|
||||||
GConfValueType list_type,
|
|
||||||
GSList *value,
|
|
||||||
GError **caller_error)
|
|
||||||
{
|
|
||||||
GError *error = NULL;
|
|
||||||
gchar *key;
|
|
||||||
|
|
||||||
if (our_client == NULL)
|
|
||||||
our_client = gconf_client_get_default();
|
|
||||||
|
|
||||||
key = gnc_gconf_make_key(section, name);
|
|
||||||
if (!gconf_client_set_list(our_client, key, list_type, value, &error))
|
|
||||||
{
|
|
||||||
gnc_gconf_save_error(key, caller_error, error);
|
|
||||||
}
|
|
||||||
g_free(key);
|
|
||||||
}
|
|
||||||
|
|
||||||
GConfSchema *
|
|
||||||
gnc_gconf_get_schema (const gchar *section,
|
|
||||||
const gchar *name,
|
|
||||||
GError **caller_error)
|
|
||||||
{
|
|
||||||
GError *error = NULL;
|
|
||||||
GConfSchema *value;
|
|
||||||
gchar *key;
|
|
||||||
|
|
||||||
if (our_client == NULL)
|
|
||||||
our_client = gconf_client_get_default();
|
|
||||||
|
|
||||||
key = gnc_gconf_make_key(section, name);
|
|
||||||
value = gconf_client_get_schema(our_client, key, &error);
|
|
||||||
if (error)
|
|
||||||
{
|
|
||||||
gnc_gconf_load_error(key, caller_error, error);
|
|
||||||
}
|
|
||||||
g_free(key);
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
|
|
||||||
GSList *
|
|
||||||
gnc_gconf_client_all_entries (const gchar *name)
|
|
||||||
{
|
|
||||||
GError *error = NULL;
|
|
||||||
GSList *value;
|
|
||||||
gchar *section;
|
|
||||||
|
|
||||||
if (our_client == NULL)
|
|
||||||
our_client = gconf_client_get_default();
|
|
||||||
|
|
||||||
section = gnc_gconf_section_name(name);
|
|
||||||
value = gconf_client_all_entries(our_client, section, &error);
|
|
||||||
g_free(section);
|
|
||||||
if (error != NULL)
|
|
||||||
{
|
|
||||||
printf("Failed to get list of all gconf keys: %s", error->message);
|
|
||||||
g_error_free(error);
|
|
||||||
}
|
|
||||||
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
|
||||||
gnc_gconf_unset (const gchar *section,
|
|
||||||
const gchar *name,
|
|
||||||
GError **caller_error)
|
|
||||||
{
|
|
||||||
GError *error = NULL;
|
|
||||||
gchar *key;
|
|
||||||
|
|
||||||
if (our_client == NULL)
|
|
||||||
our_client = gconf_client_get_default();
|
|
||||||
|
|
||||||
key = gnc_gconf_make_key(section, name);
|
|
||||||
if (!gconf_client_unset(our_client, key, &error))
|
|
||||||
{
|
|
||||||
if (caller_error)
|
|
||||||
{
|
|
||||||
g_propagate_error(caller_error, error);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
printf("Failed to unset key %s: %s", key, error->message);
|
|
||||||
g_error_free(error);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
g_free(key);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void
|
|
||||||
gnc_gconf_unset_dir (const gchar *section,
|
|
||||||
GError **caller_error)
|
|
||||||
{
|
|
||||||
GError *error = NULL;
|
|
||||||
GSList *entries, *tmp;
|
|
||||||
const gchar *key;
|
|
||||||
gchar *dir_key;
|
|
||||||
|
|
||||||
if (our_client == NULL)
|
|
||||||
our_client = gconf_client_get_default();
|
|
||||||
|
|
||||||
dir_key = gnc_gconf_make_key(section, NULL);
|
|
||||||
entries = gconf_client_all_entries(our_client, dir_key, &error);
|
|
||||||
g_free(dir_key);
|
|
||||||
if (error)
|
|
||||||
{
|
|
||||||
if (caller_error)
|
|
||||||
{
|
|
||||||
g_propagate_error(caller_error, error);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
printf("Failed to get directory entries for key %s: %s",
|
|
||||||
dir_key, error->message);
|
|
||||||
g_error_free(error);
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
for (tmp = entries; tmp; tmp = g_slist_next(tmp))
|
|
||||||
{
|
|
||||||
key = gconf_entry_get_key(tmp->data);
|
|
||||||
if (!gconf_client_unset(our_client, key, &error))
|
|
||||||
{
|
|
||||||
if (caller_error)
|
|
||||||
{
|
|
||||||
g_propagate_error(caller_error, error);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
printf("Failed to unset key %s: %s", key, error->message);
|
|
||||||
g_error_free(error);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
g_slist_foreach(entries, (GFunc)gconf_entry_free, NULL);
|
|
||||||
g_slist_free(entries);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void
|
|
||||||
gnc_gconf_suggest_sync (void)
|
|
||||||
{
|
|
||||||
GError *error = NULL;
|
|
||||||
|
|
||||||
if (our_client == NULL)
|
|
||||||
our_client = gconf_client_get_default();
|
|
||||||
|
|
||||||
gconf_client_suggest_sync(our_client, &error);
|
|
||||||
if (error != NULL)
|
|
||||||
{
|
|
||||||
printf("Failed to sync gconf: %s", error->message);
|
|
||||||
g_error_free(error);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void
|
|
||||||
gnc_gconf_add_notification (GObject *object,
|
|
||||||
const gchar *section,
|
|
||||||
GConfClientNotifyFunc callback,
|
|
||||||
const gchar *whoami)
|
|
||||||
{
|
|
||||||
GConfClient *client;
|
|
||||||
GError *error = NULL;
|
|
||||||
gchar *path, *client_tag, *notify_tag;
|
|
||||||
guint id;
|
|
||||||
|
|
||||||
g_return_if_fail(G_IS_OBJECT(object));
|
|
||||||
g_return_if_fail(callback != NULL);
|
|
||||||
g_return_if_fail(whoami != NULL);
|
|
||||||
|
|
||||||
client = gconf_client_get_default();
|
|
||||||
path = gnc_gconf_section_name(section);
|
|
||||||
|
|
||||||
/*
|
|
||||||
* First we have to add the directory...
|
|
||||||
*/
|
|
||||||
gconf_client_add_dir(client, path, GCONF_CLIENT_PRELOAD_ONELEVEL, &error);
|
|
||||||
if (error != NULL)
|
|
||||||
{
|
|
||||||
printf("Failed to add history section to watched directories in gconf: %s", error->message);
|
|
||||||
g_error_free(error);
|
|
||||||
g_object_unref(client);
|
|
||||||
g_free(path);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Then we can add the notification callback.
|
|
||||||
*/
|
|
||||||
id = gconf_client_notify_add(client, path, callback,
|
|
||||||
object, NULL, &error);
|
|
||||||
if (error != NULL)
|
|
||||||
{
|
|
||||||
printf("Failed to set gconf notify for history section: %s", error->message);
|
|
||||||
gconf_client_remove_dir(client, path, NULL);
|
|
||||||
g_error_free(error);
|
|
||||||
g_object_unref(client);
|
|
||||||
g_free(path);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Save the values needed to undo this later.
|
|
||||||
*/
|
|
||||||
client_tag = g_strdup_printf(CLIENT_TAG, section ? section : "", whoami);
|
|
||||||
notify_tag = g_strdup_printf(NOTIFY_TAG, section ? section : "", whoami);
|
|
||||||
g_object_set_data(object, client_tag, client);
|
|
||||||
g_object_set_data(object, notify_tag, GUINT_TO_POINTER(id));
|
|
||||||
g_free(notify_tag);
|
|
||||||
g_free(client_tag);
|
|
||||||
g_free(path);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
guint
|
|
||||||
gnc_gconf_add_anon_notification (const gchar *section,
|
|
||||||
GConfClientNotifyFunc callback,
|
|
||||||
gpointer data)
|
|
||||||
{
|
|
||||||
GConfClient *client;
|
|
||||||
GError *error = NULL;
|
|
||||||
gchar *path;
|
|
||||||
guint id;
|
|
||||||
|
|
||||||
g_return_val_if_fail(callback != NULL, 0);
|
|
||||||
|
|
||||||
client = gconf_client_get_default();
|
|
||||||
path = gnc_gconf_section_name(section);
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* First we have to add the directory...
|
|
||||||
*/
|
|
||||||
gconf_client_add_dir(client, path, GCONF_CLIENT_PRELOAD_ONELEVEL, &error);
|
|
||||||
if (error != NULL)
|
|
||||||
{
|
|
||||||
printf("Failed to add history section to watched directories in gconf: %s", error->message);
|
|
||||||
g_error_free(error);
|
|
||||||
g_object_unref(client);
|
|
||||||
g_free(path);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Then we can add the notification callback.
|
|
||||||
*/
|
|
||||||
id = gconf_client_notify_add(client, path, callback,
|
|
||||||
data, NULL, &error);
|
|
||||||
if (error != NULL)
|
|
||||||
{
|
|
||||||
printf("Failed to set gconf notify for history section: %s", error->message);
|
|
||||||
gconf_client_remove_dir(client, path, NULL);
|
|
||||||
g_error_free(error);
|
|
||||||
g_object_unref(client);
|
|
||||||
g_free(path);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
g_free(path);
|
|
||||||
return id;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void
|
|
||||||
gnc_gconf_remove_notification (GObject *object,
|
|
||||||
const gchar *section,
|
|
||||||
const gchar *whoami)
|
|
||||||
{
|
|
||||||
GConfClient *client;
|
|
||||||
gchar *path, *client_tag, *notify_tag;
|
|
||||||
guint id;
|
|
||||||
|
|
||||||
g_return_if_fail(G_IS_OBJECT(object));
|
|
||||||
g_return_if_fail(whoami != NULL);
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Remove any gconf notifications
|
|
||||||
*/
|
|
||||||
client_tag = g_strdup_printf(CLIENT_TAG, section ? section : "", whoami);
|
|
||||||
client = g_object_get_data(object, client_tag);
|
|
||||||
path = gnc_gconf_section_name(section);
|
|
||||||
if (client)
|
|
||||||
{
|
|
||||||
notify_tag = g_strdup_printf(NOTIFY_TAG, section ? section : "", whoami);
|
|
||||||
id = GPOINTER_TO_UINT(g_object_get_data(object, notify_tag));
|
|
||||||
gconf_client_notify_remove(client, id);
|
|
||||||
gconf_client_remove_dir(client, path, NULL);
|
|
||||||
g_object_unref(client);
|
|
||||||
g_free(notify_tag);
|
|
||||||
}
|
|
||||||
g_free(path);
|
|
||||||
g_free(client_tag);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void
|
|
||||||
gnc_gconf_remove_anon_notification (const gchar *section,
|
|
||||||
guint cnxn_id)
|
|
||||||
{
|
|
||||||
GConfClient *client;
|
|
||||||
gchar *path;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Remove any gconf notifications
|
|
||||||
*/
|
|
||||||
path = gnc_gconf_section_name(section);
|
|
||||||
client = gconf_client_get_default();
|
|
||||||
if (client)
|
|
||||||
{
|
|
||||||
gconf_client_notify_remove(client, cnxn_id);
|
|
||||||
gconf_client_remove_dir(client, path, NULL);
|
|
||||||
g_object_unref(client);
|
|
||||||
}
|
|
||||||
g_free(path);
|
|
||||||
}
|
|
@ -1,922 +0,0 @@
|
|||||||
/********************************************************************\
|
|
||||||
* gnc-gconf-utils.h -- utility functions for storing/retrieving *
|
|
||||||
* data in the GConf database for GnuCash *
|
|
||||||
* Copyright (C) 2005,2006 David Hampton <hampton@employees.org> *
|
|
||||||
* *
|
|
||||||
* This program is free software; you can redistribute it and/or *
|
|
||||||
* modify it under the terms of the GNU General Public License as *
|
|
||||||
* published by the Free Software Foundation; either version 2 of *
|
|
||||||
* the License, or (at your option) any later version. *
|
|
||||||
* *
|
|
||||||
* This program is distributed in the hope that it will be useful, *
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
||||||
* GNU General Public License for more details. *
|
|
||||||
* *
|
|
||||||
* You should have received a copy of the GNU General Public License*
|
|
||||||
* along with this program; if not, contact: *
|
|
||||||
* *
|
|
||||||
* Free Software Foundation Voice: +1-617-542-5942 *
|
|
||||||
* 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
|
|
||||||
* Boston, MA 02110-1301, USA gnu@gnu.org *
|
|
||||||
* *
|
|
||||||
\********************************************************************/
|
|
||||||
|
|
||||||
/** @addtogroup GLib
|
|
||||||
@{ */
|
|
||||||
/** @addtogroup GConf GConf Utilities
|
|
||||||
|
|
||||||
The API in this file is designed to make it easy to use the GConf
|
|
||||||
system from within Gnucash. GConf is a shared key/value storage
|
|
||||||
system.
|
|
||||||
|
|
||||||
The main benefits of these routines are that they
|
|
||||||
-# maintain a GConfClient object,
|
|
||||||
-# convert gnucash internal section names into full gconf pathnames, and
|
|
||||||
-# optionally take care of error checking on return values.
|
|
||||||
|
|
||||||
@{ */
|
|
||||||
/** @file gnc-gconf-utils.h
|
|
||||||
* @brief GConf helper routines.
|
|
||||||
* @author Copyright (C) 2005,2006 David Hampton <hampton@employees.org>
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef GNC_GCONF_UTILS_H
|
|
||||||
#define GNC_GCONF_UTILS_H
|
|
||||||
|
|
||||||
#include <gconf/gconf-client.h>
|
|
||||||
|
|
||||||
/* Section names used across multiple modules */
|
|
||||||
#define GCONF_GENERAL "general"
|
|
||||||
#define GCONF_GENERAL_REGISTER "general/register"
|
|
||||||
#define GCONF_GENERAL_REPORT "general/report"
|
|
||||||
#define GCONF_WARNINGS "general/warnings"
|
|
||||||
#define GCONF_WARNINGS_TEMP "general/warnings/temporary"
|
|
||||||
#define GCONF_WARNINGS_PERM "general/warnings/permanent"
|
|
||||||
|
|
||||||
/* Keys used across multiple modules */
|
|
||||||
#define DESKTOP_GNOME_INTERFACE "/desktop/gnome/interface"
|
|
||||||
#define KEY_TOOLBAR_STYLE "toolbar_style"
|
|
||||||
#define KEY_SAVE_GEOMETRY "save_window_geometry"
|
|
||||||
#define KEY_LAST_PATH "last_path"
|
|
||||||
#define KEY_USE_NEW "use_new_window"
|
|
||||||
#define KEY_ACCOUNTING_LABELS "use_accounting_labels"
|
|
||||||
#define KEY_ACCOUNT_SEPARATOR "account_separator"
|
|
||||||
#define KEY_NEGATIVE_IN_RED "negative_in_red"
|
|
||||||
#define KEY_NUM_SOURCE "num_source"
|
|
||||||
#define KEY_DATE_FORMAT "date_format"
|
|
||||||
#define KEY_DATE_COMPLETION "date_completion"
|
|
||||||
#define KEY_DATE_BACKMONTHS "date_backmonths"
|
|
||||||
#define KEY_SHOW_LEAF_ACCOUNT_NAMES "show_leaf_account_names"
|
|
||||||
|
|
||||||
/* Keys used for core preferences */
|
|
||||||
#define KEY_FILE_COMPRESSION "file_compression"
|
|
||||||
#define KEY_RETAIN_TYPE "retain_type"
|
|
||||||
#define KEY_RETAIN_DAYS "retain_days"
|
|
||||||
|
|
||||||
typedef void (*GncGconfGeneralCb) (GConfEntry *entry, gpointer user_data);
|
|
||||||
typedef void (*GncGconfGeneralAnyCb) (gpointer user_data);
|
|
||||||
|
|
||||||
|
|
||||||
/** @name GConf Miscellaneous Functions
|
|
||||||
@{
|
|
||||||
*/
|
|
||||||
|
|
||||||
/** This function takes an enum value and returns its nickname.
|
|
||||||
*
|
|
||||||
* @param type The value defining the enum class. For example,
|
|
||||||
* GTK_TYPE_SORT_TYPE.
|
|
||||||
*
|
|
||||||
* @param value A value contained in the enum. For example,
|
|
||||||
* GTK_SORT_ASCENDING.
|
|
||||||
*
|
|
||||||
* @return A pointer to the textual "nickname" for this enum. Tor
|
|
||||||
* example, "ascending".
|
|
||||||
*/
|
|
||||||
const gchar * gnc_enum_to_nick(GType type, gint value);
|
|
||||||
|
|
||||||
/** This function takes an enum nickname and returns its value.
|
|
||||||
*
|
|
||||||
* @param type The value defining the enum class. For example,
|
|
||||||
* GTK_TYPE_SORT_TYPE or GTK_TYPE_ARROW_TYPE.
|
|
||||||
*
|
|
||||||
* @param name The textual name for one of the items in the enum.
|
|
||||||
* For example, "ascending".
|
|
||||||
*
|
|
||||||
* @param default_value A value contained in the enum. This value
|
|
||||||
* will be returned if the supplied nickname is invalid. For
|
|
||||||
* example, GTK_SORT_ASCENDING.
|
|
||||||
*
|
|
||||||
* @return A pointer to the textual "nickname" for this enum.
|
|
||||||
*/
|
|
||||||
gint gnc_enum_from_nick(GType type,
|
|
||||||
const gchar *name,
|
|
||||||
gint default_value);
|
|
||||||
|
|
||||||
/** Convert a local key name to a full gconf path name.
|
|
||||||
*
|
|
||||||
* This function takes a gconf key name and converts it into a fully
|
|
||||||
* qualified gconf path name. It does this by prepending the
|
|
||||||
* standard path for all gnucash keys. It the key is already fully
|
|
||||||
* qualified (i.e. begins with a '/' character), this routine does
|
|
||||||
* not change the key.
|
|
||||||
*
|
|
||||||
* @param name A partial gconf key or section name. This name is
|
|
||||||
* added to the standard prefix to produce a fully qualified key
|
|
||||||
* name.
|
|
||||||
*
|
|
||||||
* @return This function returns a string pointer to the fully
|
|
||||||
* qualified path name of the gconf key. It is the caller's
|
|
||||||
* responsibility to free this string.
|
|
||||||
*/
|
|
||||||
char *gnc_gconf_section_name (const char *name);
|
|
||||||
|
|
||||||
|
|
||||||
/** Convert a local schema key name to a full gconf schemapath name.
|
|
||||||
*
|
|
||||||
* This function takes a gconf schema key name and converts it into a
|
|
||||||
* fully qualified gconf schema path name. It does this by
|
|
||||||
* prepending the standard path for all gnucash schema keys. It the
|
|
||||||
* key is already fully qualified (i.e. begins with the string
|
|
||||||
* "/schemas), this routine does not change the key.
|
|
||||||
*
|
|
||||||
* @param name A partial gconf schema key or section name. This name
|
|
||||||
* is added to the standard schema prefix to produce a fully
|
|
||||||
* qualified schema key name.
|
|
||||||
*
|
|
||||||
* @return This function returns a string pointer to the fully
|
|
||||||
* qualified path name of the gconf schema key. It is the caller's
|
|
||||||
* responsibility to free this string.
|
|
||||||
*/
|
|
||||||
char *gnc_gconf_schema_section_name (const char *name);
|
|
||||||
|
|
||||||
|
|
||||||
/** Tell GConf to propagate changes.
|
|
||||||
*
|
|
||||||
* This function tells gconf that changes have been made and that is
|
|
||||||
* should propagate its internal state to permanent storage and any
|
|
||||||
* other clients. This function is a suggestion to gconf, not a
|
|
||||||
* directive, and is therefore should be considered optional. Doesn't
|
|
||||||
* hurt to call it though if you've made numerous changes to gconf in
|
|
||||||
* a short period of time.
|
|
||||||
*/
|
|
||||||
void gnc_gconf_suggest_sync (void);
|
|
||||||
|
|
||||||
/** @} */
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/** @name GConf "General" Section Convenience Functions
|
|
||||||
@{
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
/** Register a callback for when a specific key in the general section
|
|
||||||
* of Gnucash's gconf data is changed. Any time the key's value
|
|
||||||
* changes, the routine will be invoked and will be passed both the
|
|
||||||
* changed gconf entry and the user data passed to this function.
|
|
||||||
*
|
|
||||||
* @param key This value contains the name of the key within the
|
|
||||||
* "general" section to watch.
|
|
||||||
*
|
|
||||||
* @param func This is a pointer to the function to call when the key
|
|
||||||
* changes.
|
|
||||||
*
|
|
||||||
* @param user_data This pointer will be passed to the callback
|
|
||||||
* function.
|
|
||||||
*/
|
|
||||||
void gnc_gconf_general_register_cb (const gchar *key,
|
|
||||||
GncGconfGeneralCb func,
|
|
||||||
gpointer user_data);
|
|
||||||
|
|
||||||
|
|
||||||
/** Remove a function that was registered for a callback when a
|
|
||||||
* specific key in the general section of Gnucash's gconf data
|
|
||||||
* changed. Both the func and user_data arguments are used to match
|
|
||||||
* up the callback to remove.
|
|
||||||
*
|
|
||||||
* @param key This value contains the name of the key within the
|
|
||||||
* "general" section to watch.
|
|
||||||
*
|
|
||||||
* @param func This is a pointer to the function to call when the key
|
|
||||||
* changes.
|
|
||||||
*
|
|
||||||
* @param user_data This pointer will be passed to the callback
|
|
||||||
* function.
|
|
||||||
*/
|
|
||||||
void gnc_gconf_general_remove_cb (const gchar *key,
|
|
||||||
GncGconfGeneralCb func,
|
|
||||||
gpointer user_data);
|
|
||||||
|
|
||||||
|
|
||||||
/** Register a callback for when any key in the general section of
|
|
||||||
* Gnucash's gconf data is changed. Any time the value of a key in
|
|
||||||
* this section chagnes, the routine will be invoked and will be
|
|
||||||
* passed the specified user data.
|
|
||||||
*
|
|
||||||
* @param func This is a pointer to the function to call when the key
|
|
||||||
* changes.
|
|
||||||
*
|
|
||||||
* @param user_data This pointer will be passed to the callback
|
|
||||||
* function.
|
|
||||||
*/
|
|
||||||
void gnc_gconf_general_register_any_cb (GncGconfGeneralAnyCb func,
|
|
||||||
gpointer user_data);
|
|
||||||
|
|
||||||
|
|
||||||
/** Remove a function that was registered for a callback when any key
|
|
||||||
* in the general section of Gnucash's gconf data changed. Both the
|
|
||||||
* func and user_data arguments are used to match up the callback to
|
|
||||||
* remove.
|
|
||||||
*
|
|
||||||
* @param func This is a pointer to the function to call when a key
|
|
||||||
* changes.
|
|
||||||
*
|
|
||||||
* @param user_data This pointer will be passed to the callback
|
|
||||||
* function.
|
|
||||||
*/
|
|
||||||
void gnc_gconf_general_remove_any_cb (GncGconfGeneralAnyCb func,
|
|
||||||
gpointer user_data);
|
|
||||||
|
|
||||||
/** @} */
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/** @name GConf Get Functions
|
|
||||||
@{
|
|
||||||
*/
|
|
||||||
|
|
||||||
/** Get a boolean value from GConf.
|
|
||||||
*
|
|
||||||
* Retrieve a TRUE/FALSE value from GConf. The section and key names
|
|
||||||
* provided as arguments are combined with the standard gnucash key
|
|
||||||
* prefix to produce a fully qualified key name. Either name (but
|
|
||||||
* not both) may be a fully qualified key path name, in which case it
|
|
||||||
* is used as is, without the standard gnucash prefix. This allows
|
|
||||||
* the program to access keys like standard desktop settings. Either
|
|
||||||
* name (but not both) may be NULL.
|
|
||||||
*
|
|
||||||
* @param section This string provides a grouping of keys within the
|
|
||||||
* GnuCash section of the gconf database. It can be a simple string
|
|
||||||
* as in "history" for settings that are common to many areas of
|
|
||||||
* gnucash, or it can be a partial path name as in
|
|
||||||
* "dialogs/business/invoice" for setting that only apply to one
|
|
||||||
* specific area of the program.
|
|
||||||
*
|
|
||||||
* @param name This string is the name of the particular key within
|
|
||||||
* the named section of gconf.
|
|
||||||
*
|
|
||||||
* @param error An optional pointer to a GError structure. If NULL,
|
|
||||||
* this function will check for any errors returned by GConf and will
|
|
||||||
* display an error message via stdout. If present, this function
|
|
||||||
* will pass any error back to the calling function for it to handle.
|
|
||||||
*
|
|
||||||
* @return This function returns the TRUE or FALSE value stored at
|
|
||||||
* the requested key in the gconf database. If the key has never
|
|
||||||
* been set, this function passes on the default value returned by
|
|
||||||
* GConf as specified in the schema for this key. If there is an
|
|
||||||
* error in processing, this function passed on the value of FALSE as
|
|
||||||
* returned by GConf.
|
|
||||||
*/
|
|
||||||
gboolean gnc_gconf_get_bool (const gchar *section,
|
|
||||||
/*@ null @*/ const gchar *name,
|
|
||||||
/*@ null @*/ GError **error);
|
|
||||||
|
|
||||||
/** Get a boolean value from GConf with no error argument.
|
|
||||||
*
|
|
||||||
* Retrieve a TRUE/FALSE value from GConf. The section and key names
|
|
||||||
* provided as arguments are combined with the standard gnucash key
|
|
||||||
* prefix to produce a fully qualified key name. Either name (but
|
|
||||||
* not both) may be a fully qualified key path name, in which case it
|
|
||||||
* is used as is, without the standard gnucash prefix. This allows
|
|
||||||
* the program to access keys like standard desktop settings. Either
|
|
||||||
* name (but not both) may be NULL.
|
|
||||||
*
|
|
||||||
* @param section This string provides a grouping of keys within the
|
|
||||||
* GnuCash section of the gconf database. It can be a simple string
|
|
||||||
* as in "history" for settings that are common to many areas of
|
|
||||||
* gnucash, or it can be a partial path name as in
|
|
||||||
* "dialogs/business/invoice" for setting that only apply to one
|
|
||||||
* specific area of the program.
|
|
||||||
*
|
|
||||||
* @param name This string is the name of the particular key within
|
|
||||||
* the named section of gconf.
|
|
||||||
*
|
|
||||||
* @return This function returns the TRUE or FALSE value stored at
|
|
||||||
* the requested key in the gconf database. If the key has never
|
|
||||||
* been set, this function passes on the default value returned by
|
|
||||||
* GConf as specified in the schema for this key. If there is an
|
|
||||||
* error in processing, this function passed on the value of FALSE as
|
|
||||||
* returned by GConf.
|
|
||||||
*
|
|
||||||
* @note This function was intended for use only by the guile wrapper
|
|
||||||
* functions. It should not be called from C code.
|
|
||||||
*/
|
|
||||||
gboolean gnc_gconf_get_bool_no_error (const gchar *section,
|
|
||||||
const gchar *name);
|
|
||||||
|
|
||||||
/** Get an integer value from GConf.
|
|
||||||
*
|
|
||||||
* Retrieve an integer value from GConf. The section and key names
|
|
||||||
* provided as arguments are combined with the standard gnucash key
|
|
||||||
* prefix to produce a fully qualified key name. Either name (but
|
|
||||||
* not both) may be a fully qualified key path name, in which case it
|
|
||||||
* is used as is, without the standard gnucash prefix. This allows
|
|
||||||
* the program to access keys like standard desktop settings. Either
|
|
||||||
* name (but not both) may be NULL.
|
|
||||||
*
|
|
||||||
* @param section This string provides a grouping of keys within the
|
|
||||||
* GnuCash section of the gconf database. It can be a simple string
|
|
||||||
* as in "history" for settings that are common to many areas of
|
|
||||||
* gnucash, or it can be a partial path name as in
|
|
||||||
* "dialogs/business/invoice" for setting that only apply to one
|
|
||||||
* specific area of the program.
|
|
||||||
*
|
|
||||||
* @param name This string is the name of the particular key within
|
|
||||||
* the named section of gconf.
|
|
||||||
*
|
|
||||||
* @param error An optional pointer to a GError structure. If NULL,
|
|
||||||
* this function will check for any errors returned by GConf and will
|
|
||||||
* display an error message via stdout. If present, this function
|
|
||||||
* will pass any error back to the calling function for it to handle.
|
|
||||||
*
|
|
||||||
* @return This function returns the integer value stored at the
|
|
||||||
* requested key in the gconf database. If the key has never been
|
|
||||||
* set, this function passes on the default value returned by GConf
|
|
||||||
* as specified in the schema for this key. If there is an error in
|
|
||||||
* processing, this function passed on the value of zero as returned
|
|
||||||
* by GConf.
|
|
||||||
*/
|
|
||||||
gint gnc_gconf_get_int (const gchar *section,
|
|
||||||
const gchar *name,
|
|
||||||
GError **error);
|
|
||||||
|
|
||||||
/** Get an float value from GConf.
|
|
||||||
*
|
|
||||||
* Retrieve an float value from GConf. The section and key names
|
|
||||||
* provided as arguments are combined with the standard gnucash key
|
|
||||||
* prefix to produce a fully qualified key name. Either name (but
|
|
||||||
* not both) may be a fully qualified key path name, in which case it
|
|
||||||
* is used as is, without the standard gnucash prefix. This allows
|
|
||||||
* the program to access keys like standard desktop settings. Either
|
|
||||||
* name (but not both) may be NULL.
|
|
||||||
*
|
|
||||||
* @param section This string provides a grouping of keys within the
|
|
||||||
* GnuCash section of the gconf database. It can be a simple string
|
|
||||||
* as in "history" for settings that are common to many areas of
|
|
||||||
* gnucash, or it can be a partial path name as in
|
|
||||||
* "dialogs/business/invoice" for setting that only apply to one
|
|
||||||
* specific area of the program.
|
|
||||||
*
|
|
||||||
* @param name This string is the name of the particular key within
|
|
||||||
* the named section of gconf.
|
|
||||||
*
|
|
||||||
* @param error An optional pointer to a GError structure. If NULL,
|
|
||||||
* this function will check for any errors returned by GConf and will
|
|
||||||
* display an error message via stdout. If present, this function
|
|
||||||
* will pass any error back to the calling function for it to handle.
|
|
||||||
*
|
|
||||||
* @return This function returns the float value stored at the
|
|
||||||
* requested key in the gconf database. If the key has never been
|
|
||||||
* set, this function passes on the default value returned by GConf
|
|
||||||
* as specified in the schema for this key. If there is an error in
|
|
||||||
* processing, this function passed on the value of zero as returned
|
|
||||||
* by GConf.
|
|
||||||
*/
|
|
||||||
gdouble gnc_gconf_get_float (const gchar *section,
|
|
||||||
const gchar *name,
|
|
||||||
GError **error);
|
|
||||||
|
|
||||||
/** Get a string value from GConf.
|
|
||||||
*
|
|
||||||
* Retrieve an string value from GConf. The section and key names
|
|
||||||
* provided as arguments are combined with the standard gnucash key
|
|
||||||
* prefix to produce a fully qualified key name. Either name (but
|
|
||||||
* not both) may be a fully qualified key path name, in which case it
|
|
||||||
* is used as is, without the standard gnucash prefix. This allows
|
|
||||||
* the program to access keys like standard desktop settings. Either
|
|
||||||
* name (but not both) may be NULL.
|
|
||||||
*
|
|
||||||
* @param section This string provides a grouping of keys within the
|
|
||||||
* GnuCash section of the gconf database. It can be a simple string
|
|
||||||
* as in "history" for settings that are common to many areas of
|
|
||||||
* gnucash, or it can be a partial path name as in
|
|
||||||
* "dialogs/business/invoice" for setting that only apply to one
|
|
||||||
* specific area of the program.
|
|
||||||
*
|
|
||||||
* @param name This string is the name of the particular key within
|
|
||||||
* the named section of gconf.
|
|
||||||
*
|
|
||||||
* @param error An optional pointer to a GError structure. If NULL,
|
|
||||||
* this function will check for any errors returned by GConf and will
|
|
||||||
* display an error message via stdout. If present, this function
|
|
||||||
* will pass any error back to the calling function for it to handle.
|
|
||||||
*
|
|
||||||
* @return This function returns the string value stored at the
|
|
||||||
* requested key in the gconf database. If the key has never been
|
|
||||||
* set, this function passes on the default value returned by GConf
|
|
||||||
* as specified in the schema for this key. If there is an error in
|
|
||||||
* processing, this function passed on the NULL value as returned by
|
|
||||||
* GConf. It is the callers responsibility to free any string
|
|
||||||
* returned by this function.
|
|
||||||
*/
|
|
||||||
char *gnc_gconf_get_string (const gchar *section,
|
|
||||||
const gchar *name,
|
|
||||||
GError **error);
|
|
||||||
|
|
||||||
/** Get a list of values from GConf.
|
|
||||||
*
|
|
||||||
* Retrieve a list of values from GConf. This list may be of any
|
|
||||||
* kind of value understood by GConf, but all values in the list will
|
|
||||||
* be of the same type. The section and key names provided as
|
|
||||||
* arguments are combined with the standard gnucash key prefix to
|
|
||||||
* produce a fully qualified key name. Either name (but not both)
|
|
||||||
* may be a fully qualified key path name, in which case it is used
|
|
||||||
* as is, without the standard gnucash prefix. This allows the
|
|
||||||
* program to access keys like standard desktop settings. Either
|
|
||||||
* name (but not both) may be NULL.
|
|
||||||
*
|
|
||||||
* @param section This string provides a grouping of keys within the
|
|
||||||
* GnuCash section of the gconf database. It can be a simple string
|
|
||||||
* as in "history" for settings that are common to many areas of
|
|
||||||
* gnucash, or it can be a partial path name as in
|
|
||||||
* "dialogs/business/invoice" for setting that only apply to one
|
|
||||||
* specific area of the program.
|
|
||||||
*
|
|
||||||
* @param name This string is the name of the particular key within
|
|
||||||
* the named section of gconf.
|
|
||||||
*
|
|
||||||
* @param list_type This enum indicates the type of each item in the
|
|
||||||
* returned list. This type must match the type off the stored
|
|
||||||
* items.
|
|
||||||
*
|
|
||||||
* @param error An optional pointer to a GError structure. If NULL,
|
|
||||||
* this function will check for any errors returned by GConf and will
|
|
||||||
* display an error message via stdout. If present, this function
|
|
||||||
* will pass any error back to the calling function for it to handle.
|
|
||||||
*
|
|
||||||
* @return This function returns a list of value stored at the
|
|
||||||
* requested key in the gconf database. If the key has never been
|
|
||||||
* set, this function passes on the default value returned by GConf
|
|
||||||
* as specified in the schema for this key. If there is an error in
|
|
||||||
* processing, this function passed on the NULL value as returned by
|
|
||||||
* GConf. It is the callers responsibility to free any memory
|
|
||||||
* returned by this function. This include the list itself, and any
|
|
||||||
* list data that are string values.
|
|
||||||
*/
|
|
||||||
GSList *gnc_gconf_get_list (const gchar *section,
|
|
||||||
const gchar *name,
|
|
||||||
GConfValueType list_type,
|
|
||||||
GError **error);
|
|
||||||
|
|
||||||
|
|
||||||
/** Get a schema value from GConf.
|
|
||||||
*
|
|
||||||
* Retrieve a schema value from GConf. The section and key names
|
|
||||||
* provided as arguments are combined with the standard gnucash key
|
|
||||||
* prefix to produce a fully qualified key name. Either name (but
|
|
||||||
* not both) may be a fully qualified key path name, in which case it
|
|
||||||
* is used as is, without the standard gnucash prefix. This allows
|
|
||||||
* the program to access keys like standard desktop settings. Either
|
|
||||||
* name (but not both) may be NULL.
|
|
||||||
*
|
|
||||||
* @param section This string provides a grouping of keys within the
|
|
||||||
* GnuCash section of the gconf database. It can be a simple string
|
|
||||||
* as in "history" for settings that are common to many areas of
|
|
||||||
* gnucash, or it can be a partial path name as in
|
|
||||||
* "dialogs/business/invoice" for setting that only apply to one
|
|
||||||
* specific area of the program.
|
|
||||||
*
|
|
||||||
* @param name This string is the name of the particular key within
|
|
||||||
* the named section of gconf.
|
|
||||||
*
|
|
||||||
* @param caller_error An optional pointer to a GError structure. If
|
|
||||||
* NULL, this function will check for any errors returned by GConf
|
|
||||||
* and will display an error message via stdout. If present, this
|
|
||||||
* function will pass any error back to the calling function for it
|
|
||||||
* to handle.
|
|
||||||
*
|
|
||||||
* @return This function returns the schema stored at the requested
|
|
||||||
* key in the gconf database. If there is an error in processing,
|
|
||||||
* this function passed on the NULL value as returned by GConf. It
|
|
||||||
* is the callers responsibility to free any returned schema by
|
|
||||||
* calling the gconf_schema_free() function.
|
|
||||||
*/
|
|
||||||
GConfSchema *gnc_gconf_get_schema (const gchar *section,
|
|
||||||
const gchar *name,
|
|
||||||
GError **caller_error);
|
|
||||||
|
|
||||||
/** @} */
|
|
||||||
|
|
||||||
/** @name GConf Set/Unset Functions
|
|
||||||
@{
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
/** Store a boolean value into GConf.
|
|
||||||
*
|
|
||||||
* Store a boolean value into GConf. The section and key names
|
|
||||||
* provided as arguments are combined with the standard gnucash key
|
|
||||||
* prefix to produce a fully qualified key name. Either name (but
|
|
||||||
* not both) may be a fully qualified key path name, in which case it
|
|
||||||
* is used as is, without the standard gnucash prefix. This allows
|
|
||||||
* the program to access keys like standard desktop settings. Either
|
|
||||||
* name (but not both) may be NULL.
|
|
||||||
*
|
|
||||||
* @param section This string provides a grouping of keys within the
|
|
||||||
* GnuCash section of the gconf database. It can be a simple string
|
|
||||||
* as in "history" for settings that are common to many areas of
|
|
||||||
* gnucash, or it can be a partial path name as in
|
|
||||||
* "dialogs/business/invoice" for setting that only apply to one
|
|
||||||
* specific area of the program.
|
|
||||||
*
|
|
||||||
* @param name This string is the name of the particular key within
|
|
||||||
* the named section of gconf.
|
|
||||||
*
|
|
||||||
* @param value The TRUE/FALSE value to be stored.
|
|
||||||
*
|
|
||||||
* @param error An optional pointer to a GError structure. If NULL,
|
|
||||||
* this function will check for any errors returned by GConf and will
|
|
||||||
* display an error message via stdout. If present, this function
|
|
||||||
* will pass any error back to the calling function for it to handle.
|
|
||||||
*/
|
|
||||||
void gnc_gconf_set_bool (const gchar *section,
|
|
||||||
const gchar *name,
|
|
||||||
const gboolean value,
|
|
||||||
GError **error);
|
|
||||||
|
|
||||||
/** Store an integer value into GConf.
|
|
||||||
*
|
|
||||||
* Store an integer into GConf. The section and key names provided
|
|
||||||
* as arguments are combined with the standard gnucash key prefix to
|
|
||||||
* produce a fully qualified key name. Either name (but not both)
|
|
||||||
* may be a fully qualified key path name, in which case it is used
|
|
||||||
* as is, without the standard gnucash prefix. This allows the
|
|
||||||
* program to access keys like standard desktop settings. Either
|
|
||||||
* name (but not both) may be NULL.
|
|
||||||
*
|
|
||||||
* @param section This string provides a grouping of keys within the
|
|
||||||
* GnuCash section of the gconf database. It can be a simple string
|
|
||||||
* as in "history" for settings that are common to many areas of
|
|
||||||
* gnucash, or it can be a partial path name as in
|
|
||||||
* "dialogs/business/invoice" for setting that only apply to one
|
|
||||||
* specific area of the program.
|
|
||||||
*
|
|
||||||
* @param name This string is the name of the particular key within
|
|
||||||
* the named section of gconf.
|
|
||||||
*
|
|
||||||
* @param value The number to be stored.
|
|
||||||
*
|
|
||||||
* @param error An optional pointer to a GError structure. If NULL,
|
|
||||||
* this function will check for any errors returned by GConf and will
|
|
||||||
* display an error message via stdout. If present, this function
|
|
||||||
* will pass any error back to the calling function for it to handle.
|
|
||||||
*/
|
|
||||||
void gnc_gconf_set_int (const gchar *section,
|
|
||||||
const gchar *name,
|
|
||||||
const gint value,
|
|
||||||
GError **error);
|
|
||||||
|
|
||||||
/** Store an float value into GConf.
|
|
||||||
*
|
|
||||||
* Store an float into GConf. The section and key names provided
|
|
||||||
* as arguments are combined with the standard gnucash key prefix to
|
|
||||||
* produce a fully qualified key name. Either name (but not both)
|
|
||||||
* may be a fully qualified key path name, in which case it is used
|
|
||||||
* as is, without the standard gnucash prefix. This allows the
|
|
||||||
* program to access keys like standard desktop settings. Either
|
|
||||||
* name (but not both) may be NULL.
|
|
||||||
*
|
|
||||||
* @param section This string provides a grouping of keys within the
|
|
||||||
* GnuCash section of the gconf database. It can be a simple string
|
|
||||||
* as in "history" for settings that are common to many areas of
|
|
||||||
* gnucash, or it can be a partial path name as in
|
|
||||||
* "dialogs/business/invoice" for setting that only apply to one
|
|
||||||
* specific area of the program.
|
|
||||||
*
|
|
||||||
* @param name This string is the name of the particular key within
|
|
||||||
* the named section of gconf.
|
|
||||||
*
|
|
||||||
* @param value The number to be stored.
|
|
||||||
*
|
|
||||||
* @param error An optional pointer to a GError structure. If NULL,
|
|
||||||
* this function will check for any errors returned by GConf and will
|
|
||||||
* display an error message via stdout. If present, this function
|
|
||||||
* will pass any error back to the calling function for it to handle.
|
|
||||||
*/
|
|
||||||
void gnc_gconf_set_float (const gchar *section,
|
|
||||||
const gchar *name,
|
|
||||||
const gdouble value,
|
|
||||||
GError **error);
|
|
||||||
|
|
||||||
/** Store a string into GConf.
|
|
||||||
*
|
|
||||||
* Store a single string into GConf. The section and key names
|
|
||||||
* provided as arguments are combined with the standard gnucash key
|
|
||||||
* prefix to produce a fully qualified key name. Either name (but
|
|
||||||
* not both) may be a fully qualified key path name, in which case it
|
|
||||||
* is used as is, without the standard gnucash prefix. This allows
|
|
||||||
* the program to access keys like standard desktop settings. Either
|
|
||||||
* name (but not both) may be NULL.
|
|
||||||
*
|
|
||||||
* @param section This string provides a grouping of keys within the
|
|
||||||
* GnuCash section of the gconf database. It can be a simple string
|
|
||||||
* as in "history" for settings that are common to many areas of
|
|
||||||
* gnucash, or it can be a partial path name as in
|
|
||||||
* "dialogs/business/invoice" for setting that only apply to one
|
|
||||||
* specific area of the program.
|
|
||||||
*
|
|
||||||
* @param name This string is the name of the particular key within
|
|
||||||
* the named section of gconf.
|
|
||||||
*
|
|
||||||
* @param value The string to be stored. GConf will make a copy of this
|
|
||||||
* string, so it is the callers responsibility to free the space used
|
|
||||||
* by this string (if necessary).
|
|
||||||
*
|
|
||||||
* @param error An optional pointer to a GError structure. If NULL,
|
|
||||||
* this function will check for any errors returned by GConf and will
|
|
||||||
* display an error message via stdout. If present, this function
|
|
||||||
* will pass any error back to the calling function for it to handle.
|
|
||||||
*/
|
|
||||||
void gnc_gconf_set_string (const gchar *section,
|
|
||||||
const gchar *name,
|
|
||||||
const gchar *value,
|
|
||||||
GError **error);
|
|
||||||
|
|
||||||
/** Store a list of values into GConf.
|
|
||||||
*
|
|
||||||
* Store a list of values into GConf. This list may be of any kind
|
|
||||||
* of value understood by GConf, but all values in the list must be
|
|
||||||
* of the same type. The section and key names provided as arguments
|
|
||||||
* are combined with the standard gnucash key prefix to produce a
|
|
||||||
* fully qualified key name. Either name (but not both) may be a
|
|
||||||
* fully qualified key path name, in which case it is used as is,
|
|
||||||
* without the standard gnucash prefix. This allows the program to
|
|
||||||
* access keys like standard desktop settings. Either name (but not
|
|
||||||
* both) may be NULL.
|
|
||||||
*
|
|
||||||
* @param section This string provides a grouping of keys within the
|
|
||||||
* GnuCash section of the gconf database. It can be a simple string
|
|
||||||
* as in "history" for settings that are common to many areas of
|
|
||||||
* gnucash, or it can be a partial path name as in
|
|
||||||
* "dialogs/business/invoice" for setting that only apply to one
|
|
||||||
* specific area of the program.
|
|
||||||
*
|
|
||||||
* @param name This string is the name of the particular key within
|
|
||||||
* the named section of gconf.
|
|
||||||
*
|
|
||||||
* @param list_type This enum indicates the type of each item in the
|
|
||||||
* list to be stored.
|
|
||||||
*
|
|
||||||
* @param value The list of items to be stored. Each item in the list must
|
|
||||||
* be of the type specified. E.G. If the list_type is
|
|
||||||
* GCONF_VALUE_STRING, then the data field of each element in the
|
|
||||||
* list must be a string pointer.
|
|
||||||
*
|
|
||||||
* @param error An optional pointer to a GError structure. If NULL,
|
|
||||||
* this function will check for any errors returned by GConf and will
|
|
||||||
* display an error message via stdout. If present, this function
|
|
||||||
* will pass any error back to the calling function for it to handle.
|
|
||||||
*/
|
|
||||||
void gnc_gconf_set_list (const gchar *section,
|
|
||||||
const gchar *name,
|
|
||||||
GConfValueType list_type,
|
|
||||||
GSList *value,
|
|
||||||
GError **error);
|
|
||||||
|
|
||||||
/** Delete a value from GConf.
|
|
||||||
*
|
|
||||||
* Completely remove a value from GConf. The next attempt to read this
|
|
||||||
* value will return the default as specified in the GConf schema for
|
|
||||||
* this key. The section and key names provided as arguments are
|
|
||||||
* combined with the standard gnucash key prefix to produce a fully
|
|
||||||
* qualified key name. Either name (but not both) may be a fully
|
|
||||||
* qualified key path name, in which case it is used as is, without
|
|
||||||
* the standard gnucash prefix. This allows the program to access
|
|
||||||
* keys like standard desktop settings. Either name (but not both)
|
|
||||||
* may be NULL.
|
|
||||||
*
|
|
||||||
* @param section This string provides a grouping of keys within the
|
|
||||||
* GnuCash section of the gconf database. It can be a simple string
|
|
||||||
* as in "history" for settings that are common to many areas of
|
|
||||||
* gnucash, or it can be a partial path name as in
|
|
||||||
* "dialogs/business/invoice" for setting that only apply to one
|
|
||||||
* specific area of the program.
|
|
||||||
*
|
|
||||||
* @param name This string is the name of the particular key within
|
|
||||||
* the named section of gconf.
|
|
||||||
*
|
|
||||||
* @param error An optional pointer to a GError structure. If NULL,
|
|
||||||
* this function will check for any errors returned by GConf and will
|
|
||||||
* display an error message via stdout. If present, this function
|
|
||||||
* will pass any error back to the calling function for it to handle.
|
|
||||||
*/
|
|
||||||
void gnc_gconf_unset (const gchar *section,
|
|
||||||
const gchar *name,
|
|
||||||
GError **error);
|
|
||||||
|
|
||||||
|
|
||||||
/** Delete a directory of values from GConf.
|
|
||||||
*
|
|
||||||
* Completely remove a directory of values from GConf. The next
|
|
||||||
* attempt to read any of these values will return the default as
|
|
||||||
* specified in the GConf schema for the key. The section names
|
|
||||||
* provided as an arguments is combined with the standard gnucash key
|
|
||||||
* prefix to produce a fully qualified directory name.
|
|
||||||
*
|
|
||||||
* @param section This string provides a grouping of keys within the
|
|
||||||
* GnuCash section of the gconf database. It can be a simple string
|
|
||||||
* as in "history" for settings that are common to many areas of
|
|
||||||
* gnucash, or it can be a partial path name as in
|
|
||||||
* "dialogs/business/invoice" for setting that only apply to one
|
|
||||||
* specific area of the program.
|
|
||||||
*
|
|
||||||
* @param error An optional pointer to a GError structure. If NULL,
|
|
||||||
* this function will check for any errors returned by GConf and will
|
|
||||||
* display an error message via stdout. If present, this function
|
|
||||||
* will pass any error back to the calling function for it to handle.
|
|
||||||
*/
|
|
||||||
void gnc_gconf_unset_dir (const gchar *section,
|
|
||||||
GError **error);
|
|
||||||
|
|
||||||
/** @} */
|
|
||||||
|
|
||||||
/** @name GConf Notification Functions
|
|
||||||
@{
|
|
||||||
*/
|
|
||||||
|
|
||||||
/** Add a notification callback to GConf.
|
|
||||||
*
|
|
||||||
* Add a function that will be called whenever a value within the
|
|
||||||
* specified section of the GConf tree changes. The section name
|
|
||||||
* provided as an argument is combined with the standard gnucash key
|
|
||||||
* prefix to produce a fully qualified key name. This name may be a
|
|
||||||
* fully qualified key path name, in which case it is used as is,
|
|
||||||
* without the standard gnucash prefix. This allows the object to
|
|
||||||
* respond to keys like standard desktop settings.
|
|
||||||
*
|
|
||||||
* @param object This is a pointer to a GObject derivative. This
|
|
||||||
* object will be provided to the callback function when it is
|
|
||||||
* invoked. Several values will also be attached to this object that
|
|
||||||
* are used by the gnc_gconf_remove_notification() function.
|
|
||||||
*
|
|
||||||
* @param section This string provides a grouping of keys within the
|
|
||||||
* GnuCash section of the gconf database. It can be a simple string
|
|
||||||
* as in "history" for settings that are common to many areas of
|
|
||||||
* gnucash, or it can be a partial path name as in
|
|
||||||
* "dialogs/business/invoice" for setting that only apply to one
|
|
||||||
* specific area of the program. Any key changes within this section
|
|
||||||
* will invoke the notification function.
|
|
||||||
*
|
|
||||||
* @param callback The function to call when a value changes. This
|
|
||||||
* function will receive the key/value pair as one argument, and the
|
|
||||||
* 'object' argument to this function as another of its arguments.
|
|
||||||
*
|
|
||||||
* @param whoami A magic value that must match up this call to the
|
|
||||||
* corresponding call to gnc_gconf_remove_notification(). The pair of
|
|
||||||
* section and whoami should be unique across all callers.
|
|
||||||
*/
|
|
||||||
void gnc_gconf_add_notification (GObject *object,
|
|
||||||
const gchar *section,
|
|
||||||
GConfClientNotifyFunc callback,
|
|
||||||
const gchar *whoami);
|
|
||||||
|
|
||||||
|
|
||||||
/** An alternative function for adding a notification callback to
|
|
||||||
* GConf.
|
|
||||||
*
|
|
||||||
* Add a function that will be called whenever a value within the
|
|
||||||
* specified section of the GConf tree changes. The section name
|
|
||||||
* provided as an argument is combined with the standard gnucash key
|
|
||||||
* prefix to produce a fully qualified key name. This name may be a
|
|
||||||
* fully qualified key path name, in which case it is used as is,
|
|
||||||
* without the standard gnucash prefix. This allows the object to
|
|
||||||
* respond to keys like standard desktop settings.
|
|
||||||
*
|
|
||||||
* @param section This string provides a grouping of keys within the
|
|
||||||
* GnuCash section of the gconf database. It can be a simple string
|
|
||||||
* as in "history" for settings that are common to many areas of
|
|
||||||
* gnucash, or it can be a partial path name as in
|
|
||||||
* "dialogs/business/invoice" for setting that only apply to one
|
|
||||||
* specific area of the program. Any key changes within this section
|
|
||||||
* will invoke the notification function.
|
|
||||||
*
|
|
||||||
* @param callback The function to call when a value changes. This
|
|
||||||
* function will receive the key/value pair as one argument, and the
|
|
||||||
* 'object' argument to this function as another of its arguments.
|
|
||||||
*
|
|
||||||
* @param data This pointer will be provided to the callback function
|
|
||||||
* when it is invoked.
|
|
||||||
*
|
|
||||||
* @return This function returns an identification number that must
|
|
||||||
* be passed to the gnc_gconf_remove_anon_notification() function to
|
|
||||||
* reverse the actions of this function.
|
|
||||||
*/
|
|
||||||
guint gnc_gconf_add_anon_notification (const gchar *section,
|
|
||||||
GConfClientNotifyFunc callback,
|
|
||||||
gpointer data);
|
|
||||||
|
|
||||||
|
|
||||||
/** Remove a callback from GConf.
|
|
||||||
*
|
|
||||||
* Remove a GConf callback function previously added with the
|
|
||||||
* gnc_gconf_add_notification function. The section name must be the
|
|
||||||
* same string provided when the callback function was added. This
|
|
||||||
* name is used to find/remove the callback.
|
|
||||||
*
|
|
||||||
* @param object This is a pointer to a GObject derivative. This
|
|
||||||
* must be the same object originally passed to the
|
|
||||||
* gnc_gconf_add_notification() function, as that function attached
|
|
||||||
* several values to the object that are needed by this function.
|
|
||||||
*
|
|
||||||
* @param section This string is used to find the correct
|
|
||||||
* notification function to remove from GConf.
|
|
||||||
*
|
|
||||||
* @param whoami A magic value that must match up this call to the
|
|
||||||
* corresponding call to gnc_gconf_add_notification(). The pair of
|
|
||||||
* section and whoami should be unique across all callers.
|
|
||||||
*/
|
|
||||||
void gnc_gconf_remove_notification (GObject *object,
|
|
||||||
const gchar *section,
|
|
||||||
const gchar *whoami);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/** An alternative method for remove a callback from GConf; paired
|
|
||||||
* with gnc_gconf_add_anon_notification().
|
|
||||||
*
|
|
||||||
* Remove a GConf callback function previously added with the
|
|
||||||
* gnc_gconf_add_notification function. The section name must be the
|
|
||||||
* same string provided when the callback function was added. This
|
|
||||||
* name is used to find/remove the callback.
|
|
||||||
*
|
|
||||||
* @param section This string is used to find the correct
|
|
||||||
* notification function to remove from GConf.
|
|
||||||
*
|
|
||||||
* @param cnxn_id An identification number returned by the
|
|
||||||
* gnc_gconf_add_anon_notification() function.
|
|
||||||
*/
|
|
||||||
void gnc_gconf_remove_anon_notification (const gchar *section,
|
|
||||||
guint cnxn_id);
|
|
||||||
|
|
||||||
|
|
||||||
/** Retrieve a list of all key/value pairs in the specified GConf
|
|
||||||
* section. The section name provided as an argument is combined
|
|
||||||
* with the standard gnucash key prefix to produce a fully qualified
|
|
||||||
* section name.
|
|
||||||
*
|
|
||||||
* @param section This string provides a grouping of keys within the
|
|
||||||
* GnuCash section of the gconf database. It can be a simple string
|
|
||||||
* as in "history" for settings that are common to many areas of
|
|
||||||
* gnucash, or it can be a partial path name as in
|
|
||||||
* "dialogs/business/invoice" for setting that only apply to one
|
|
||||||
* specific area of the program.
|
|
||||||
*
|
|
||||||
* @return This function returns a list of all key/value pairs stored
|
|
||||||
* in this section of the gconf database. These are GConfEntry
|
|
||||||
* objects. It is the callers responsibility to free any memory
|
|
||||||
* returned by this function. This include the list itself, and any
|
|
||||||
* entries contained in the list. See gconf_client_all_entries in
|
|
||||||
* the gconf documentation.
|
|
||||||
*/
|
|
||||||
GSList *gnc_gconf_client_all_entries (const gchar *section);
|
|
||||||
|
|
||||||
/** @} */
|
|
||||||
|
|
||||||
/** @name GConf One Liners
|
|
||||||
@{
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define DESTKOP_TEAROFF_MENUS "/desktop/gnome/interface/menus_have_tearoff"
|
|
||||||
#define DESTKOP_MENUBAR_DETACHABLE "/desktop/gnome/interface/menubar_detachable"
|
|
||||||
#define DESTKOP_TOOLBAR_DETACHABLE "/desktop/gnome/interface/toolbar_detachable"
|
|
||||||
|
|
||||||
static inline gboolean
|
|
||||||
gnc_gconf_menus_have_tearoff (void)
|
|
||||||
{
|
|
||||||
return gnc_gconf_get_bool(DESTKOP_TEAROFF_MENUS, NULL, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline gboolean
|
|
||||||
gnc_gconf_menubar_detachable (void)
|
|
||||||
{
|
|
||||||
return gnc_gconf_get_bool(DESTKOP_MENUBAR_DETACHABLE, NULL, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline gboolean
|
|
||||||
gnc_gconf_toolbar_detachable (void)
|
|
||||||
{
|
|
||||||
return gnc_gconf_get_bool(DESTKOP_TOOLBAR_DETACHABLE, NULL, NULL);
|
|
||||||
}
|
|
||||||
|
|
||||||
void gnc_gconf_general_changed (GConfClient *client,
|
|
||||||
guint cnxn_id,
|
|
||||||
GConfEntry *entry,
|
|
||||||
gpointer data);
|
|
||||||
|
|
||||||
/** @} */
|
|
||||||
|
|
||||||
#endif /* GNC_GCONF_UTILS_H */
|
|
||||||
/** @} */
|
|
||||||
/** @} */
|
|
@ -194,30 +194,3 @@ gchar *gnc_path_get_stdreportsdir()
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Returns the gconf schema config source path, usually
|
|
||||||
* "$prefix/etc/gconf/gconf.xml.defaults".
|
|
||||||
*
|
|
||||||
* @returns A newly allocated string. */
|
|
||||||
gchar *gnc_path_get_gconfdir(gboolean force_slashes)
|
|
||||||
{
|
|
||||||
gchar *sysconfdir = gnc_gbr_find_etc_dir (SYSCONFDIR);
|
|
||||||
gchar *separator = G_DIR_SEPARATOR_S;
|
|
||||||
gchar *result;
|
|
||||||
|
|
||||||
if (force_slashes)
|
|
||||||
{
|
|
||||||
gchar **splitted;
|
|
||||||
splitted = g_strsplit (sysconfdir, "\\", -1);
|
|
||||||
g_free (sysconfdir);
|
|
||||||
sysconfdir = g_strjoinv ("/", splitted);
|
|
||||||
g_strfreev (splitted);
|
|
||||||
separator = "/";
|
|
||||||
}
|
|
||||||
|
|
||||||
result = g_build_path (separator, sysconfdir, "gconf", "gconf.xml.defaults",
|
|
||||||
(gchar*)NULL);
|
|
||||||
g_free (sysconfdir);
|
|
||||||
//printf("Returning gconfdir %s\n", result);
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
@ -99,15 +99,6 @@ gchar *gnc_path_get_reportdir(void);
|
|||||||
* @returns A newly allocated string. */
|
* @returns A newly allocated string. */
|
||||||
gchar *gnc_path_get_stdreportsdir(void);
|
gchar *gnc_path_get_stdreportsdir(void);
|
||||||
|
|
||||||
/** Returns the gconf schema config source path, usually
|
|
||||||
* "$prefix/etc/gconf/gconf.xml.defaults".
|
|
||||||
*
|
|
||||||
* @param force_slashes Use slashes as separator of the elements
|
|
||||||
* of the path.
|
|
||||||
*
|
|
||||||
* @returns A newly allocated string. */
|
|
||||||
gchar *gnc_path_get_gconfdir(gboolean force_slashes);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif /* GNC_PATH_H */
|
#endif /* GNC_PATH_H */
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
SUBDIRS = gtkbuilder schemas gschemas . test ui
|
SUBDIRS = gtkbuilder gschemas . test ui
|
||||||
|
|
||||||
pkglib_LTLIBRARIES = libgncmod-gnome-utils.la
|
pkglib_LTLIBRARIES = libgncmod-gnome-utils.la
|
||||||
|
|
||||||
|
@ -60,7 +60,6 @@
|
|||||||
#define HL_PRINTCHECK "print-check"
|
#define HL_PRINTCHECK "print-check"
|
||||||
#define HL_RECNWIN "acct-reconcile"
|
#define HL_RECNWIN "acct-reconcile"
|
||||||
#define HL_SXEDITOR "tool-sched"
|
#define HL_SXEDITOR "tool-sched"
|
||||||
#define HL_GCONF "gconf"
|
|
||||||
#define HL_BOOK_OPTIONS "book-options"
|
#define HL_BOOK_OPTIONS "book-options"
|
||||||
#define HL_CLOSE_BOOK "tool-close-book"
|
#define HL_CLOSE_BOOK "tool-close-book"
|
||||||
|
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
schemadir = @GCONF_SCHEMA_FILE_DIR@
|
|
||||||
schemas_in_files = \
|
|
||||||
apps_gnucash_history.schemas.in
|
|
||||||
schema_DATA = $(schemas_in_files:.schemas.in=.schemas)
|
|
||||||
|
|
||||||
@INTLTOOL_SCHEMAS_RULE@
|
|
||||||
|
|
||||||
EXTRA_DIST = $(schemas_in_files)
|
|
||||||
|
|
||||||
CLEANFILES = $(schema_DATA)
|
|
||||||
|
|
||||||
install-data-local:
|
|
||||||
if GCONF_SCHEMAS_INSTALL
|
|
||||||
-mkdir -p $(DESTDIR)$(GCONF_SCHEMA_CONFIG_SOURCE_DIRONLY)
|
|
||||||
GCONF_CONFIG_SOURCE=xml::$(DESTDIR)$(GCONF_SCHEMA_CONFIG_SOURCE_DIRONLY) $(GCONFTOOL) --makefile-install-rule $(schema_DATA)
|
|
||||||
endif
|
|
||||||
|
|
||||||
uninstall-local:
|
|
||||||
if GCONF_SCHEMAS_INSTALL
|
|
||||||
GCONF_CONFIG_SOURCE=xml::$(DESTDIR)$(GCONF_SCHEMA_CONFIG_SOURCE_DIRONLY) $(GCONFTOOL) --makefile-uninstall-rule $(schema_DATA)
|
|
||||||
endif
|
|
@ -1,58 +0,0 @@
|
|||||||
<gconfschemafile>
|
|
||||||
<schemalist>
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/history/maxfiles</key>
|
|
||||||
<applyto>/apps/gnucash/history/maxfiles</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>int</type>
|
|
||||||
<default>4</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Number of files in history</short>
|
|
||||||
<long>
|
|
||||||
This setting contains the number of files to keep in the
|
|
||||||
Recently Opened Files menu. This value may be set to zero to
|
|
||||||
disable the file history. This number has a maximum value
|
|
||||||
of 10.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/history/first_file</key>
|
|
||||||
<applyto>/apps/gnucash/history/file0</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>string</type>
|
|
||||||
<default></default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Most recently opened file</short>
|
|
||||||
<long>
|
|
||||||
This field contains the full path of the most recently opened file.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/history/other_files</key>
|
|
||||||
<applyto>/apps/gnucash/history/file1</applyto>
|
|
||||||
<applyto>/apps/gnucash/history/file2</applyto>
|
|
||||||
<applyto>/apps/gnucash/history/file3</applyto>
|
|
||||||
<applyto>/apps/gnucash/history/file4</applyto>
|
|
||||||
<applyto>/apps/gnucash/history/file5</applyto>
|
|
||||||
<applyto>/apps/gnucash/history/file6</applyto>
|
|
||||||
<applyto>/apps/gnucash/history/file7</applyto>
|
|
||||||
<applyto>/apps/gnucash/history/file8</applyto>
|
|
||||||
<applyto>/apps/gnucash/history/file9</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>string</type>
|
|
||||||
<default></default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Next most recently opened file</short>
|
|
||||||
<long>
|
|
||||||
This field contains the full path of the next most recently opened file.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
</schemalist>
|
|
||||||
</gconfschemafile>
|
|
@ -1,4 +1,4 @@
|
|||||||
SUBDIRS = gtkbuilder schemas gschemas ui
|
SUBDIRS = gtkbuilder gschemas ui
|
||||||
|
|
||||||
lib_LTLIBRARIES = libgnc-gnome.la
|
lib_LTLIBRARIES = libgnc-gnome.la
|
||||||
|
|
||||||
|
@ -1,32 +0,0 @@
|
|||||||
schemadir = @GCONF_SCHEMA_FILE_DIR@
|
|
||||||
schemas_in_files = \
|
|
||||||
apps_gnucash_dialog_common.schemas.in \
|
|
||||||
apps_gnucash_dialog_commodities.schemas.in \
|
|
||||||
apps_gnucash_dialog_prices.schemas.in \
|
|
||||||
apps_gnucash_dialog_print_checks.schemas.in \
|
|
||||||
apps_gnucash_dialog_reconcile.schemas.in \
|
|
||||||
apps_gnucash_dialog_scheduled_transctions.schemas.in \
|
|
||||||
apps_gnucash_dialog_totd.schemas.in \
|
|
||||||
apps_gnucash_general.schemas.in \
|
|
||||||
apps_gnucash_warnings.schemas.in \
|
|
||||||
apps_gnucash_window_pages_account_tree.schemas.in \
|
|
||||||
apps_gnucash_window_pages_common.schemas.in \
|
|
||||||
apps_gnucash_window_pages_register.schemas.in
|
|
||||||
schema_DATA = $(schemas_in_files:.schemas.in=.schemas)
|
|
||||||
|
|
||||||
@INTLTOOL_SCHEMAS_RULE@
|
|
||||||
|
|
||||||
EXTRA_DIST = $(schemas_in_files)
|
|
||||||
|
|
||||||
CLEANFILES = $(schema_DATA)
|
|
||||||
|
|
||||||
install-data-local:
|
|
||||||
if GCONF_SCHEMAS_INSTALL
|
|
||||||
-mkdir -p $(DESTDIR)$(GCONF_SCHEMA_CONFIG_SOURCE_DIRONLY)
|
|
||||||
GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-install-rule $(schema_DATA)
|
|
||||||
endif
|
|
||||||
|
|
||||||
uninstall-local:
|
|
||||||
if GCONF_SCHEMAS_INSTALL
|
|
||||||
GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) $(GCONFTOOL) --makefile-uninstall-rule $(schema_DATA)
|
|
||||||
endif
|
|
@ -1,178 +0,0 @@
|
|||||||
<?xml version="1.0"?>
|
|
||||||
<gconfschemafile>
|
|
||||||
<schemalist>
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/edit_commodities/column_order</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/edit_commodities/column_order</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>list</type>
|
|
||||||
<list_type>string</list_type>
|
|
||||||
<default>[namespace,symbol,name,printname,uniquename,cusip_code,fraction,quote_flag,quote_source,quote_timezone]</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Order of columns in the dialog</short>
|
|
||||||
<long>This setting contains a list of names which controls the order
|
|
||||||
in which the columns are listed in the dialog. Names may be reordered
|
|
||||||
or removed from this list to control which columns appear in the dialog
|
|
||||||
and in what order.</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/edit_commodities/namespace_visible</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/edit_commodities/namespace_visible</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>TRUE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Show the Namespace column</short>
|
|
||||||
<long>Show the Namespace column</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/edit_commodities/symbol_visible</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/edit_commodities/symbol_visible</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>TRUE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Show the symbol column</short>
|
|
||||||
<long>Show the symbol column</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/edit_commodities/name_visible</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/edit_commodities/name_visible</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>TRUE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Show the name column</short>
|
|
||||||
<long>Show the name column</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/edit_commodities/fullname_visible</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/edit_commodities/fullname_visible</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>FALSE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Show the Full Name column</short>
|
|
||||||
<long>Show the Full Name column</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/edit_commodities/printname_visible</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/edit_commodities/printname_visible</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>FALSE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Show the Print Name column</short>
|
|
||||||
<long>Show the Print Name column</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/edit_commodities/uniquename_visible</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/edit_commodities/uniquename_visible</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>FALSE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Show the Unique Name column</short>
|
|
||||||
<long>Show the Unique Name column</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/edit_commodities/cusip_code_visible</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/edit_commodities/cusip_code_visible</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>TRUE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Show the ISIN/CUSIP Code (Exchange Specific Data) column</short>
|
|
||||||
<long>Show the ISIN/CUSIP Code (Exchange Specific Data) column</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/edit_commodities/fraction_visible</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/edit_commodities/fraction_visible</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>TRUE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Show the fraction column</short>
|
|
||||||
<long>Show the fraction column</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/edit_commodities/quote_flag_visible</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/edit_commodities/quote_flag_visible</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>FALSE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Show the Quote Flag column</short>
|
|
||||||
<long>Show the Quote Flag column</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/edit_commodities/quote_source_visible</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/edit_commodities/quote_source_visible</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>FALSE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Show the Quote Source column</short>
|
|
||||||
<long>Show the Quote Source column</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/edit_commodities/quote_timezone_visible</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/edit_commodities/quote_timezone_visible</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>FALSE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Show the Quote Timezone column</short>
|
|
||||||
<long>Show the Quote Timezone column</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/edit_commodities/width</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/edit_commodities/cusip_code_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/edit_commodities/fraction_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/edit_commodities/fullname_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/edit_commodities/namespace_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/edit_commodities/name_width</applyto>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/edit_commodities/printname_width</key>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/edit_commodities/quote_flag_width</key>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/edit_commodities/quote_source_width</key>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/edit_commodities/quote_timezone_width</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/edit_commodities/symbol_width</applyto>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/edit_commodities/uniquename_width</key>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>int</type>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Width of this column</short>
|
|
||||||
<long>
|
|
||||||
This setting stores the width of the given column in pixels.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/edit_commodities/include_iso</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/edit_commodities/include_iso</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>FALSE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Show currencies in this dialog</short>
|
|
||||||
<long>Show currencies in this dialog</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
</schemalist>
|
|
||||||
</gconfschemafile>
|
|
@ -1,215 +0,0 @@
|
|||||||
<?xml version="1.0"?>
|
|
||||||
<gconfschemafile>
|
|
||||||
<schemalist>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/position</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/account/window_position</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/business/bill/window_position</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/business/customer_search/window_position</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/business/employee_search/window_position</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/business/invoice/window_position</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/business/invoice_search/window_position</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/business/job_search/window_position</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/business/order_search/window_position</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/business/vendor_search/window_position</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/business/voucher/window_position</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/edit_commodities/window_position</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/edit_prices/window_position</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/export/csv/window_position</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/find/window_position</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/import/csv/window_position</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/import/generic_matcher/match_picker/window_position</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/import/generic_matcher/transaction_list/window_position</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/import/hbci/connection_dialog/window_position</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/new_hierarchy/window_position</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/scheduled_trans/since_last_run/window_position</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/scheduled_trans/transaction_editor/window_position</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/scheduled_trans/transaction_list/window_position</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/preferences/window_position</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/price_editor/window_position</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/print_checks/window_position</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/reset_warnings/window_position</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/tax_info/window_position</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/tip_of_the_day/window_position</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/transfer/window_position</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/window-reconcile/window_position</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>list</type>
|
|
||||||
<list_type>int</list_type>
|
|
||||||
<default>[]</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Window position</short>
|
|
||||||
<long>
|
|
||||||
This setting describes the last position of the window.
|
|
||||||
The numbers are the X and Y coordinates of the top left
|
|
||||||
corner of the window.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/geometry</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/account/window_geometry</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/business/bill/window_geometry</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/business/customer_search/window_geometry</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/business/employee_search/window_geometry</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/business/invoice/window_geometry</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/business/invoice_search/window_geometry</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/business/job_search/window_geometry</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/business/order_search/window_geometry</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/business/vendor_search/window_geometry</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/business/voucher/window_geometry</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/edit_commodities/window_geometry</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/edit_prices/window_geometry</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/export/csv/window_geometry</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/find/window_geometry</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/import/csv/window_geometry</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/import/generic_matcher/match_picker/window_geometry</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/import/generic_matcher/transaction_list/window_geometry</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/import/hbci/connection_dialog/window_geometry</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/new_hierarchy/window_geometry</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/scheduled_trans/since_last_run/window_geometry</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/scheduled_trans/transaction_editor/window_geometry</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/scheduled_trans/transaction_list/window_geometry</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/tax_info/window_geometry</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/preferences/window_geometry</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/price_editor/window_geometry</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/print_checks/window_geometry</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/reset_warnings/window_geometry</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/tip_of_the_day/window_geometry</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/transfer/window_geometry</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/window-reconcile/window_geometry</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>list</type>
|
|
||||||
<list_type>int</list_type>
|
|
||||||
<default>[]</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Window size</short>
|
|
||||||
<long>
|
|
||||||
This setting describes the size of the window when it was last closed.
|
|
||||||
The numbers are the width and height of the window.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/search_for_active_only</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/find/search_for_active_only</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Search only in active items</short>
|
|
||||||
<long>
|
|
||||||
This setting indicates whether to search in all items in the
|
|
||||||
current class, or only in 'active' items in the current
|
|
||||||
class.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/last_path</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/export_accounts/last_path</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/export/csv/last_path</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/import/csv/last_path</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/import/mt940/last_path</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/import/ofx/last_path</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/import/qif/last_path</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/log_replay/last_path</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/open_save/last_path</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>string</type>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Last pathname used</short>
|
|
||||||
<long>
|
|
||||||
This field contains the last pathname used by this window.
|
|
||||||
It will be used as the initial filename/pathname the next
|
|
||||||
time this window is opened.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/sort_column</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/edit_commodities/sort_column</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/edit_prices/sort_column</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/sort_column</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>list</type>
|
|
||||||
<list_type>string</list_type>
|
|
||||||
<default>[]</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Columns used for sorting</short>
|
|
||||||
<long>
|
|
||||||
This setting indicates which column in the tree is used for
|
|
||||||
sorting. Possible values for this setting are the name of any
|
|
||||||
column in this window (see the column_order key) or the
|
|
||||||
keyword 'none'.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/sort_order</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/edit_commodities/sort_order</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/edit_prices/sort_order</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/sort_order</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>list</type>
|
|
||||||
<list_type>string</list_type>
|
|
||||||
<default>[]</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Sort column ascending or descending</short>
|
|
||||||
<long>
|
|
||||||
This setting indicates how the key column is sorted. Possible
|
|
||||||
values for this setting are 'ascending' and 'descending'.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/new_user/first_startup</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/new_user/first_startup</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>TRUE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Show the new user window</short>
|
|
||||||
<long>
|
|
||||||
If active, the new user window will be shown. Otherwise it
|
|
||||||
will not be shown.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/new_hierarchy/show_on_new_file</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/new_hierarchy/show_on_new_file</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>TRUE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>New hierarchy window on "New File"</short>
|
|
||||||
<long>
|
|
||||||
If active, the "New Hierarchy" window will be shown whenever
|
|
||||||
the "New File" menu item is chosen. Otherwise it will not be
|
|
||||||
shown.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/search/new_search_limit</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/search/new_search_limit</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>float</type>
|
|
||||||
<default>1.0</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Default to 'new search' if fewer than this number of items is returned</short>
|
|
||||||
<long>Default to 'new search' if fewer than this number of items is returned</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
</schemalist>
|
|
||||||
</gconfschemafile>
|
|
@ -1,61 +0,0 @@
|
|||||||
<?xml version="1.0"?>
|
|
||||||
<gconfschemafile>
|
|
||||||
<schemalist>
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/edit_prices/column_order</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/edit_prices/column_order</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>list</type>
|
|
||||||
<list_type>string</list_type>
|
|
||||||
<default>[commodity,currency,date,source,type,price]</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Order of columns in the dialog</short>
|
|
||||||
<long>This setting contains a list of names which controls the order
|
|
||||||
in which the columns are listed in the dialog. Names may be reordered
|
|
||||||
or removed from this list to control which columns appear in the dialog
|
|
||||||
and in what order.</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/edit_prices/visibility</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/edit_prices/commodity_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/edit_prices/currency_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/edit_prices/date_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/edit_prices/source_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/edit_prices/type_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/edit_prices/price_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/edit_prices/security_visible</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>TRUE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Display this column</short>
|
|
||||||
<long>
|
|
||||||
This setting controls wether the given column will be visible in the
|
|
||||||
view. TRUE means visible, FALSE means hidden.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/edit_prices/width</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/edit_prices/commodity_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/edit_prices/currency_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/edit_prices/date_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/edit_prices/source_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/edit_prices/type_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/edit_prices/price_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/dialogs/edit_prices/security_width</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>int</type>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Width of this column</short>
|
|
||||||
<long>
|
|
||||||
This setting stores the width of the given column in pixels.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
</schemalist>
|
|
||||||
</gconfschemafile>
|
|
@ -1,168 +0,0 @@
|
|||||||
<?xml version="1.0"?>
|
|
||||||
<gconfschemafile>
|
|
||||||
<schemalist>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/print_checks/check_format</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/print_checks/check_format</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>int</type>
|
|
||||||
<default>0</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Index of predefined check format to use</short>
|
|
||||||
<long>This value specifies the predefined check format to use. The number is the 0-based index into the list of known check formats.</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/print_checks/check_position</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/print_checks/check_position</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>int</type>
|
|
||||||
<default>0</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Which check position to print</short>
|
|
||||||
<long>On preprinted checks containing multiple checks per page, this setting specifies which check position to print. The possible values are 0, 1 and 2, corresponding to the top, middle and bottom checks on the page.</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/print_checks/date_format</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/print_checks/date_format</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>int</type>
|
|
||||||
<default>0</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Date format to use</short>
|
|
||||||
<long>This is the numerical identifier of the predefined date format to use.</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/print_checks/date_format_user</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/print_checks/date_format_user</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>string</type>
|
|
||||||
<default>0</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Custom date format</short>
|
|
||||||
<long>If the 'date_format' is set to indicate a custom date format, this value is used as an argument to strftime to produce the date to be printed. It may be any valid strftime string; for more information about this format, read the manual page of strftime by "man 3 strftime".</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/print_checks/custom_payee</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/print_checks/custom_payee</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>list</type>
|
|
||||||
<list_type>int</list_type>
|
|
||||||
<default>[]</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Position of payee name</short>
|
|
||||||
<long>This value contains the X,Y coordinates for the start of the payee line on the check.</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/print_checks/custom_date</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/print_checks/custom_date</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>list</type>
|
|
||||||
<list_type>int</list_type>
|
|
||||||
<default>[]</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Position of date line</short>
|
|
||||||
<long>This value contains the X,Y coordinates for the start of the date line on the check. Coordinates are from the lower left corner of the specified check position.</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/print_checks/custom_amount_words</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/print_checks/custom_amount_words</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>list</type>
|
|
||||||
<list_type>int</list_type>
|
|
||||||
<default>[]</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Position of check amount in words</short>
|
|
||||||
<long>This value contains the X,Y coordinates for the start of the written amount line on the check. Coordinates are from the lower left corner of the specified check position.</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/print_checks/custom_amount_number</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/print_checks/custom_amount_number</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>list</type>
|
|
||||||
<list_type>int</list_type>
|
|
||||||
<default>[]</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Position of check amount in numbers</short>
|
|
||||||
<long>This value contains the X,Y coordinates for the start of the numerical amount line on the check. Coordinates are from the lower left corner of the specified check position.</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/print_checks/custom_memo</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/print_checks/custom_memo</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>list</type>
|
|
||||||
<list_type>int</list_type>
|
|
||||||
<default>[]</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Position of memo line</short>
|
|
||||||
<long>This value contains the X,Y coordinates for the start of the memo line on the check. Coordinates are from the lower left corner of the specified check position.</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/print_checks/custom_posistion</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/print_checks/custom_position</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>list</type>
|
|
||||||
<list_type>int</list_type>
|
|
||||||
<default>[]</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Position of check on page</short>
|
|
||||||
<long>This value contains the Y coordinate for the bottom edge of the check. This coordinate is from the bottom edge of the sheet of paper.</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/print_checks/print_date_format</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/print_checks/print_date_format</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>FALSE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Print the date format below the date.</short>
|
|
||||||
<long>Each time the date is printed, print the date format immediately below in 8 point type using the characters Y, M, and D.</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/print_checks/default_font</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/print_checks/default_font</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>string</type>
|
|
||||||
<default>sans 10</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>The default check printing font</short>
|
|
||||||
<long>The default font to use when printing checks. This value will be overridden by any font specified in a check description file.</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/print_checks/blocking_chars</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/print_checks/blocking_chars</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>FALSE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Print '***' before and after text.</short>
|
|
||||||
<long>Print '***' before and after text.</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
</schemalist>
|
|
||||||
</gconfschemafile>
|
|
@ -1,73 +0,0 @@
|
|||||||
<?xml version="1.0"?>
|
|
||||||
<gconfschemafile>
|
|
||||||
<schemalist>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/reconcile/check_cleared</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/reconcile/check_cleared</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>TRUE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Pre-select cleared transactions</short>
|
|
||||||
<long>
|
|
||||||
If active, all transactions marked as cleared in the
|
|
||||||
register will appear already selected in the reconcile
|
|
||||||
dialog. Otherwise no transactions will be initially
|
|
||||||
selected.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/reconcile/auto_interest_transfer</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/reconcile/auto_interest_transfer</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>FALSE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Prompt for interest charges</short>
|
|
||||||
<long>
|
|
||||||
Prior to reconciling an account which charges or pays
|
|
||||||
interest, prompt the user to enter a transaction for the
|
|
||||||
interest charge or payment. Currently only enabled for
|
|
||||||
Bank, Credit, Mutual, Asset, Receivable, Payable, and
|
|
||||||
Liability accounts.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/reconcile/auto_cc_payment</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/reconcile/auto_cc_payment</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>TRUE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Prompt for credit card payment</short>
|
|
||||||
<long>
|
|
||||||
If active, after reconciling a credit card account, prompt
|
|
||||||
the user to enter a credit card payment. Otherwise do not
|
|
||||||
prompt the user for this.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/reconcile/always_reconcile_to_today</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/reconcile/always_reconcile_to_today</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>FALSE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Always reconcile to today</short>
|
|
||||||
<long>
|
|
||||||
If active, always open the reconcile dialog using today's
|
|
||||||
date for the statement date, regardless of previous
|
|
||||||
reconciliations.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
</schemalist>
|
|
||||||
</gconfschemafile>
|
|
@ -1,84 +0,0 @@
|
|||||||
<?xml version="1.0"?>
|
|
||||||
<gconfschemafile>
|
|
||||||
<schemalist>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/scheduled_trans/since_last_run/show_at_file_open</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/scheduled_trans/since_last_run/show_at_file_open</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>TRUE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Show "since last run" dialog when a file is opened.</short>
|
|
||||||
<long>
|
|
||||||
This setting controls whether the scheduled transactions
|
|
||||||
"since last run" dialog is shown automatically when a data file is
|
|
||||||
opened. This includes the initial opening of the data
|
|
||||||
file when GnuCash starts. If this setting is active,
|
|
||||||
show the dialog, otherwise it is not shown.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/scheduled_trans/transaction_editor/create_auto</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/scheduled_trans/transaction_editor/create_auto</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>FALSE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Set the "auto create" flag by default</short>
|
|
||||||
<long>
|
|
||||||
If active, any newly created scheduled transaction will
|
|
||||||
have its 'auto create' flag set active by default. The user
|
|
||||||
can change this flag during transaction creation, or at
|
|
||||||
any later time by editing the scheduled transaction.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/scheduled_trans/transaction_editor/create_days</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/scheduled_trans/transaction_editor/create_days</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>float</type>
|
|
||||||
<default>0</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>How many days in advance to notify the user.</short>
|
|
||||||
<long>How many days in advance to notify the user.</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/scheduled_trans/transaction_editor/notify</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/scheduled_trans/transaction_editor/notify</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>TRUE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Set the "notify" flag by default</short>
|
|
||||||
<long>
|
|
||||||
If active, any newly created scheduled transaction will
|
|
||||||
have its 'notify' flag set by default. The user can
|
|
||||||
change this flag during transaction creation, or at any
|
|
||||||
later time by editing the scheduled transaction. This
|
|
||||||
setting only has meaning if the create_auto setting is
|
|
||||||
active.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/scheduled_trans/transaction_editor/remind_days</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/scheduled_trans/transaction_editor/remind_days</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>float</type>
|
|
||||||
<default>0</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>How many days in advance to remind the user.</short>
|
|
||||||
<long>How many days in advance to remind the user.</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
</schemalist>
|
|
||||||
</gconfschemafile>
|
|
@ -1,34 +0,0 @@
|
|||||||
<?xml version="1.0"?>
|
|
||||||
<gconfschemafile>
|
|
||||||
<schemalist>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/tip_of_the_day/show_at_startup</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/tip_of_the_day/show_at_startup</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>TRUE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Show "Tip Of The Day" at GnuCash start</short>
|
|
||||||
<long>
|
|
||||||
Enables the "Tip Of The Day" when GnuCash starts up. If
|
|
||||||
active, the dialog will be shown. Otherwise it will not be
|
|
||||||
shown.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dialogs/tip_of_the_day/current_tip</key>
|
|
||||||
<applyto>/apps/gnucash/dialogs/tip_of_the_day/current_tip</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>int</type>
|
|
||||||
<default>0</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>The next tip to show.</short>
|
|
||||||
<long>The next tip to show.</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
</schemalist>
|
|
||||||
</gconfschemafile>
|
|
@ -1,775 +0,0 @@
|
|||||||
<?xml version="1.0"?>
|
|
||||||
<gconfschemafile>
|
|
||||||
<schemalist>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/save_window_geometry</key>
|
|
||||||
<applyto>/apps/gnucash/general/save_window_geometry</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>TRUE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Save window sizes and locations</short>
|
|
||||||
<long>
|
|
||||||
If active, the size and location of each dialog window will
|
|
||||||
be saved when it is closed. The sizes and locations of
|
|
||||||
content windows will be remembered when you quit
|
|
||||||
GnuCash. Otherwise the sizes will not be saved.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/account_separator</key>
|
|
||||||
<applyto>/apps/gnucash/general/account_separator</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>string</type>
|
|
||||||
<default>colon</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Character to use as separator between account names</short>
|
|
||||||
<long>This setting determines the character that will be used between components of an account name. Possible values are any single non-alphanumeric unicode character, or any of the following strings: "colon" "slash", "backslash", "dash" and "period".</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/file_compression</key>
|
|
||||||
<applyto>/apps/gnucash/general/file_compression</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>TRUE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Compress the data file</short>
|
|
||||||
<long>Enables file compression when writing the data file.</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/autosave_show_explanation</key>
|
|
||||||
<applyto>/apps/gnucash/general/autosave_show_explanation</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>TRUE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Show auto-save explanation</short>
|
|
||||||
<long>If active, GnuCash shows an explanation of the auto-save feature the first time that feature is started. Otherwise no extra explanation is shown.</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/autosave_interval_minutes</key>
|
|
||||||
<applyto>/apps/gnucash/general/autosave_interval_minutes</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>float</type>
|
|
||||||
<default>5</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Auto-save time interval</short>
|
|
||||||
<long>The number of minutes until saving of the data file to harddisk will be started automatically. If zero, no saving will be started automatically.</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/negative_in_red</key>
|
|
||||||
<applyto>/apps/gnucash/general/negative_in_red</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>TRUE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Display negative amounts in red</short>
|
|
||||||
<long>Display negative amounts in red</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/auto_decimal_point</key>
|
|
||||||
<applyto>/apps/gnucash/general/auto_decimal_point</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>FALSE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Automatically insert a decimal point</short>
|
|
||||||
<long>
|
|
||||||
If active, GnuCash will automatically insert a decimal point
|
|
||||||
into values that are entered without one. Otherwise GnuCash
|
|
||||||
will not modify entered numbers.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/auto_decimal_places</key>
|
|
||||||
<applyto>/apps/gnucash/general/auto_decimal_places</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>float</type>
|
|
||||||
<default>2.0</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Number of automatic decimal places</short>
|
|
||||||
<long>This field specifies the number of automatic decimal places that will be filled in.</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/retain_type</key>
|
|
||||||
<applyto>/apps/gnucash/general/retain_type</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>string</type>
|
|
||||||
<default>days</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Keep all old log/backup files, no files or for a number of days</short>
|
|
||||||
<long>This setting specifies what to do with old log/backups files. "forever" means keep all old files. "never" means no old log/backup files are kept. Each time you save, older versions of the file are removed. "days" means keep old files for a number of days. How many days is defined in key 'retain_days'</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/retain_days</key>
|
|
||||||
<applyto>/apps/gnucash/general/retain_days</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>float</type>
|
|
||||||
<default>30.0</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Delete old log/backup files after this many days (0 = never)</short>
|
|
||||||
<long>This setting specifies the number of days after which old log/backup files will be deleted (0 = never).</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/reversed_accounts</key>
|
|
||||||
<applyto>/apps/gnucash/general/reversed_accounts</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>string</type>
|
|
||||||
<default>credit</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Accounts to reverse the balance</short>
|
|
||||||
<long>
|
|
||||||
This setting allows certain accounts to have their balances
|
|
||||||
reversed in sign from positive to negative, or vice versa.
|
|
||||||
The setting "income_expense" is for users who like to see
|
|
||||||
negative expenses and positive income. The setting of
|
|
||||||
"credit" is for users who want to see balances reflect the
|
|
||||||
debit/credit status of the account. The setting "none"
|
|
||||||
doesn't reverse the sign on any balances.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/toolbar_style</key>
|
|
||||||
<applyto>/apps/gnucash/general/toolbar_style</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>string</type>
|
|
||||||
<default>system</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Labels on toolbar buttons</short>
|
|
||||||
<long>
|
|
||||||
This setting controls how the labels on toolbar buttons are
|
|
||||||
shown. If set to "system" then GnuCash will use the desktop
|
|
||||||
setting for how to draw toolbar buttons. If set to "icon"
|
|
||||||
then only icons will be show on toolbar buttons.. If set to
|
|
||||||
"text" only the labels will be shown. If set to "both" then
|
|
||||||
both icons and labels will be shown. If set to "both-horiz"
|
|
||||||
then icons will be shown for all buttons with labels added
|
|
||||||
on important buttons.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/use_accounting_labels</key>
|
|
||||||
<applyto>/apps/gnucash/general/use_accounting_labels</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>FALSE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Use formal account labels</short>
|
|
||||||
<long>
|
|
||||||
If active, formal accounting labels "Credit" and "Debit"
|
|
||||||
will be used when designating fields on screen. Otherwise,
|
|
||||||
informal labels such as Increase/Decrease, "Funds In"/"Funds
|
|
||||||
Out", etc. will be used.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/show_account_color</key>
|
|
||||||
<applyto>/apps/gnucash/general/show_account_color</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>FALSE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Use the account color as background</short>
|
|
||||||
<long>
|
|
||||||
If active, the background color of the Account Name column
|
|
||||||
on the Accounts page is displayed as the account color.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/show_account_color_tabs</key>
|
|
||||||
<applyto>/apps/gnucash/general/show_account_color_tabs</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>FALSE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Use the account color as background on tabs</short>
|
|
||||||
<long>
|
|
||||||
If active, the background color of the register tabs
|
|
||||||
will be displayed in the account color.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/tab_close_buttons</key>
|
|
||||||
<applyto>/apps/gnucash/general/tab_close_buttons</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>FALSE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Show close buttons on notebook tabs</short>
|
|
||||||
<long>
|
|
||||||
If active, a "close" button will be displayed on any
|
|
||||||
notebook tab that may be closed. Otherwise, no such button
|
|
||||||
will be shown on the tab. Regardless of this setting, pages
|
|
||||||
can always be closed via the "close" menu item or the
|
|
||||||
"close" button on toolbar.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/tab_width</key>
|
|
||||||
<applyto>/apps/gnucash/general/tab_width</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>float</type>
|
|
||||||
<default>30.0</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Width of notebook tabs</short>
|
|
||||||
<long>
|
|
||||||
This key specifies the maximum width of notebook tabs.
|
|
||||||
If the text in the tab is longer than this value (the test
|
|
||||||
is approximate) then the tab label will have the middle cut
|
|
||||||
and replaced with an ellipsis.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/currency_choice</key>
|
|
||||||
<applyto>/apps/gnucash/general/currency_choice</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>string</type>
|
|
||||||
<default>locale</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Source of default account currency</short>
|
|
||||||
<long>
|
|
||||||
This setting controls the source of the default currency for
|
|
||||||
new accounts. If set to "locale" then GnuCash will retrieve
|
|
||||||
the default currency from the user's locale setting. If set
|
|
||||||
to "other", GnuCash will use the setting specified by the
|
|
||||||
currency_other key.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/currency_other</key>
|
|
||||||
<applyto>/apps/gnucash/general/currency_other</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>string</type>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Default currency for new accounts</short>
|
|
||||||
<long>
|
|
||||||
This setting specifies the default currency used for new
|
|
||||||
accounts if the currency_choice setting is set to "other".
|
|
||||||
This field must contain the three letter ISO 4217 code for a
|
|
||||||
currency (e.g. USD, GBP, RUB).
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/24hour_clock</key>
|
|
||||||
<applyto>/apps/gnucash/general/24hour_clock</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>FALSE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Use 24 hour time format</short>
|
|
||||||
<long>If active, use a 24 hour time format. Otherwise use a 12 hour time format.</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/date_format</key>
|
|
||||||
<applyto>/apps/gnucash/general/date_format</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>string</type>
|
|
||||||
<default>locale</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Date format choice</short>
|
|
||||||
<long>
|
|
||||||
This setting chooses the way dates are displayed in GnuCash.
|
|
||||||
Possible values for this setting are "locale" to use the
|
|
||||||
system locale setting, "ce" for Continental Europe style
|
|
||||||
dates, "iso" for ISO 8601 standard dates , "uk" for United
|
|
||||||
Kingdom style dates, and "us" for United States style dates.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/date_completion</key>
|
|
||||||
<applyto>/apps/gnucash/general/date_completion</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>string</type>
|
|
||||||
<default>thisyear</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>How to interpret dates without a year</short>
|
|
||||||
<long>
|
|
||||||
When a date is entered without year it can be completed so
|
|
||||||
that it will be within the current calendar year or close to
|
|
||||||
the current date based on a sliding window starting a set
|
|
||||||
number of months backwards in time.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/date_backmonths</key>
|
|
||||||
<applyto>/apps/gnucash/general/date_backmonths</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>float</type>
|
|
||||||
<default>6.0</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Maximum number of months to go back.</short>
|
|
||||||
<long>
|
|
||||||
Dates will be completed so that they are close to the current
|
|
||||||
date. Enter the maximum number of months to go backwards in
|
|
||||||
time when completing dates.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/show_splash_screen</key>
|
|
||||||
<applyto>/apps/gnucash/general/show_splash_screen</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>TRUE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Show splash screen</short>
|
|
||||||
<long>
|
|
||||||
If active, a splash screen will be shown at
|
|
||||||
startup. Otherwise no splash screen will be shown.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/register/use_theme_colors</key>
|
|
||||||
<applyto>/apps/gnucash/general/register/use_theme_colors</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>FALSE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Color the register as specified by the system theme</short>
|
|
||||||
<long>
|
|
||||||
If active, the register will be colored as specified by the
|
|
||||||
system theme. This can be overridden to provide custom
|
|
||||||
colors by editing the gtkrc file in the users home
|
|
||||||
directory. Otherwise the standard register colors will be
|
|
||||||
used that GnuCash has always used.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/register/selection_to_blank_on_expand</key>
|
|
||||||
<applyto>/apps/gnucash/general/register/selection_to_blank_on_expand</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>FALSE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Move Selection to blank split on expand</short>
|
|
||||||
<long>
|
|
||||||
If active, the selection will be moved to the blank split
|
|
||||||
when the transaction is expanded.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/register/show_calendar_buttons</key>
|
|
||||||
<applyto>/apps/gnucash/general/register/show_calendar_buttons</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>FALSE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Show the Calendar buttons</short>
|
|
||||||
<long>
|
|
||||||
If active, the Cancel, Today and Select buttons will be
|
|
||||||
shown in the calendar when it is dispalyed in the register.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/register/show_entered_date</key>
|
|
||||||
<applyto>/apps/gnucash/general/register/show_entered_date</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>FALSE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Show the Date Entered</short>
|
|
||||||
<long>
|
|
||||||
If active, the date the transaction was entered is shown below
|
|
||||||
the posted date.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/register/key_length</key>
|
|
||||||
<applyto>/schemas/apps/gnucash/general/register/key_length</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>float</type>
|
|
||||||
<default>2</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>The number of Characters needed</short>
|
|
||||||
<long>
|
|
||||||
This setting controls the number of characters needed before
|
|
||||||
the auto complete starts to work.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/register/max_transactions</key>
|
|
||||||
<applyto>/schemas/apps/gnucash/general/register/max_transactions</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>float</type>
|
|
||||||
<default>0</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>The number of transactions displayed</short>
|
|
||||||
<long>
|
|
||||||
This setting controls the maximum number of transactions that
|
|
||||||
are displayed in the register.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/register/enter_moves_to_end</key>
|
|
||||||
<applyto>/apps/gnucash/general/register/enter_moves_to_end</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>FALSE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>"Enter" key moves to bottom of register</short>
|
|
||||||
<long>
|
|
||||||
If active, pressing the enter key will move to the bottom of
|
|
||||||
the register. Otherwise pressing the enter key will move to
|
|
||||||
the next transaction line.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/register/auto_raise_lists</key>
|
|
||||||
<applyto>/apps/gnucash/general/register/auto_raise_lists</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>TRUE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Automatically raise the list of accounts or actions during input</short>
|
|
||||||
<long>Automatically raise the list of accounts or actions during input</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/register/tab_includes_transfer_on_memorised</key>
|
|
||||||
<applyto>/apps/gnucash/general/register/tab_includes_transfer_on_memorised</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>FALSE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Move to Transfer field when memorised transaction auto filled</short>
|
|
||||||
<long>If active then after a memorised transaction is automatically filled in the cursor will move to the Transfer field. If not active then it skips to the value field.</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/register/use_new_window</key>
|
|
||||||
<applyto>/apps/gnucash/general/register/use_new_window</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>FALSE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Create a new window for each new register</short>
|
|
||||||
<long>
|
|
||||||
If active, each new register will be opened in a new
|
|
||||||
window. Otherwise each new register will be opened as a tab
|
|
||||||
in the main window.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/register/alternate_color_by_transaction</key>
|
|
||||||
<applyto>/apps/gnucash/general/register/alternate_color_by_transaction</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>FALSE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Color all lines of a transaction the same</short>
|
|
||||||
<long>
|
|
||||||
If active all lines that make up a single transaction will use
|
|
||||||
the same color for their background. Otherwise the
|
|
||||||
background colors are alternated on each line.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/register/draw_horizontal_lines</key>
|
|
||||||
<applyto>/apps/gnucash/general/register/draw_horizontal_lines</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>TRUE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Show horizontal borders in a register</short>
|
|
||||||
<long>
|
|
||||||
Show horizontal borders between rows in a register. If active
|
|
||||||
the border between cells will be indicated with a heavy line.
|
|
||||||
Otherwise the border between cells will not be marked.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/register/draw_vertical_lines</key>
|
|
||||||
<applyto>/apps/gnucash/general/register/draw_vertical_lines</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>TRUE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Show vertical borders in a register</short>
|
|
||||||
<long>
|
|
||||||
Show vertical borders between columns in a register. If active
|
|
||||||
the border between cells will be indicated with a heavy line.
|
|
||||||
Otherwise the border between cells will not be marked.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/register/default_style</key>
|
|
||||||
<applyto>/apps/gnucash/general/register/default_style</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>string</type>
|
|
||||||
<default>ledger</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Default view style for new register</short>
|
|
||||||
<long>
|
|
||||||
This field specifies the default view style when opening a
|
|
||||||
new register window. Possible values are "ledger",
|
|
||||||
"auto-ledger" and "journal". The "ledger" setting says to
|
|
||||||
show each transaction on one or two lines. The
|
|
||||||
"auto-ledger" setting does the same, but also expands only
|
|
||||||
the current transaction to show all splits. The "journal"
|
|
||||||
setting shows all transactions in expanded form.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/register/double_line_mode</key>
|
|
||||||
<applyto>/apps/gnucash/general/register/double_line_mode</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>FALSE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Show two lines of information for each transaction</short>
|
|
||||||
<long>
|
|
||||||
Show two lines of information for each transaction in a
|
|
||||||
register. This is the default setting for when a register
|
|
||||||
is first opened. The setting can be changed at any time via
|
|
||||||
the "View->Double Line" menu item.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/register/show_leaf_account_names</key>
|
|
||||||
<applyto>/apps/gnucash/general/register/show_leaf_account_names</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>FALSE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Only display leaf account names.</short>
|
|
||||||
<long>
|
|
||||||
Show only the names of the leaf accounts in the register and in the
|
|
||||||
account selection popup. The default behaviour is to display the full
|
|
||||||
name, including the path in the account tree. Activating this option
|
|
||||||
implies that you use unique leaf names.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/report/use_new_window</key>
|
|
||||||
<applyto>/apps/gnucash/general/report/use_new_window</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>FALSE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Create a new window for each new report</short>
|
|
||||||
<long>
|
|
||||||
If active, each new report will be opened in its own window.
|
|
||||||
Otherwise new reports will be opened as tabs in the main
|
|
||||||
window.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/report/currency_choice</key>
|
|
||||||
<applyto>/apps/gnucash/general/report/currency_choice</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>string</type>
|
|
||||||
<default>locale</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Source of default report currency</short>
|
|
||||||
<long>
|
|
||||||
This setting controls the default currency used for
|
|
||||||
reports. If set to "locale" then GnuCash will retrieve the
|
|
||||||
default currency from the user's locale setting. If set to
|
|
||||||
"other", GnuCash will use the setting specified by the
|
|
||||||
currency_other key.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/report/currency_other</key>
|
|
||||||
<applyto>/apps/gnucash/general/report/currency_other</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>string</type>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Default currency for new reports</short>
|
|
||||||
<long>
|
|
||||||
This setting specifies the default currency used for reports
|
|
||||||
if the currency_choice setting is set to "other". This field
|
|
||||||
must contain the three letter ISO 4217 code for a currency
|
|
||||||
(e.g. USD, GBP, RUB).
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/report/pdf_export/filename_format</key>
|
|
||||||
<applyto>/apps/gnucash/general/report/pdf_export/filename_format</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>string</type>
|
|
||||||
<default>%1$s_%2$s_%3$s</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>PDF export file name format</short>
|
|
||||||
<long>
|
|
||||||
This setting chooses the file name for PDF export. This is a
|
|
||||||
sprintf(3) string with three arguments: "%1$s" is the report
|
|
||||||
name such as "Invoice". "%2$s" is the number of the report,
|
|
||||||
which for an invoice report is the invoice number. "%3$s" is
|
|
||||||
the date of the report, formatted according to the
|
|
||||||
filename_date_format setting. (Note: Any characters that are
|
|
||||||
not allowed in filenames, such as '/', will be replaced with
|
|
||||||
underscores '_' in the resulting file name.)
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/report/pdf_export/filename_date_format</key>
|
|
||||||
<applyto>/apps/gnucash/general/report/pdf_export/filename_date_format</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>string</type>
|
|
||||||
<default>locale</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>PDF export file name date format choice</short>
|
|
||||||
<long>
|
|
||||||
This setting chooses the way dates are used in the filename
|
|
||||||
of PDF export.
|
|
||||||
Possible values for this setting are "locale" to use the
|
|
||||||
system locale setting, "ce" for Continental Europe style
|
|
||||||
dates, "iso" for ISO 8601 standard dates , "uk" for United
|
|
||||||
Kingdom style dates, and "us" for United States style dates.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/tab_position</key>
|
|
||||||
<applyto>/apps/gnucash/general/tab_position</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>string</type>
|
|
||||||
<default>top</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Position of the notebook tabs</short>
|
|
||||||
<long>
|
|
||||||
This setting determines the edge at which the tabs for
|
|
||||||
switching pages in notebooks are drawn. Possible values
|
|
||||||
are "top", "left", "bottom" and "right".
|
|
||||||
It defaults to "top".
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/summarybar_position</key>
|
|
||||||
<applyto>/apps/gnucash/general/summarybar_position</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>string</type>
|
|
||||||
<default>bottom</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Position of the summary bar</short>
|
|
||||||
<long>
|
|
||||||
This setting determines the edge at which the summary bar
|
|
||||||
for various pages is drawn. Possible values are "top"
|
|
||||||
and "bottom".
|
|
||||||
It defaults to "bottom".
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/dev/allow_file_incompatibility</key>
|
|
||||||
<applyto>/apps/gnucash/dev/allow_file_incompatibility</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>false</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Allow file incompatibility with older versions.</short>
|
|
||||||
<long>If active, gnucash will be allowed to intentionally
|
|
||||||
break file compatibility with older versions, so that a data
|
|
||||||
file saved in this version cannot be read by an older version
|
|
||||||
again. Otherwise gnucash will write data files only in formats
|
|
||||||
that can be read by older versions as well.</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/tab_next_recent</key>
|
|
||||||
<applyto>/apps/gnucash/general/tab_next_recent</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>FALSE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Closing a tab moves to the most recently visited tab.</short>
|
|
||||||
<long>
|
|
||||||
If active, closing a tab moves to the most recently visited tab. Otherwise closing a tab moves one tab to the left.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
</schemalist>
|
|
||||||
</gconfschemafile>
|
|
@ -1,227 +0,0 @@
|
|||||||
<?xml version="1.0"?>
|
|
||||||
<gconfschemafile>
|
|
||||||
<schemalist>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/warnings/change_reconciled_split</key>
|
|
||||||
<applyto>/apps/gnucash/general/warnings/permanent/change_reconciled_split</applyto>
|
|
||||||
<applyto>/apps/gnucash/general/warnings/temporary/change_reconciled_split</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>int</type>
|
|
||||||
<default>0</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Change contents of reconciled split</short>
|
|
||||||
<long>This dialog is presented before allowing you to change the contents of a reconciled split. Allowing these changes can make it hard to perform future reconciliations.</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/warnings/mark_split_unreconciled</key>
|
|
||||||
<applyto>/apps/gnucash/general/warnings/permanent/mark_split_unreconciled</applyto>
|
|
||||||
<applyto>/apps/gnucash/general/warnings/temporary/mark_split_unreconciled</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>int</type>
|
|
||||||
<default>0</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Mark transaction split as unreconciled</short>
|
|
||||||
<long>This dialog is presented before allowing you to mark a transaction split as unreconciled. Doing so will throw off the reconciled value of the register and can make it hard to perform future reconciliations.</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/warnings/register_read_only</key>
|
|
||||||
<applyto>/apps/gnucash/general/warnings/permanent/register_read_only</applyto>
|
|
||||||
<applyto>/apps/gnucash/general/warnings/temporary/register_read_only</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>int</type>
|
|
||||||
<default>0</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Read only register</short>
|
|
||||||
<long>This dialog is presented when a read-only register is opened.</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/warnings/register_delete_trans</key>
|
|
||||||
<applyto>/apps/gnucash/general/warnings/permanent/register_delete_trans</applyto>
|
|
||||||
<applyto>/apps/gnucash/general/warnings/temporary/register_delete_trans</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>int</type>
|
|
||||||
<default>0</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Delete a transaction</short>
|
|
||||||
<long>This dialog is presented before allowing you to delete a transaction.</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/warnings/register_delete_trans2</key>
|
|
||||||
<applyto>/apps/gnucash/general/warnings/permanent/register_delete_trans2</applyto>
|
|
||||||
<applyto>/apps/gnucash/general/warnings/temporary/register_delete_trans2</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>int</type>
|
|
||||||
<default>0</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Delete a transaction</short>
|
|
||||||
<long>This dialog is presented before allowing you to delete a transaction that contains reconciled splits. Doing so will throw off the reconciled value of the register and can make it hard to perform future reconciliations.</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/warnings/register_delete_split</key>
|
|
||||||
<applyto>/apps/gnucash/general/warnings/permanent/register_delete_split</applyto>
|
|
||||||
<applyto>/apps/gnucash/general/warnings/temporary/register_delete_split</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>int</type>
|
|
||||||
<default>0</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Remove a split from a transaction</short>
|
|
||||||
<long>This dialog is presented before allowing you to remove a split from a transaction.</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/warnings/register_delete_split2</key>
|
|
||||||
<applyto>/apps/gnucash/general/warnings/permanent/register_delete_split2</applyto>
|
|
||||||
<applyto>/apps/gnucash/general/warnings/temporary/register_delete_split2</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>int</type>
|
|
||||||
<default>0</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Remove a reconciled split from a transaction</short>
|
|
||||||
<long>This dialog is presented before allowing you to remove a reconciled split from a transaction. Doing so will throw off the reconciled value of the register and can make it hard to perform future reconciliations.</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/warnings/register_remove_all_splits</key>
|
|
||||||
<applyto>/apps/gnucash/general/warnings/permanent/register_remove_all_splits</applyto>
|
|
||||||
<applyto>/apps/gnucash/general/warnings/temporary/register_remove_all_splits</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>int</type>
|
|
||||||
<default>0</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Remove all the splits from a transaction</short>
|
|
||||||
<long>This dialog is presented before allowing you to remove all splits from a transaction.</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/warnings/register_remove_all_splits2</key>
|
|
||||||
<applyto>/apps/gnucash/general/warnings/permanent/register_remove_all_splits2</applyto>
|
|
||||||
<applyto>/apps/gnucash/general/warnings/temporary/register_remove_all_splits2</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>int</type>
|
|
||||||
<default>0</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Remove all the splits from a transaction</short>
|
|
||||||
<long>This dialog is presented before allowing you to remove all splits (including some reconciled splits) from a transaction. Doing so will throw off the reconciled value of the register and can make it hard to perform future reconciliations.</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/warnings/transaction_changed</key>
|
|
||||||
<applyto>/apps/gnucash/general/warnings/permanent/transaction_changed</applyto>
|
|
||||||
<applyto>/apps/gnucash/general/warnings/temporary/transaction_changed</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>int</type>
|
|
||||||
<default>0</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Commit changes to a transaction</short>
|
|
||||||
<long>This dialog is presented when you attempt to move out of a modified transaction. The changed data must be either saved or discarded.</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/warnings/transaction_duplicated</key>
|
|
||||||
<applyto>/apps/gnucash/general/warnings/permanent/transaction_duplicated</applyto>
|
|
||||||
<applyto>/apps/gnucash/general/warnings/temporary/transaction_duplicated</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>int</type>
|
|
||||||
<default>0</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Duplicating a changed transaction</short>
|
|
||||||
<long>This dialog is presented when you attempt to duplicate a modified transaction. The changed data must be saved or the duplication canceled.</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/warnings/invoice_entry_changed</key>
|
|
||||||
<applyto>/apps/gnucash/general/warnings/permanent/invoice_entry_changed</applyto>
|
|
||||||
<applyto>/apps/gnucash/general/warnings/temporary/invoice_entry_changed</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>int</type>
|
|
||||||
<default>0</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Commit changes to a invoice_entry</short>
|
|
||||||
<long>This dialog is presented when you attempt to move out of a modified invoice entry. The changed data must be either saved or discarded.</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/warnings/invoice_entry_duplicated</key>
|
|
||||||
<applyto>/apps/gnucash/general/warnings/permanent/invoice_entry_duplicated</applyto>
|
|
||||||
<applyto>/apps/gnucash/general/warnings/temporary/invoice_entry_duplicated</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>int</type>
|
|
||||||
<default>0</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Duplicating a changed invoice_entry</short>
|
|
||||||
<long>This dialog is presented when you attempt to duplicate a modified invoice entry. The changed data must be saved or the duplication canceled.</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/warnings/delete_commodity</key>
|
|
||||||
<applyto>/apps/gnucash/general/warnings/permanent/delete_commodity</applyto>
|
|
||||||
<applyto>/apps/gnucash/general/warnings/temporary/delete_commodity</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>int</type>
|
|
||||||
<default>0</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Delete a commodity</short>
|
|
||||||
<long>This dialog is presented before allowing you to delete a commodity.</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/warnings/delete_commodity2</key>
|
|
||||||
<applyto>/apps/gnucash/general/warnings/permanent/delete_commodity2</applyto>
|
|
||||||
<applyto>/apps/gnucash/general/warnings/temporary/delete_commodity2</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>int</type>
|
|
||||||
<default>0</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Delete a commodity and prices</short>
|
|
||||||
<long>This dialog is presented before allowing you to delete a commodity that has price quotes attached. Deleting the commodity will delete the quotes as well.</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/warnings/pricedb_remove_multiple</key>
|
|
||||||
<applyto>/apps/gnucash/general/warnings/permanent/pricedb_remove_multiple</applyto>
|
|
||||||
<applyto>/apps/gnucash/general/warnings/temporary/pricedb_remove_multiple</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>int</type>
|
|
||||||
<default>0</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Delete multiple price quotes</short>
|
|
||||||
<long>This dialog is presented before allowing you to delete multiple price quotes at one time.</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/general/warnings/print_multi_acct_checks</key>
|
|
||||||
<applyto>/apps/gnucash/general/warnings/permanent/print_multi_acct_checks</applyto>
|
|
||||||
<applyto>/apps/gnucash/general/warnings/temporary/print_multi_acct_checks</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>int</type>
|
|
||||||
<default>0</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Print checks from multiple accounts</short>
|
|
||||||
<long>This dialog is presented if you try to print checks from multiple accounts at the same time.</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
</schemalist>
|
|
||||||
</gconfschemafile>
|
|
@ -1,135 +0,0 @@
|
|||||||
<?xml version="1.0"?>
|
|
||||||
<gconfschemafile>
|
|
||||||
<schemalist>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/window/pages/account_tree/summary/grand_total</key>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/summary/grand_total</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>TRUE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Show a grand total of all accounts converted to the default report currency</short>
|
|
||||||
<long>Show a grand total of all accounts converted to the default report currency</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/window/pages/account_tree/summary/non_currency</key>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/summary/non_currency</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<default>TRUE</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Show non currency commodities</short>
|
|
||||||
<long>If active, non currency commodities (stocks) will be
|
|
||||||
shown. Otherwise they will be hidden.</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/window/pages/account_tree/summary/start_choice</key>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/summary/start_choice</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>string</type>
|
|
||||||
<default>relative</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Profit/loss starting date type</short>
|
|
||||||
<long>
|
|
||||||
This setting controls the type of starting date used in
|
|
||||||
profit/loss calculations. If set to "absolute" then GnuCash
|
|
||||||
will retrieve the starting date specified by the start_date
|
|
||||||
key. If set to anything else, GnuCash will retrieve the
|
|
||||||
starting date specified by the start_period key.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/window/pages/account_tree/summary/start_date</key>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/summary/start_date</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>int</type>
|
|
||||||
<default>0</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Starting date (in seconds from Jan 1, 1970)</short>
|
|
||||||
<long>
|
|
||||||
This setting controls the starting date set in profit/loss
|
|
||||||
calculations if the start_choice setting is set to "absolute".
|
|
||||||
This field should contain a date as represented in seconds
|
|
||||||
from January 1st, 1970.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/window/pages/account_tree/summary/start_period</key>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/summary/start_period</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>int</type>
|
|
||||||
<default>5</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Starting time period identifier</short>
|
|
||||||
<long>
|
|
||||||
This setting controls the starting date set in profit/loss
|
|
||||||
calculations if the start_choice setting is set to anything
|
|
||||||
other than "absolute". This field should contain a value
|
|
||||||
between 0 and 8.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/window/pages/account_tree/summary/end_choice</key>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/summary/end_choice</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>string</type>
|
|
||||||
<default>relative</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Profit/loss ending date type</short>
|
|
||||||
<long>
|
|
||||||
This setting controls the type of ending date used in
|
|
||||||
profit/loss calculations. If set to "absolute" then GnuCash
|
|
||||||
will retrieve the ending date specified by the end_date
|
|
||||||
key. If set to anything else, GnuCash will retrieve the
|
|
||||||
ending date specified by the end_period key.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/window/pages/account_tree/summary/end_date</key>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/summary/end_date</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>int</type>
|
|
||||||
<default>0</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Ending date (in seconds from Jan 1, 1970)</short>
|
|
||||||
<long>
|
|
||||||
This setting controls the ending date set in profit/loss
|
|
||||||
calculations if the end_choice setting is set to "absolute".
|
|
||||||
This field should contain a date as represented in seconds
|
|
||||||
from January 1st, 1970.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/window/pages/account_tree/summary/end_period</key>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/summary/end_period</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>int</type>
|
|
||||||
<default>5</default>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Ending time period identifier</short>
|
|
||||||
<long>
|
|
||||||
This setting controls the ending date set in profit/loss
|
|
||||||
calculations if the end_choice setting is set to anything
|
|
||||||
other than "absolute". This field should contain a value
|
|
||||||
between 0 and 8.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
</schemalist>
|
|
||||||
</gconfschemafile>
|
|
@ -1,121 +0,0 @@
|
|||||||
<?xml version="1.0"?>
|
|
||||||
<gconfschemafile>
|
|
||||||
<schemalist>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/window/pages/visibility</key>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/account-code_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/balance-period_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/balance_report_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/balance_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/cleared_report_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/cleared_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/commodity_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/description_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/future_min_report_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/future_min_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/lastnum_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/last-recon-date_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/name_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/notes_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/placeholder_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/present_report_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/present_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/reconciled_report_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/reconciled_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/tax-info_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/total-period_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/total_report_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/total_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/type_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/customer_tree/active_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/customer_tree/address-1_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/customer_tree/address-2_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/customer_tree/address-3_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/customer_tree/address-4_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/customer_tree/address-name_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/customer_tree/balance-report_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/customer_tree/balance_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/customer_tree/currency_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/customer_tree/email_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/customer_tree/fax_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/customer_tree/name_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/customer_tree/notes_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/customer_tree/owner-id_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/customer_tree/phone_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/customer_tree/type_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/sx_list/enabled_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/sx_list/frequency_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/sx_list/last-occur_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/sx_list/name_visible</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/sx_list/next-occur_visible</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>bool</type>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Display this column</short>
|
|
||||||
<long>
|
|
||||||
This setting controls wether the given column will be visible in the
|
|
||||||
view. TRUE means visible, FALSE means hidden.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/window/pages/width</key>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/account-code_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/balance-period_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/balance_report_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/balance_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/cleared_report_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/cleared_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/commodity_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/description_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/future_min_report_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/future_min_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/lastnum_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/last-recon-date_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/name_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/notes_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/placeholder_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/present_report_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/present_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/reconciled_report_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/reconciled_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/tax-info_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/total-period_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/total_report_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/total_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/account_tree/type_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/customer_tree/active_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/customer_tree/address-1_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/customer_tree/address-2_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/customer_tree/address-3_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/customer_tree/address-4_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/customer_tree/address-name_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/customer_tree/balance-report_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/customer_tree/balance_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/customer_tree/currency_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/customer_tree/email_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/customer_tree/fax_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/customer_tree/name_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/customer_tree/notes_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/customer_tree/owner-id_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/customer_tree/phone_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/customer_tree/type_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/sx_list/enabled_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/sx_list/frequency_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/sx_list/last-occur_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/sx_list/name_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/sx_list/next-occur_width</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>int</type>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Width of this column</short>
|
|
||||||
<long>
|
|
||||||
This setting stores the width of the given column in pixels.
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
</schemalist>
|
|
||||||
</gconfschemafile>
|
|
@ -1,26 +0,0 @@
|
|||||||
<?xml version="1.0"?>
|
|
||||||
<gconfschemafile>
|
|
||||||
<schemalist>
|
|
||||||
<schema>
|
|
||||||
<key>/schemas/apps/gnucash/window/pages/register/width</key>
|
|
||||||
<applyto>/apps/gnucash/window/pages/register/balance_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/register/credit_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/register/date-due_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/register/debit_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/register/num_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/register/split-type_width</applyto>
|
|
||||||
<applyto>/apps/gnucash/window/pages/register/transfer_width</applyto>
|
|
||||||
<owner>gnucash</owner>
|
|
||||||
<type>int</type>
|
|
||||||
<locale name="C">
|
|
||||||
<short>Width of a column in the dialog</short>
|
|
||||||
<long>
|
|
||||||
This setting contains the width of the named column in the most
|
|
||||||
recently closed register window. Changing these values will
|
|
||||||
change the sizes of the columns in the next opened register
|
|
||||||
</long>
|
|
||||||
</locale>
|
|
||||||
</schema>
|
|
||||||
|
|
||||||
</schemalist>
|
|
||||||
</gconfschemafile>
|
|
Loading…
Reference in New Issue
Block a user