diff --git a/configure.ac b/configure.ac index ff382a88e8..f59c5faf9d 100644 --- a/configure.ac +++ b/configure.ac @@ -61,16 +61,6 @@ AM_PROG_CC_C_O AC_GNU_SOURCE 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_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) -### -------------------------------------------------------------------------- -### 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 @@ -1319,12 +1299,10 @@ AC_CONFIG_FILES( src/gnome/Makefile src/gnome/gtkbuilder/Makefile src/gnome/gschemas/Makefile - src/gnome/schemas/Makefile src/gnome/ui/Makefile src/gnome-utils/Makefile src/gnome-utils/gtkbuilder/Makefile src/gnome-utils/gschemas/Makefile - src/gnome-utils/schemas/Makefile src/gnome-utils/test/Makefile src/gnome-utils/ui/Makefile src/gnome-search/Makefile diff --git a/packaging/win32/crossbuild_webkit.sh b/packaging/win32/crossbuild_webkit.sh index 06cafe368c..e9839480eb 100755 --- a/packaging/win32/crossbuild_webkit.sh +++ b/packaging/win32/crossbuild_webkit.sh @@ -191,8 +191,7 @@ function inst_libxslt_gnome() { else add_to_env pkg-config PKG_CONFIG fi - if quiet gconftool-2 --version && - quiet ${PKG_CONFIG} --exists libxslt && + if quiet ${PKG_CONFIG} --exists libxslt && [ -f $_GNOME_UDIR/lib/pkgconfig/libxslt.pc ] && quiet intltoolize --version then @@ -245,8 +244,7 @@ function check_gnome() { else add_to_env pkg-config PKG_CONFIG fi - if quiet gconftool-2 --version && - quiet ${PKG_CONFIG} --exists gconf-2.0 gtk+-2.0 cairo libxml-2.0 && + if quiet ${PKG_CONFIG} --exists gtk+-2.0 cairo libxml-2.0 && quiet intltoolize --version then echo "gnome packages installed." @@ -282,8 +280,7 @@ function inst_enchant () { else add_to_env pkg-config PKG_CONFIG fi - if quiet gconftool-2 --version && - quiet ${PKG_CONFIG} --exists enchant && + if quiet ${PKG_CONFIG} --exists enchant && [ -f $_GNOME_UDIR/lib/pkgconfig/enchant.pc ] && quiet intltoolize --version then @@ -307,8 +304,7 @@ function inst_libsoup () { else add_to_env pkg-config PKG_CONFIG fi - if quiet gconftool-2 --version && - quiet ${PKG_CONFIG} --exists libsoup-2.4 && + if quiet ${PKG_CONFIG} --exists libsoup-2.4 && [ -f $_GNOME_UDIR/lib/pkgconfig/libsoup-2.4.pc ] && quiet intltoolize --version then @@ -357,8 +353,7 @@ function inst_webkit() { else add_to_env pkg-config PKG_CONFIG fi - if quiet gconftool-2 --version && - quiet ${PKG_CONFIG} --exists webkit-1.0 && + if quiet ${PKG_CONFIG} --exists webkit-1.0 && [ -f $_GNOME_UDIR/lib/pkgconfig/webkit-1.0.pc ] && quiet intltoolize --version then diff --git a/packaging/win32/defaults.sh b/packaging/win32/defaults.sh index 8ec22d4348..ba381d355c 100644 --- a/packaging/win32/defaults.sh +++ b/packaging/win32/defaults.sh @@ -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 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" -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 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" diff --git a/packaging/win32/dist-impl.sh b/packaging/win32/dist-impl.sh index 8f29c30d3f..e179f4b1e7 100755 --- a/packaging/win32/dist-impl.sh +++ b/packaging/win32/dist-impl.sh @@ -52,7 +52,6 @@ Please set AQBANKING_WITH_QT to yes and rerun install.sh first." _ISOCODES_UDIR=`unix_path $ISOCODES_DIR` _MINGW_WFSDIR=`win_fs_path $MINGW_DIR` 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 _PID=$$ @@ -87,7 +86,6 @@ function dist_gnome() { wget_unpacked $FONTCONFIG_URL $DOWNLOAD_DIR $DIST_DIR wget_unpacked $FREETYPE_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 $GETTEXT_RUNTIME_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 - rm -rf $DIST_UDIR/etc/gconf/gconf.xml.defaults/{desktop,schemas} if [ -d $DIST_UDIR/lib/locale ] ; then # Huh, is this removed in newer gtk? cp -a $DIST_UDIR/lib/locale $DIST_UDIR/share @@ -233,8 +230,6 @@ function dist_gnucash() { mkdir -p $DIST_UDIR/bin cp $_MINGW_UDIR/bin/pthreadGC2.dll $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 cp -a $_INSTALL_UDIR/etc/gnucash/* $DIST_UDIR/etc/gnucash cp -a $_INSTALL_UDIR/lib/lib*.la $DIST_UDIR/bin @@ -263,19 +258,6 @@ function dist_gnucash() { } 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 assert_one_dir ${DIST_UDIR}/lib/aqbanking/plugins/*/wizards _qt3_wizard_path=`ls ${DIST_UDIR}/lib/aqbanking/plugins/*/wizards/qt3-wizard.exe` diff --git a/packaging/win32/install-impl.sh b/packaging/win32/install-impl.sh index 9dda4e3310..f8d88d54b8 100644 --- a/packaging/win32/install-impl.sh +++ b/packaging/win32/install-impl.sh @@ -502,9 +502,7 @@ function inst_gnome() { else add_to_env pkg-config PKG_CONFIG fi - if quiet gconftool-2 --version && - quiet ${PKG_CONFIG} --atleast-version=${GCONF_VERSION} gconf-2.0 && - quiet ${PKG_CONFIG} --atleast-version=${GTK_VERSION} gtk+-2.0 && + if quiet ${PKG_CONFIG} --atleast-version=${GTK_VERSION} gtk+-2.0 && quiet ${PKG_CONFIG} --atleast-version=${CAIRO_VERSION} cairo && quiet ${PKG_CONFIG} --exact-version=${LIBXML2_VERSION} libxml-2.0 && quiet intltoolize --version @@ -524,8 +522,6 @@ function inst_gnome() { wget_unpacked $FREETYPE_DEV_URL $DOWNLOAD_DIR $GNOME_DIR wget_unpacked $GAIL_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_DEV_URL $DOWNLOAD_DIR $GNOME_DIR wget_unpacked $GETTEXT_RUNTIME_URL $DOWNLOAD_DIR $GNOME_DIR @@ -574,10 +570,6 @@ function inst_gnome() { qpushd $_GNOME_UDIR assert_one_dir $TMP_UDIR/gtk-doc-* 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 sed '1s,!.*perl,!'"$INTLTOOL_PERL"',;s,/opt/gnu/bin/iconv,iconv,' $file > tmp mv tmp $file @@ -620,8 +612,6 @@ EOF #perl -pi.bak -e's!^Libs: !Libs: -L\${prefix}/bin !' *.pc 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=${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}" @@ -1458,7 +1448,7 @@ function inst_gnucash() { # This function will be called by make_install.sh as well, # so do not regard variables from inst_* functions as set -# Parameters allowed: skip_scripts, skip_schemas +# Parameters allowed: skip_scripts function make_install() { _BUILD_UDIR=`unix_path $BUILD_DIR` _INSTALL_UDIR=`unix_path $INSTALL_DIR` @@ -1483,7 +1473,6 @@ function make_install() { for param in "$@"; do [ "$param" = "skip_scripts" ] && _skip_scripts=1 - [ "$param" = "skip_schemas" ] && _skip_schemas=1 done make install @@ -1511,17 +1500,6 @@ function make_install() { done 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 # Create a startup script that works without the msys shell # If you make any changes here, you should probably also change diff --git a/src/app-utils/Makefile.am b/src/app-utils/Makefile.am index 2f1664efcc..c5cc02dc1b 100644 --- a/src/app-utils/Makefile.am +++ b/src/app-utils/Makefile.am @@ -33,7 +33,6 @@ AM_CPPFLAGS = \ ${GUILE_INCS} \ ${PYTHON_CPPFLAGS} \ ${GLIB_CFLAGS} \ - ${GCONF_CFLAGS} \ ${GTK_CFLAGS} libgncmod_app_utils_la_SOURCES = \ @@ -52,7 +51,6 @@ libgncmod_app_utils_la_SOURCES = \ gnc-entry-quickfill.c \ gnc-euro.c \ gnc-exp-parser.c \ - gnc-gconf-utils.c \ gnc-gettext-util.c \ gnc-gsettings.c \ gnc-helpers.c \ @@ -79,7 +77,6 @@ gncinclude_HEADERS = \ gnc-entry-quickfill.h \ gnc-euro.h \ gnc-exp-parser.h \ - gnc-gconf-utils.h \ gnc-gettext-util.h \ gnc-gsettings.h \ gnc-help-utils.h \ @@ -98,7 +95,6 @@ libgncmod_app_utils_la_LIBADD = \ ${top_builddir}/src/engine/libgncmod-engine.la \ ${top_builddir}/src/core-utils/libgnc-core-utils.la \ ${top_builddir}/src/libqof/qof/libgnc-qof.la \ - ${GCONF_LIBS} \ ${GTK_LIBS} \ ${GUILE_LIBS} \ ${GLIB_LIBS} diff --git a/src/app-utils/gnc-gconf-utils.c b/src/app-utils/gnc-gconf-utils.c deleted file mode 100644 index 2b14319f2a..0000000000 --- a/src/app-utils/gnc-gconf-utils.c +++ /dev/null @@ -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 * - * * - * 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 -#include -#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); -} diff --git a/src/app-utils/gnc-gconf-utils.h b/src/app-utils/gnc-gconf-utils.h deleted file mode 100644 index 7a3d51ee7f..0000000000 --- a/src/app-utils/gnc-gconf-utils.h +++ /dev/null @@ -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 * - * * - * 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 - */ - - -#ifndef GNC_GCONF_UTILS_H -#define GNC_GCONF_UTILS_H - -#include - -/* 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 */ -/** @} */ -/** @} */ diff --git a/src/core-utils/gnc-path.c b/src/core-utils/gnc-path.c index 3f2265626d..c7dee88654 100644 --- a/src/core-utils/gnc-path.c +++ b/src/core-utils/gnc-path.c @@ -194,30 +194,3 @@ gchar *gnc_path_get_stdreportsdir() 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; -} - diff --git a/src/core-utils/gnc-path.h b/src/core-utils/gnc-path.h index 647a01a820..26cc35834a 100644 --- a/src/core-utils/gnc-path.h +++ b/src/core-utils/gnc-path.h @@ -99,15 +99,6 @@ gchar *gnc_path_get_reportdir(void); * @returns A newly allocated string. */ 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 */ diff --git a/src/gnome-utils/Makefile.am b/src/gnome-utils/Makefile.am index dcf220cd64..b7c9e3e7ee 100644 --- a/src/gnome-utils/Makefile.am +++ b/src/gnome-utils/Makefile.am @@ -1,4 +1,4 @@ -SUBDIRS = gtkbuilder schemas gschemas . test ui +SUBDIRS = gtkbuilder gschemas . test ui pkglib_LTLIBRARIES = libgncmod-gnome-utils.la diff --git a/src/gnome-utils/gnc-ui.h b/src/gnome-utils/gnc-ui.h index 76ba1c1ebc..e99489ecaa 100644 --- a/src/gnome-utils/gnc-ui.h +++ b/src/gnome-utils/gnc-ui.h @@ -60,7 +60,6 @@ #define HL_PRINTCHECK "print-check" #define HL_RECNWIN "acct-reconcile" #define HL_SXEDITOR "tool-sched" -#define HL_GCONF "gconf" #define HL_BOOK_OPTIONS "book-options" #define HL_CLOSE_BOOK "tool-close-book" diff --git a/src/gnome-utils/schemas/Makefile.am b/src/gnome-utils/schemas/Makefile.am deleted file mode 100644 index 7e5e204655..0000000000 --- a/src/gnome-utils/schemas/Makefile.am +++ /dev/null @@ -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 diff --git a/src/gnome-utils/schemas/apps_gnucash_history.schemas.in b/src/gnome-utils/schemas/apps_gnucash_history.schemas.in deleted file mode 100644 index fcdfa9b232..0000000000 --- a/src/gnome-utils/schemas/apps_gnucash_history.schemas.in +++ /dev/null @@ -1,58 +0,0 @@ - - - - /schemas/apps/gnucash/history/maxfiles - /apps/gnucash/history/maxfiles - gnucash - int - 4 - - Number of files in history - - 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. - - - - - - /schemas/apps/gnucash/history/first_file - /apps/gnucash/history/file0 - gnucash - string - - - Most recently opened file - - This field contains the full path of the most recently opened file. - - - - - - - /schemas/apps/gnucash/history/other_files - /apps/gnucash/history/file1 - /apps/gnucash/history/file2 - /apps/gnucash/history/file3 - /apps/gnucash/history/file4 - /apps/gnucash/history/file5 - /apps/gnucash/history/file6 - /apps/gnucash/history/file7 - /apps/gnucash/history/file8 - /apps/gnucash/history/file9 - gnucash - string - - - Next most recently opened file - - This field contains the full path of the next most recently opened file. - - - - - - diff --git a/src/gnome/Makefile.am b/src/gnome/Makefile.am index 566be89c73..d95d73084c 100644 --- a/src/gnome/Makefile.am +++ b/src/gnome/Makefile.am @@ -1,4 +1,4 @@ -SUBDIRS = gtkbuilder schemas gschemas ui +SUBDIRS = gtkbuilder gschemas ui lib_LTLIBRARIES = libgnc-gnome.la diff --git a/src/gnome/schemas/Makefile.am b/src/gnome/schemas/Makefile.am deleted file mode 100644 index beb74280e7..0000000000 --- a/src/gnome/schemas/Makefile.am +++ /dev/null @@ -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 diff --git a/src/gnome/schemas/apps_gnucash_dialog_commodities.schemas.in b/src/gnome/schemas/apps_gnucash_dialog_commodities.schemas.in deleted file mode 100644 index 27de022d58..0000000000 --- a/src/gnome/schemas/apps_gnucash_dialog_commodities.schemas.in +++ /dev/null @@ -1,178 +0,0 @@ - - - - - /schemas/apps/gnucash/dialogs/edit_commodities/column_order - /apps/gnucash/dialogs/edit_commodities/column_order - gnucash - list - string - [namespace,symbol,name,printname,uniquename,cusip_code,fraction,quote_flag,quote_source,quote_timezone] - - Order of columns in the dialog - 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. - - - - - /schemas/apps/gnucash/dialogs/edit_commodities/namespace_visible - /apps/gnucash/dialogs/edit_commodities/namespace_visible - gnucash - bool - TRUE - - Show the Namespace column - Show the Namespace column - - - - /schemas/apps/gnucash/dialogs/edit_commodities/symbol_visible - /apps/gnucash/dialogs/edit_commodities/symbol_visible - gnucash - bool - TRUE - - Show the symbol column - Show the symbol column - - - - /schemas/apps/gnucash/dialogs/edit_commodities/name_visible - /apps/gnucash/dialogs/edit_commodities/name_visible - gnucash - bool - TRUE - - Show the name column - Show the name column - - - - /schemas/apps/gnucash/dialogs/edit_commodities/fullname_visible - /apps/gnucash/dialogs/edit_commodities/fullname_visible - gnucash - bool - FALSE - - Show the Full Name column - Show the Full Name column - - - - /schemas/apps/gnucash/dialogs/edit_commodities/printname_visible - /apps/gnucash/dialogs/edit_commodities/printname_visible - gnucash - bool - FALSE - - Show the Print Name column - Show the Print Name column - - - - /schemas/apps/gnucash/dialogs/edit_commodities/uniquename_visible - /apps/gnucash/dialogs/edit_commodities/uniquename_visible - gnucash - bool - FALSE - - Show the Unique Name column - Show the Unique Name column - - - - /schemas/apps/gnucash/dialogs/edit_commodities/cusip_code_visible - /apps/gnucash/dialogs/edit_commodities/cusip_code_visible - gnucash - bool - TRUE - - Show the ISIN/CUSIP Code (Exchange Specific Data) column - Show the ISIN/CUSIP Code (Exchange Specific Data) column - - - - /schemas/apps/gnucash/dialogs/edit_commodities/fraction_visible - /apps/gnucash/dialogs/edit_commodities/fraction_visible - gnucash - bool - TRUE - - Show the fraction column - Show the fraction column - - - - /schemas/apps/gnucash/dialogs/edit_commodities/quote_flag_visible - /apps/gnucash/dialogs/edit_commodities/quote_flag_visible - gnucash - bool - FALSE - - Show the Quote Flag column - Show the Quote Flag column - - - - /schemas/apps/gnucash/dialogs/edit_commodities/quote_source_visible - /apps/gnucash/dialogs/edit_commodities/quote_source_visible - gnucash - bool - FALSE - - Show the Quote Source column - Show the Quote Source column - - - - /schemas/apps/gnucash/dialogs/edit_commodities/quote_timezone_visible - /apps/gnucash/dialogs/edit_commodities/quote_timezone_visible - gnucash - bool - FALSE - - Show the Quote Timezone column - Show the Quote Timezone column - - - - - /schemas/apps/gnucash/dialogs/edit_commodities/width - /apps/gnucash/dialogs/edit_commodities/cusip_code_width - /apps/gnucash/dialogs/edit_commodities/fraction_width - /apps/gnucash/dialogs/edit_commodities/fullname_width - /apps/gnucash/dialogs/edit_commodities/namespace_width - /apps/gnucash/dialogs/edit_commodities/name_width - /schemas/apps/gnucash/dialogs/edit_commodities/printname_width - /schemas/apps/gnucash/dialogs/edit_commodities/quote_flag_width - /schemas/apps/gnucash/dialogs/edit_commodities/quote_source_width - /schemas/apps/gnucash/dialogs/edit_commodities/quote_timezone_width - /apps/gnucash/dialogs/edit_commodities/symbol_width - /schemas/apps/gnucash/dialogs/edit_commodities/uniquename_width - gnucash - int - - Width of this column - - This setting stores the width of the given column in pixels. - - - - - - /schemas/apps/gnucash/dialogs/edit_commodities/include_iso - /apps/gnucash/dialogs/edit_commodities/include_iso - gnucash - bool - FALSE - - Show currencies in this dialog - Show currencies in this dialog - - - - - diff --git a/src/gnome/schemas/apps_gnucash_dialog_common.schemas.in b/src/gnome/schemas/apps_gnucash_dialog_common.schemas.in deleted file mode 100644 index ab02d953eb..0000000000 --- a/src/gnome/schemas/apps_gnucash_dialog_common.schemas.in +++ /dev/null @@ -1,215 +0,0 @@ - - - - - - /schemas/apps/gnucash/dialogs/position - /apps/gnucash/dialogs/account/window_position - /apps/gnucash/dialogs/business/bill/window_position - /apps/gnucash/dialogs/business/customer_search/window_position - /apps/gnucash/dialogs/business/employee_search/window_position - /apps/gnucash/dialogs/business/invoice/window_position - /apps/gnucash/dialogs/business/invoice_search/window_position - /apps/gnucash/dialogs/business/job_search/window_position - /apps/gnucash/dialogs/business/order_search/window_position - /apps/gnucash/dialogs/business/vendor_search/window_position - /apps/gnucash/dialogs/business/voucher/window_position - /apps/gnucash/dialogs/edit_commodities/window_position - /apps/gnucash/dialogs/edit_prices/window_position - /apps/gnucash/dialogs/export/csv/window_position - /apps/gnucash/dialogs/find/window_position - /apps/gnucash/dialogs/import/csv/window_position - /apps/gnucash/dialogs/import/generic_matcher/match_picker/window_position - /apps/gnucash/dialogs/import/generic_matcher/transaction_list/window_position - /apps/gnucash/dialogs/import/hbci/connection_dialog/window_position - /apps/gnucash/dialogs/new_hierarchy/window_position - /apps/gnucash/dialogs/scheduled_trans/since_last_run/window_position - /apps/gnucash/dialogs/scheduled_trans/transaction_editor/window_position - /apps/gnucash/dialogs/scheduled_trans/transaction_list/window_position - /apps/gnucash/dialogs/preferences/window_position - /apps/gnucash/dialogs/price_editor/window_position - /apps/gnucash/dialogs/print_checks/window_position - /apps/gnucash/dialogs/reset_warnings/window_position - /apps/gnucash/dialogs/tax_info/window_position - /apps/gnucash/dialogs/tip_of_the_day/window_position - /apps/gnucash/dialogs/transfer/window_position - /apps/gnucash/dialogs/window-reconcile/window_position - gnucash - list - int - [] - - Window position - - 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. - - - - - - /schemas/apps/gnucash/dialogs/geometry - /apps/gnucash/dialogs/account/window_geometry - /apps/gnucash/dialogs/business/bill/window_geometry - /apps/gnucash/dialogs/business/customer_search/window_geometry - /apps/gnucash/dialogs/business/employee_search/window_geometry - /apps/gnucash/dialogs/business/invoice/window_geometry - /apps/gnucash/dialogs/business/invoice_search/window_geometry - /apps/gnucash/dialogs/business/job_search/window_geometry - /apps/gnucash/dialogs/business/order_search/window_geometry - /apps/gnucash/dialogs/business/vendor_search/window_geometry - /apps/gnucash/dialogs/business/voucher/window_geometry - /apps/gnucash/dialogs/edit_commodities/window_geometry - /apps/gnucash/dialogs/edit_prices/window_geometry - /apps/gnucash/dialogs/export/csv/window_geometry - /apps/gnucash/dialogs/find/window_geometry - /apps/gnucash/dialogs/import/csv/window_geometry - /apps/gnucash/dialogs/import/generic_matcher/match_picker/window_geometry - /apps/gnucash/dialogs/import/generic_matcher/transaction_list/window_geometry - /apps/gnucash/dialogs/import/hbci/connection_dialog/window_geometry - /apps/gnucash/dialogs/new_hierarchy/window_geometry - /apps/gnucash/dialogs/scheduled_trans/since_last_run/window_geometry - /apps/gnucash/dialogs/scheduled_trans/transaction_editor/window_geometry - /apps/gnucash/dialogs/scheduled_trans/transaction_list/window_geometry - /apps/gnucash/dialogs/tax_info/window_geometry - /apps/gnucash/dialogs/preferences/window_geometry - /apps/gnucash/dialogs/price_editor/window_geometry - /apps/gnucash/dialogs/print_checks/window_geometry - /apps/gnucash/dialogs/reset_warnings/window_geometry - /apps/gnucash/dialogs/tip_of_the_day/window_geometry - /apps/gnucash/dialogs/transfer/window_geometry - /apps/gnucash/dialogs/window-reconcile/window_geometry - gnucash - list - int - [] - - Window size - - This setting describes the size of the window when it was last closed. - The numbers are the width and height of the window. - - - - - - /schemas/apps/gnucash/dialogs/search_for_active_only - /apps/gnucash/dialogs/find/search_for_active_only - gnucash - bool - - Search only in active items - - This setting indicates whether to search in all items in the - current class, or only in 'active' items in the current - class. - - - - - - /schemas/apps/gnucash/dialogs/last_path - /apps/gnucash/dialogs/export_accounts/last_path - /apps/gnucash/dialogs/export/csv/last_path - /apps/gnucash/dialogs/import/csv/last_path - /apps/gnucash/dialogs/import/mt940/last_path - /apps/gnucash/dialogs/import/ofx/last_path - /apps/gnucash/dialogs/import/qif/last_path - /apps/gnucash/dialogs/log_replay/last_path - /apps/gnucash/dialogs/open_save/last_path - gnucash - string - - Last pathname used - - 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. - - - - - - /schemas/apps/gnucash/dialogs/sort_column - /apps/gnucash/dialogs/edit_commodities/sort_column - /apps/gnucash/dialogs/edit_prices/sort_column - /apps/gnucash/window/pages/account_tree/sort_column - gnucash - list - string - [] - - Columns used for sorting - - 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'. - - - - - - /schemas/apps/gnucash/dialogs/sort_order - /apps/gnucash/dialogs/edit_commodities/sort_order - /apps/gnucash/dialogs/edit_prices/sort_order - /apps/gnucash/window/pages/account_tree/sort_order - gnucash - list - string - [] - - Sort column ascending or descending - - This setting indicates how the key column is sorted. Possible - values for this setting are 'ascending' and 'descending'. - - - - - - /schemas/apps/gnucash/dialogs/new_user/first_startup - /apps/gnucash/dialogs/new_user/first_startup - gnucash - bool - TRUE - - Show the new user window - - If active, the new user window will be shown. Otherwise it - will not be shown. - - - - - - /schemas/apps/gnucash/dialogs/new_hierarchy/show_on_new_file - /apps/gnucash/dialogs/new_hierarchy/show_on_new_file - gnucash - bool - TRUE - - New hierarchy window on "New File" - - If active, the "New Hierarchy" window will be shown whenever - the "New File" menu item is chosen. Otherwise it will not be - shown. - - - - - - /schemas/apps/gnucash/dialogs/search/new_search_limit - /apps/gnucash/dialogs/search/new_search_limit - gnucash - float - 1.0 - - Default to 'new search' if fewer than this number of items is returned - Default to 'new search' if fewer than this number of items is returned - - - - - diff --git a/src/gnome/schemas/apps_gnucash_dialog_prices.schemas.in b/src/gnome/schemas/apps_gnucash_dialog_prices.schemas.in deleted file mode 100644 index 8356a3f9aa..0000000000 --- a/src/gnome/schemas/apps_gnucash_dialog_prices.schemas.in +++ /dev/null @@ -1,61 +0,0 @@ - - - - - /schemas/apps/gnucash/dialogs/edit_prices/column_order - /apps/gnucash/dialogs/edit_prices/column_order - gnucash - list - string - [commodity,currency,date,source,type,price] - - Order of columns in the dialog - 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. - - - - - /schemas/apps/gnucash/dialogs/edit_prices/visibility - /apps/gnucash/dialogs/edit_prices/commodity_visible - /apps/gnucash/dialogs/edit_prices/currency_visible - /apps/gnucash/dialogs/edit_prices/date_visible - /apps/gnucash/dialogs/edit_prices/source_visible - /apps/gnucash/dialogs/edit_prices/type_visible - /apps/gnucash/dialogs/edit_prices/price_visible - /apps/gnucash/dialogs/edit_prices/security_visible - gnucash - bool - TRUE - - Display this column - - This setting controls wether the given column will be visible in the - view. TRUE means visible, FALSE means hidden. - - - - - - /schemas/apps/gnucash/dialogs/edit_prices/width - /apps/gnucash/dialogs/edit_prices/commodity_width - /apps/gnucash/dialogs/edit_prices/currency_width - /apps/gnucash/dialogs/edit_prices/date_width - /apps/gnucash/dialogs/edit_prices/source_width - /apps/gnucash/dialogs/edit_prices/type_width - /apps/gnucash/dialogs/edit_prices/price_width - /apps/gnucash/dialogs/edit_prices/security_width - gnucash - int - - Width of this column - - This setting stores the width of the given column in pixels. - - - - - - diff --git a/src/gnome/schemas/apps_gnucash_dialog_print_checks.schemas.in b/src/gnome/schemas/apps_gnucash_dialog_print_checks.schemas.in deleted file mode 100644 index eb3b12232e..0000000000 --- a/src/gnome/schemas/apps_gnucash_dialog_print_checks.schemas.in +++ /dev/null @@ -1,168 +0,0 @@ - - - - - - /schemas/apps/gnucash/dialogs/print_checks/check_format - /apps/gnucash/dialogs/print_checks/check_format - gnucash - int - 0 - - Index of predefined check format to use - This value specifies the predefined check format to use. The number is the 0-based index into the list of known check formats. - - - - - /schemas/apps/gnucash/dialogs/print_checks/check_position - /apps/gnucash/dialogs/print_checks/check_position - gnucash - int - 0 - - Which check position to print - 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. - - - - - /schemas/apps/gnucash/dialogs/print_checks/date_format - /apps/gnucash/dialogs/print_checks/date_format - gnucash - int - 0 - - Date format to use - This is the numerical identifier of the predefined date format to use. - - - - - /schemas/apps/gnucash/dialogs/print_checks/date_format_user - /apps/gnucash/dialogs/print_checks/date_format_user - gnucash - string - 0 - - Custom date format - 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". - - - - - /schemas/apps/gnucash/dialogs/print_checks/custom_payee - /apps/gnucash/dialogs/print_checks/custom_payee - gnucash - list - int - [] - - Position of payee name - This value contains the X,Y coordinates for the start of the payee line on the check. - - - - - /schemas/apps/gnucash/dialogs/print_checks/custom_date - /apps/gnucash/dialogs/print_checks/custom_date - gnucash - list - int - [] - - Position of date line - 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. - - - - - /schemas/apps/gnucash/dialogs/print_checks/custom_amount_words - /apps/gnucash/dialogs/print_checks/custom_amount_words - gnucash - list - int - [] - - Position of check amount in words - 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. - - - - - /schemas/apps/gnucash/dialogs/print_checks/custom_amount_number - /apps/gnucash/dialogs/print_checks/custom_amount_number - gnucash - list - int - [] - - Position of check amount in numbers - 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. - - - - - /schemas/apps/gnucash/dialogs/print_checks/custom_memo - /apps/gnucash/dialogs/print_checks/custom_memo - gnucash - list - int - [] - - Position of memo line - 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. - - - - - /schemas/apps/gnucash/dialogs/print_checks/custom_posistion - /apps/gnucash/dialogs/print_checks/custom_position - gnucash - list - int - [] - - Position of check on page - 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. - - - - - /schemas/apps/gnucash/dialogs/print_checks/print_date_format - /apps/gnucash/dialogs/print_checks/print_date_format - gnucash - bool - FALSE - - Print the date format below the date. - Each time the date is printed, print the date format immediately below in 8 point type using the characters Y, M, and D. - - - - - /schemas/apps/gnucash/dialogs/print_checks/default_font - /apps/gnucash/dialogs/print_checks/default_font - gnucash - string - sans 10 - - The default check printing font - The default font to use when printing checks. This value will be overridden by any font specified in a check description file. - - - - - /schemas/apps/gnucash/dialogs/print_checks/blocking_chars - /apps/gnucash/dialogs/print_checks/blocking_chars - gnucash - bool - FALSE - - Print '***' before and after text. - Print '***' before and after text. - - - - - diff --git a/src/gnome/schemas/apps_gnucash_dialog_reconcile.schemas.in b/src/gnome/schemas/apps_gnucash_dialog_reconcile.schemas.in deleted file mode 100644 index 67d961f519..0000000000 --- a/src/gnome/schemas/apps_gnucash_dialog_reconcile.schemas.in +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - /schemas/apps/gnucash/dialogs/reconcile/check_cleared - /apps/gnucash/dialogs/reconcile/check_cleared - gnucash - bool - TRUE - - Pre-select cleared transactions - - 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. - - - - - - /schemas/apps/gnucash/dialogs/reconcile/auto_interest_transfer - /apps/gnucash/dialogs/reconcile/auto_interest_transfer - gnucash - bool - FALSE - - Prompt for interest charges - - 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. - - - - - - /schemas/apps/gnucash/dialogs/reconcile/auto_cc_payment - /apps/gnucash/dialogs/reconcile/auto_cc_payment - gnucash - bool - TRUE - - Prompt for credit card payment - - 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. - - - - - - /schemas/apps/gnucash/dialogs/reconcile/always_reconcile_to_today - /apps/gnucash/dialogs/reconcile/always_reconcile_to_today - gnucash - bool - FALSE - - Always reconcile to today - - If active, always open the reconcile dialog using today's - date for the statement date, regardless of previous - reconciliations. - - - - - - diff --git a/src/gnome/schemas/apps_gnucash_dialog_scheduled_transctions.schemas.in b/src/gnome/schemas/apps_gnucash_dialog_scheduled_transctions.schemas.in deleted file mode 100644 index 3d9f11db8a..0000000000 --- a/src/gnome/schemas/apps_gnucash_dialog_scheduled_transctions.schemas.in +++ /dev/null @@ -1,84 +0,0 @@ - - - - - - /schemas/apps/gnucash/dialogs/scheduled_trans/since_last_run/show_at_file_open - /apps/gnucash/dialogs/scheduled_trans/since_last_run/show_at_file_open - gnucash - bool - TRUE - - Show "since last run" dialog when a file is opened. - - 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. - - - - - - /schemas/apps/gnucash/dialogs/scheduled_trans/transaction_editor/create_auto - /apps/gnucash/dialogs/scheduled_trans/transaction_editor/create_auto - gnucash - bool - FALSE - - Set the "auto create" flag by default - - 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. - - - - - - /schemas/apps/gnucash/dialogs/scheduled_trans/transaction_editor/create_days - /apps/gnucash/dialogs/scheduled_trans/transaction_editor/create_days - gnucash - float - 0 - - How many days in advance to notify the user. - How many days in advance to notify the user. - - - - - /schemas/apps/gnucash/dialogs/scheduled_trans/transaction_editor/notify - /apps/gnucash/dialogs/scheduled_trans/transaction_editor/notify - gnucash - bool - TRUE - - Set the "notify" flag by default - - 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. - - - - - - /schemas/apps/gnucash/dialogs/scheduled_trans/transaction_editor/remind_days - /apps/gnucash/dialogs/scheduled_trans/transaction_editor/remind_days - gnucash - float - 0 - - How many days in advance to remind the user. - How many days in advance to remind the user. - - - - - diff --git a/src/gnome/schemas/apps_gnucash_dialog_totd.schemas.in b/src/gnome/schemas/apps_gnucash_dialog_totd.schemas.in deleted file mode 100644 index 4108d851f5..0000000000 --- a/src/gnome/schemas/apps_gnucash_dialog_totd.schemas.in +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - /schemas/apps/gnucash/dialogs/tip_of_the_day/show_at_startup - /apps/gnucash/dialogs/tip_of_the_day/show_at_startup - gnucash - bool - TRUE - - Show "Tip Of The Day" at GnuCash start - - Enables the "Tip Of The Day" when GnuCash starts up. If - active, the dialog will be shown. Otherwise it will not be - shown. - - - - - - /schemas/apps/gnucash/dialogs/tip_of_the_day/current_tip - /apps/gnucash/dialogs/tip_of_the_day/current_tip - gnucash - int - 0 - - The next tip to show. - The next tip to show. - - - - - diff --git a/src/gnome/schemas/apps_gnucash_general.schemas.in b/src/gnome/schemas/apps_gnucash_general.schemas.in deleted file mode 100644 index f9cccdc771..0000000000 --- a/src/gnome/schemas/apps_gnucash_general.schemas.in +++ /dev/null @@ -1,775 +0,0 @@ - - - - - - /schemas/apps/gnucash/general/save_window_geometry - /apps/gnucash/general/save_window_geometry - gnucash - bool - TRUE - - Save window sizes and locations - - 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. - - - - - - /schemas/apps/gnucash/general/account_separator - /apps/gnucash/general/account_separator - gnucash - string - colon - - Character to use as separator between account names - 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". - - - - - /schemas/apps/gnucash/general/file_compression - /apps/gnucash/general/file_compression - gnucash - bool - TRUE - - Compress the data file - Enables file compression when writing the data file. - - - - - /schemas/apps/gnucash/general/autosave_show_explanation - /apps/gnucash/general/autosave_show_explanation - gnucash - bool - TRUE - - Show auto-save explanation - If active, GnuCash shows an explanation of the auto-save feature the first time that feature is started. Otherwise no extra explanation is shown. - - - - - /schemas/apps/gnucash/general/autosave_interval_minutes - /apps/gnucash/general/autosave_interval_minutes - gnucash - float - 5 - - Auto-save time interval - The number of minutes until saving of the data file to harddisk will be started automatically. If zero, no saving will be started automatically. - - - - - /schemas/apps/gnucash/general/negative_in_red - /apps/gnucash/general/negative_in_red - gnucash - bool - TRUE - - Display negative amounts in red - Display negative amounts in red - - - - - /schemas/apps/gnucash/general/auto_decimal_point - /apps/gnucash/general/auto_decimal_point - gnucash - bool - FALSE - - Automatically insert a decimal point - - If active, GnuCash will automatically insert a decimal point - into values that are entered without one. Otherwise GnuCash - will not modify entered numbers. - - - - - - /schemas/apps/gnucash/general/auto_decimal_places - /apps/gnucash/general/auto_decimal_places - gnucash - float - 2.0 - - Number of automatic decimal places - This field specifies the number of automatic decimal places that will be filled in. - - - - - /schemas/apps/gnucash/general/retain_type - /apps/gnucash/general/retain_type - gnucash - string - days - - Keep all old log/backup files, no files or for a number of days - 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' - - - - - /schemas/apps/gnucash/general/retain_days - /apps/gnucash/general/retain_days - gnucash - float - 30.0 - - Delete old log/backup files after this many days (0 = never) - This setting specifies the number of days after which old log/backup files will be deleted (0 = never). - - - - - /schemas/apps/gnucash/general/reversed_accounts - /apps/gnucash/general/reversed_accounts - gnucash - string - credit - - Accounts to reverse the balance - - 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. - - - - - - /schemas/apps/gnucash/general/toolbar_style - /apps/gnucash/general/toolbar_style - gnucash - string - system - - Labels on toolbar buttons - - 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. - - - - - - /schemas/apps/gnucash/general/use_accounting_labels - /apps/gnucash/general/use_accounting_labels - gnucash - bool - FALSE - - Use formal account labels - - 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. - - - - - - /schemas/apps/gnucash/general/show_account_color - /apps/gnucash/general/show_account_color - gnucash - bool - FALSE - - Use the account color as background - - If active, the background color of the Account Name column - on the Accounts page is displayed as the account color. - - - - - - /schemas/apps/gnucash/general/show_account_color_tabs - /apps/gnucash/general/show_account_color_tabs - gnucash - bool - FALSE - - Use the account color as background on tabs - - If active, the background color of the register tabs - will be displayed in the account color. - - - - - - /schemas/apps/gnucash/general/tab_close_buttons - /apps/gnucash/general/tab_close_buttons - gnucash - bool - FALSE - - Show close buttons on notebook tabs - - 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. - - - - - - /schemas/apps/gnucash/general/tab_width - /apps/gnucash/general/tab_width - gnucash - float - 30.0 - - Width of notebook tabs - - 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. - - - - - - /schemas/apps/gnucash/general/currency_choice - /apps/gnucash/general/currency_choice - gnucash - string - locale - - Source of default account currency - - 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. - - - - - - /schemas/apps/gnucash/general/currency_other - /apps/gnucash/general/currency_other - gnucash - string - - Default currency for new accounts - - 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). - - - - - - /schemas/apps/gnucash/general/24hour_clock - /apps/gnucash/general/24hour_clock - gnucash - bool - FALSE - - Use 24 hour time format - If active, use a 24 hour time format. Otherwise use a 12 hour time format. - - - - - /schemas/apps/gnucash/general/date_format - /apps/gnucash/general/date_format - gnucash - string - locale - - Date format choice - - 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. - - - - - - /schemas/apps/gnucash/general/date_completion - /apps/gnucash/general/date_completion - gnucash - string - thisyear - - How to interpret dates without a year - - 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. - - - - - - /schemas/apps/gnucash/general/date_backmonths - /apps/gnucash/general/date_backmonths - gnucash - float - 6.0 - - Maximum number of months to go back. - - 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. - - - - - - /schemas/apps/gnucash/general/show_splash_screen - /apps/gnucash/general/show_splash_screen - gnucash - bool - TRUE - - Show splash screen - - If active, a splash screen will be shown at - startup. Otherwise no splash screen will be shown. - - - - - - /schemas/apps/gnucash/general/register/use_theme_colors - /apps/gnucash/general/register/use_theme_colors - gnucash - bool - FALSE - - Color the register as specified by the system theme - - 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. - - - - - - /schemas/apps/gnucash/general/register/selection_to_blank_on_expand - /apps/gnucash/general/register/selection_to_blank_on_expand - gnucash - bool - FALSE - - Move Selection to blank split on expand - - If active, the selection will be moved to the blank split - when the transaction is expanded. - - - - - - /schemas/apps/gnucash/general/register/show_calendar_buttons - /apps/gnucash/general/register/show_calendar_buttons - gnucash - bool - FALSE - - Show the Calendar buttons - - If active, the Cancel, Today and Select buttons will be - shown in the calendar when it is dispalyed in the register. - - - - - - /schemas/apps/gnucash/general/register/show_entered_date - /apps/gnucash/general/register/show_entered_date - gnucash - bool - FALSE - - Show the Date Entered - - If active, the date the transaction was entered is shown below - the posted date. - - - - - - /schemas/apps/gnucash/general/register/key_length - /schemas/apps/gnucash/general/register/key_length - gnucash - float - 2 - - The number of Characters needed - - This setting controls the number of characters needed before - the auto complete starts to work. - - - - - - /schemas/apps/gnucash/general/register/max_transactions - /schemas/apps/gnucash/general/register/max_transactions - gnucash - float - 0 - - The number of transactions displayed - - This setting controls the maximum number of transactions that - are displayed in the register. - - - - - - /schemas/apps/gnucash/general/register/enter_moves_to_end - /apps/gnucash/general/register/enter_moves_to_end - gnucash - bool - FALSE - - "Enter" key moves to bottom of register - - 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. - - - - - - /schemas/apps/gnucash/general/register/auto_raise_lists - /apps/gnucash/general/register/auto_raise_lists - gnucash - bool - TRUE - - Automatically raise the list of accounts or actions during input - Automatically raise the list of accounts or actions during input - - - - - /schemas/apps/gnucash/general/register/tab_includes_transfer_on_memorised - /apps/gnucash/general/register/tab_includes_transfer_on_memorised - gnucash - bool - FALSE - - Move to Transfer field when memorised transaction auto filled - 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. - - - - - /schemas/apps/gnucash/general/register/use_new_window - /apps/gnucash/general/register/use_new_window - gnucash - bool - FALSE - - Create a new window for each new register - - 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. - - - - - - /schemas/apps/gnucash/general/register/alternate_color_by_transaction - /apps/gnucash/general/register/alternate_color_by_transaction - gnucash - bool - FALSE - - Color all lines of a transaction the same - - 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. - - - - - - /schemas/apps/gnucash/general/register/draw_horizontal_lines - /apps/gnucash/general/register/draw_horizontal_lines - gnucash - bool - TRUE - - Show horizontal borders in a register - - 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. - - - - - - /schemas/apps/gnucash/general/register/draw_vertical_lines - /apps/gnucash/general/register/draw_vertical_lines - gnucash - bool - TRUE - - Show vertical borders in a register - - 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. - - - - - - /schemas/apps/gnucash/general/register/default_style - /apps/gnucash/general/register/default_style - gnucash - string - ledger - - Default view style for new register - - 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. - - - - - - /schemas/apps/gnucash/general/register/double_line_mode - /apps/gnucash/general/register/double_line_mode - gnucash - bool - FALSE - - Show two lines of information for each transaction - - 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. - - - - - - /schemas/apps/gnucash/general/register/show_leaf_account_names - /apps/gnucash/general/register/show_leaf_account_names - gnucash - bool - FALSE - - Only display leaf account names. - - 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. - - - - - - /schemas/apps/gnucash/general/report/use_new_window - /apps/gnucash/general/report/use_new_window - gnucash - bool - FALSE - - Create a new window for each new report - - If active, each new report will be opened in its own window. - Otherwise new reports will be opened as tabs in the main - window. - - - - - - /schemas/apps/gnucash/general/report/currency_choice - /apps/gnucash/general/report/currency_choice - gnucash - string - locale - - Source of default report currency - - 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. - - - - - - /schemas/apps/gnucash/general/report/currency_other - /apps/gnucash/general/report/currency_other - gnucash - string - - Default currency for new reports - - 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). - - - - - - /schemas/apps/gnucash/general/report/pdf_export/filename_format - /apps/gnucash/general/report/pdf_export/filename_format - gnucash - string - %1$s_%2$s_%3$s - - PDF export file name format - - 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.) - - - - - - /schemas/apps/gnucash/general/report/pdf_export/filename_date_format - /apps/gnucash/general/report/pdf_export/filename_date_format - gnucash - string - locale - - PDF export file name date format choice - - 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. - - - - - - /schemas/apps/gnucash/general/tab_position - /apps/gnucash/general/tab_position - gnucash - string - top - - Position of the notebook tabs - - 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". - - - - - - /schemas/apps/gnucash/general/summarybar_position - /apps/gnucash/general/summarybar_position - gnucash - string - bottom - - Position of the summary bar - - 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". - - - - - - /schemas/apps/gnucash/dev/allow_file_incompatibility - /apps/gnucash/dev/allow_file_incompatibility - gnucash - bool - false - - Allow file incompatibility with older versions. - 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. - - - - - /schemas/apps/gnucash/general/tab_next_recent - /apps/gnucash/general/tab_next_recent - gnucash - bool - FALSE - - Closing a tab moves to the most recently visited tab. - - If active, closing a tab moves to the most recently visited tab. Otherwise closing a tab moves one tab to the left. - - - - - - diff --git a/src/gnome/schemas/apps_gnucash_warnings.schemas.in b/src/gnome/schemas/apps_gnucash_warnings.schemas.in deleted file mode 100644 index 616a15a058..0000000000 --- a/src/gnome/schemas/apps_gnucash_warnings.schemas.in +++ /dev/null @@ -1,227 +0,0 @@ - - - - - - /schemas/apps/gnucash/general/warnings/change_reconciled_split - /apps/gnucash/general/warnings/permanent/change_reconciled_split - /apps/gnucash/general/warnings/temporary/change_reconciled_split - gnucash - int - 0 - - Change contents of reconciled split - 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. - - - - - /schemas/apps/gnucash/general/warnings/mark_split_unreconciled - /apps/gnucash/general/warnings/permanent/mark_split_unreconciled - /apps/gnucash/general/warnings/temporary/mark_split_unreconciled - gnucash - int - 0 - - Mark transaction split as unreconciled - 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. - - - - - /schemas/apps/gnucash/general/warnings/register_read_only - /apps/gnucash/general/warnings/permanent/register_read_only - /apps/gnucash/general/warnings/temporary/register_read_only - gnucash - int - 0 - - Read only register - This dialog is presented when a read-only register is opened. - - - - - /schemas/apps/gnucash/general/warnings/register_delete_trans - /apps/gnucash/general/warnings/permanent/register_delete_trans - /apps/gnucash/general/warnings/temporary/register_delete_trans - gnucash - int - 0 - - Delete a transaction - This dialog is presented before allowing you to delete a transaction. - - - - - /schemas/apps/gnucash/general/warnings/register_delete_trans2 - /apps/gnucash/general/warnings/permanent/register_delete_trans2 - /apps/gnucash/general/warnings/temporary/register_delete_trans2 - gnucash - int - 0 - - Delete a transaction - 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. - - - - - /schemas/apps/gnucash/general/warnings/register_delete_split - /apps/gnucash/general/warnings/permanent/register_delete_split - /apps/gnucash/general/warnings/temporary/register_delete_split - gnucash - int - 0 - - Remove a split from a transaction - This dialog is presented before allowing you to remove a split from a transaction. - - - - - /schemas/apps/gnucash/general/warnings/register_delete_split2 - /apps/gnucash/general/warnings/permanent/register_delete_split2 - /apps/gnucash/general/warnings/temporary/register_delete_split2 - gnucash - int - 0 - - Remove a reconciled split from a transaction - 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. - - - - - /schemas/apps/gnucash/general/warnings/register_remove_all_splits - /apps/gnucash/general/warnings/permanent/register_remove_all_splits - /apps/gnucash/general/warnings/temporary/register_remove_all_splits - gnucash - int - 0 - - Remove all the splits from a transaction - This dialog is presented before allowing you to remove all splits from a transaction. - - - - - /schemas/apps/gnucash/general/warnings/register_remove_all_splits2 - /apps/gnucash/general/warnings/permanent/register_remove_all_splits2 - /apps/gnucash/general/warnings/temporary/register_remove_all_splits2 - gnucash - int - 0 - - Remove all the splits from a transaction - 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. - - - - - /schemas/apps/gnucash/general/warnings/transaction_changed - /apps/gnucash/general/warnings/permanent/transaction_changed - /apps/gnucash/general/warnings/temporary/transaction_changed - gnucash - int - 0 - - Commit changes to a transaction - This dialog is presented when you attempt to move out of a modified transaction. The changed data must be either saved or discarded. - - - - - /schemas/apps/gnucash/general/warnings/transaction_duplicated - /apps/gnucash/general/warnings/permanent/transaction_duplicated - /apps/gnucash/general/warnings/temporary/transaction_duplicated - gnucash - int - 0 - - Duplicating a changed transaction - This dialog is presented when you attempt to duplicate a modified transaction. The changed data must be saved or the duplication canceled. - - - - - /schemas/apps/gnucash/general/warnings/invoice_entry_changed - /apps/gnucash/general/warnings/permanent/invoice_entry_changed - /apps/gnucash/general/warnings/temporary/invoice_entry_changed - gnucash - int - 0 - - Commit changes to a invoice_entry - This dialog is presented when you attempt to move out of a modified invoice entry. The changed data must be either saved or discarded. - - - - - /schemas/apps/gnucash/general/warnings/invoice_entry_duplicated - /apps/gnucash/general/warnings/permanent/invoice_entry_duplicated - /apps/gnucash/general/warnings/temporary/invoice_entry_duplicated - gnucash - int - 0 - - Duplicating a changed invoice_entry - This dialog is presented when you attempt to duplicate a modified invoice entry. The changed data must be saved or the duplication canceled. - - - - - /schemas/apps/gnucash/general/warnings/delete_commodity - /apps/gnucash/general/warnings/permanent/delete_commodity - /apps/gnucash/general/warnings/temporary/delete_commodity - gnucash - int - 0 - - Delete a commodity - This dialog is presented before allowing you to delete a commodity. - - - - - /schemas/apps/gnucash/general/warnings/delete_commodity2 - /apps/gnucash/general/warnings/permanent/delete_commodity2 - /apps/gnucash/general/warnings/temporary/delete_commodity2 - gnucash - int - 0 - - Delete a commodity and prices - 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. - - - - - /schemas/apps/gnucash/general/warnings/pricedb_remove_multiple - /apps/gnucash/general/warnings/permanent/pricedb_remove_multiple - /apps/gnucash/general/warnings/temporary/pricedb_remove_multiple - gnucash - int - 0 - - Delete multiple price quotes - This dialog is presented before allowing you to delete multiple price quotes at one time. - - - - - /schemas/apps/gnucash/general/warnings/print_multi_acct_checks - /apps/gnucash/general/warnings/permanent/print_multi_acct_checks - /apps/gnucash/general/warnings/temporary/print_multi_acct_checks - gnucash - int - 0 - - Print checks from multiple accounts - This dialog is presented if you try to print checks from multiple accounts at the same time. - - - - - diff --git a/src/gnome/schemas/apps_gnucash_window_pages_account_tree.schemas.in b/src/gnome/schemas/apps_gnucash_window_pages_account_tree.schemas.in deleted file mode 100644 index bd08da2147..0000000000 --- a/src/gnome/schemas/apps_gnucash_window_pages_account_tree.schemas.in +++ /dev/null @@ -1,135 +0,0 @@ - - - - - - /schemas/apps/gnucash/window/pages/account_tree/summary/grand_total - /apps/gnucash/window/pages/account_tree/summary/grand_total - gnucash - bool - TRUE - - Show a grand total of all accounts converted to the default report currency - Show a grand total of all accounts converted to the default report currency - - - - - /schemas/apps/gnucash/window/pages/account_tree/summary/non_currency - /apps/gnucash/window/pages/account_tree/summary/non_currency - gnucash - bool - TRUE - - Show non currency commodities - If active, non currency commodities (stocks) will be - shown. Otherwise they will be hidden. - - - - - /schemas/apps/gnucash/window/pages/account_tree/summary/start_choice - /apps/gnucash/window/pages/account_tree/summary/start_choice - gnucash - string - relative - - Profit/loss starting date type - - 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. - - - - - - /schemas/apps/gnucash/window/pages/account_tree/summary/start_date - /apps/gnucash/window/pages/account_tree/summary/start_date - gnucash - int - 0 - - Starting date (in seconds from Jan 1, 1970) - - 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. - - - - - - /schemas/apps/gnucash/window/pages/account_tree/summary/start_period - /apps/gnucash/window/pages/account_tree/summary/start_period - gnucash - int - 5 - - Starting time period identifier - - 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. - - - - - - /schemas/apps/gnucash/window/pages/account_tree/summary/end_choice - /apps/gnucash/window/pages/account_tree/summary/end_choice - gnucash - string - relative - - Profit/loss ending date type - - 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. - - - - - - /schemas/apps/gnucash/window/pages/account_tree/summary/end_date - /apps/gnucash/window/pages/account_tree/summary/end_date - gnucash - int - 0 - - Ending date (in seconds from Jan 1, 1970) - - 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. - - - - - - /schemas/apps/gnucash/window/pages/account_tree/summary/end_period - /apps/gnucash/window/pages/account_tree/summary/end_period - gnucash - int - 5 - - Ending time period identifier - - 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. - - - - - - diff --git a/src/gnome/schemas/apps_gnucash_window_pages_common.schemas.in b/src/gnome/schemas/apps_gnucash_window_pages_common.schemas.in deleted file mode 100644 index 5b9dac2989..0000000000 --- a/src/gnome/schemas/apps_gnucash_window_pages_common.schemas.in +++ /dev/null @@ -1,121 +0,0 @@ - - - - - - /schemas/apps/gnucash/window/pages/visibility - /apps/gnucash/window/pages/account_tree/account-code_visible - /apps/gnucash/window/pages/account_tree/balance-period_visible - /apps/gnucash/window/pages/account_tree/balance_report_visible - /apps/gnucash/window/pages/account_tree/balance_visible - /apps/gnucash/window/pages/account_tree/cleared_report_visible - /apps/gnucash/window/pages/account_tree/cleared_visible - /apps/gnucash/window/pages/account_tree/commodity_visible - /apps/gnucash/window/pages/account_tree/description_visible - /apps/gnucash/window/pages/account_tree/future_min_report_visible - /apps/gnucash/window/pages/account_tree/future_min_visible - /apps/gnucash/window/pages/account_tree/lastnum_visible - /apps/gnucash/window/pages/account_tree/last-recon-date_visible - /apps/gnucash/window/pages/account_tree/name_visible - /apps/gnucash/window/pages/account_tree/notes_visible - /apps/gnucash/window/pages/account_tree/placeholder_visible - /apps/gnucash/window/pages/account_tree/present_report_visible - /apps/gnucash/window/pages/account_tree/present_visible - /apps/gnucash/window/pages/account_tree/reconciled_report_visible - /apps/gnucash/window/pages/account_tree/reconciled_visible - /apps/gnucash/window/pages/account_tree/tax-info_visible - /apps/gnucash/window/pages/account_tree/total-period_visible - /apps/gnucash/window/pages/account_tree/total_report_visible - /apps/gnucash/window/pages/account_tree/total_visible - /apps/gnucash/window/pages/account_tree/type_visible - /apps/gnucash/window/pages/customer_tree/active_visible - /apps/gnucash/window/pages/customer_tree/address-1_visible - /apps/gnucash/window/pages/customer_tree/address-2_visible - /apps/gnucash/window/pages/customer_tree/address-3_visible - /apps/gnucash/window/pages/customer_tree/address-4_visible - /apps/gnucash/window/pages/customer_tree/address-name_visible - /apps/gnucash/window/pages/customer_tree/balance-report_visible - /apps/gnucash/window/pages/customer_tree/balance_visible - /apps/gnucash/window/pages/customer_tree/currency_visible - /apps/gnucash/window/pages/customer_tree/email_visible - /apps/gnucash/window/pages/customer_tree/fax_visible - /apps/gnucash/window/pages/customer_tree/name_visible - /apps/gnucash/window/pages/customer_tree/notes_visible - /apps/gnucash/window/pages/customer_tree/owner-id_visible - /apps/gnucash/window/pages/customer_tree/phone_visible - /apps/gnucash/window/pages/customer_tree/type_visible - /apps/gnucash/window/pages/sx_list/enabled_visible - /apps/gnucash/window/pages/sx_list/frequency_visible - /apps/gnucash/window/pages/sx_list/last-occur_visible - /apps/gnucash/window/pages/sx_list/name_visible - /apps/gnucash/window/pages/sx_list/next-occur_visible - gnucash - bool - - Display this column - - This setting controls wether the given column will be visible in the - view. TRUE means visible, FALSE means hidden. - - - - - - /schemas/apps/gnucash/window/pages/width - /apps/gnucash/window/pages/account_tree/account-code_width - /apps/gnucash/window/pages/account_tree/balance-period_width - /apps/gnucash/window/pages/account_tree/balance_report_width - /apps/gnucash/window/pages/account_tree/balance_width - /apps/gnucash/window/pages/account_tree/cleared_report_width - /apps/gnucash/window/pages/account_tree/cleared_width - /apps/gnucash/window/pages/account_tree/commodity_width - /apps/gnucash/window/pages/account_tree/description_width - /apps/gnucash/window/pages/account_tree/future_min_report_width - /apps/gnucash/window/pages/account_tree/future_min_width - /apps/gnucash/window/pages/account_tree/lastnum_width - /apps/gnucash/window/pages/account_tree/last-recon-date_width - /apps/gnucash/window/pages/account_tree/name_width - /apps/gnucash/window/pages/account_tree/notes_width - /apps/gnucash/window/pages/account_tree/placeholder_width - /apps/gnucash/window/pages/account_tree/present_report_width - /apps/gnucash/window/pages/account_tree/present_width - /apps/gnucash/window/pages/account_tree/reconciled_report_width - /apps/gnucash/window/pages/account_tree/reconciled_width - /apps/gnucash/window/pages/account_tree/tax-info_width - /apps/gnucash/window/pages/account_tree/total-period_width - /apps/gnucash/window/pages/account_tree/total_report_width - /apps/gnucash/window/pages/account_tree/total_width - /apps/gnucash/window/pages/account_tree/type_width - /apps/gnucash/window/pages/customer_tree/active_width - /apps/gnucash/window/pages/customer_tree/address-1_width - /apps/gnucash/window/pages/customer_tree/address-2_width - /apps/gnucash/window/pages/customer_tree/address-3_width - /apps/gnucash/window/pages/customer_tree/address-4_width - /apps/gnucash/window/pages/customer_tree/address-name_width - /apps/gnucash/window/pages/customer_tree/balance-report_width - /apps/gnucash/window/pages/customer_tree/balance_width - /apps/gnucash/window/pages/customer_tree/currency_width - /apps/gnucash/window/pages/customer_tree/email_width - /apps/gnucash/window/pages/customer_tree/fax_width - /apps/gnucash/window/pages/customer_tree/name_width - /apps/gnucash/window/pages/customer_tree/notes_width - /apps/gnucash/window/pages/customer_tree/owner-id_width - /apps/gnucash/window/pages/customer_tree/phone_width - /apps/gnucash/window/pages/customer_tree/type_width - /apps/gnucash/window/pages/sx_list/enabled_width - /apps/gnucash/window/pages/sx_list/frequency_width - /apps/gnucash/window/pages/sx_list/last-occur_width - /apps/gnucash/window/pages/sx_list/name_width - /apps/gnucash/window/pages/sx_list/next-occur_width - gnucash - int - - Width of this column - - This setting stores the width of the given column in pixels. - - - - - - diff --git a/src/gnome/schemas/apps_gnucash_window_pages_register.schemas.in b/src/gnome/schemas/apps_gnucash_window_pages_register.schemas.in deleted file mode 100644 index b90ac71186..0000000000 --- a/src/gnome/schemas/apps_gnucash_window_pages_register.schemas.in +++ /dev/null @@ -1,26 +0,0 @@ - - - - - /schemas/apps/gnucash/window/pages/register/width - /apps/gnucash/window/pages/register/balance_width - /apps/gnucash/window/pages/register/credit_width - /apps/gnucash/window/pages/register/date-due_width - /apps/gnucash/window/pages/register/debit_width - /apps/gnucash/window/pages/register/num_width - /apps/gnucash/window/pages/register/split-type_width - /apps/gnucash/window/pages/register/transfer_width - gnucash - int - - Width of a column in the dialog - - 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 - - - - - -