r23263 - gnucash/trunk/src/gnome-utils - Gnc-Prefs: call gnc_gui_refresh_all on changes in the general prefs group
Geert Janssens
gjanssens at code.gnucash.org
Mon Oct 7 10:28:14 EDT 2013
Author: gjanssens
Date: 2013-10-07 10:28:14 -0400 (Mon, 07 Oct 2013)
New Revision: 23263
Trac: http://svn.gnucash.org/trac/changeset/23263
Modified:
gnucash/trunk/src/gnome-utils/Makefile.am
gnucash/trunk/src/gnome-utils/gnc-gnome-utils.c
Log:
Gnc-Prefs: call gnc_gui_refresh_all on changes in the general prefs group
Modified: gnucash/trunk/src/gnome-utils/Makefile.am
===================================================================
--- gnucash/trunk/src/gnome-utils/Makefile.am 2013-10-07 14:28:01 UTC (rev 23262)
+++ gnucash/trunk/src/gnome-utils/Makefile.am 2013-10-07 14:28:14 UTC (rev 23263)
@@ -16,7 +16,6 @@
-I${top_srcdir}/src/libqof/qof \
${GLIB_CFLAGS} \
${GTK_CFLAGS} \
- ${GCONF_CFLAGS} \
${GNOME_KEYRING_CFLAGS} \
${GUILE_INCS} \
${QOF_CFLAGS} \
@@ -202,7 +201,6 @@
$(top_builddir)/lib/libc/libc-missing.la \
${top_builddir}/src/libqof/qof/libgnc-qof.la \
${GTK_LIBS} \
- ${GCONF_LIBS} \
${GNOME_KEYRING_LIBS} \
${GUILE_LIBS} \
${GLIB_LIBS} \
Modified: gnucash/trunk/src/gnome-utils/gnc-gnome-utils.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-gnome-utils.c 2013-10-07 14:28:01 UTC (rev 23262)
+++ gnucash/trunk/src/gnome-utils/gnc-gnome-utils.c 2013-10-07 14:28:14 UTC (rev 23263)
@@ -24,13 +24,11 @@
#include "config.h"
#include <glib/gi18n.h>
-#include <gconf/gconf.h>
#ifdef HAVE_X11_XLIB_H
# include <X11/Xlib.h>
#endif
#include <libxml/xmlIO.h>
-#include "gnc-gconf-utils.h"
#include "gnc-prefs-utils.h"
#include "gnc-prefs.h"
#include "gnc-gnome-utils.h"
@@ -127,7 +125,7 @@
static void
gnc_configure_date_format (void)
{
- QofDateFormat df = gnc_prefs_get_int(GCONF_GENERAL,
+ QofDateFormat df = gnc_prefs_get_int(GNC_PREFS_GROUP_GENERAL,
GNC_PREF_DATE_FORMAT);
/* Only a subset of the qof date formats is currently
@@ -599,7 +597,6 @@
gnc_prefs_init();
gnc_show_splash_screen();
- gnc_gconf_add_anon_notification(GCONF_GENERAL, gnc_gconf_general_changed, NULL);
gnome_is_initialized = TRUE;
@@ -623,8 +620,9 @@
GNC_PREF_DATE_BACKMONTHS,
gnc_configure_date_completion,
NULL);
- gnc_gconf_general_register_any_cb(
- (GncGconfGeneralAnyCb)gnc_gui_refresh_all, NULL);
+ gnc_prefs_register_group_cb (GNC_PREFS_GROUP_GENERAL,
+ gnc_gui_refresh_all,
+ NULL);
gnc_ui_commodity_set_help_callback (gnc_commodity_help_cb);
gnc_file_set_shutdown_callback (gnc_shutdown);
More information about the gnucash-changes
mailing list