r23239 - gnucash/trunk/src - Gnc-Prefs: migrate GtkCheckbutton widgets (and associated preferences) - last batch

Geert Janssens gjanssens at code.gnucash.org
Mon Oct 7 10:13:12 EDT 2013


Author: gjanssens
Date: 2013-10-07 10:13:11 -0400 (Mon, 07 Oct 2013)
New Revision: 23239
Trac: http://svn.gnucash.org/trac/changeset/23239

Modified:
   gnucash/trunk/src/business/business-gnome/dialog-invoice.c
   gnucash/trunk/src/business/business-gnome/dialog-invoice.h
   gnucash/trunk/src/business/business-gnome/gnc-plugin-page-invoice.c
   gnucash/trunk/src/business/business-gnome/gtkbuilder/business-prefs.glade
   gnucash/trunk/src/business/business-ledger/gncEntryLedger.c
   gnucash/trunk/src/business/business-ledger/gncEntryLedger.h
   gnucash/trunk/src/business/business-ledger/gncEntryLedgerLoad.c
   gnucash/trunk/src/business/business-ledger/gncEntryLedgerP.h
   gnucash/trunk/src/gnome-utils/dialog-preferences.c
   gnucash/trunk/src/gnome-utils/dialog-utils.c
   gnucash/trunk/src/gnome-utils/gnc-main-window.c
   gnucash/trunk/src/gnome-utils/gtkbuilder/dialog-preferences.glade
   gnucash/trunk/src/gnome/dialog-commodities.c
   gnucash/trunk/src/gnome/dialog-sx-editor.c
   gnucash/trunk/src/gnome/dialog-sx-editor.h
   gnucash/trunk/src/gnome/dialog-sx-editor2.c
   gnucash/trunk/src/gnome/dialog-sx-editor2.h
   gnucash/trunk/src/gnome/dialog-sx-from-trans.c
   gnucash/trunk/src/gnome/dialog-sx-since-last-run.c
   gnucash/trunk/src/gnome/dialog-tax-info.c
   gnucash/trunk/src/gnome/gtkbuilder/dialog-sx.glade
   gnucash/trunk/src/import-export/aqbanking/dialog-ab.glade
   gnucash/trunk/src/import-export/aqbanking/gnc-ab-utils.c
   gnucash/trunk/src/import-export/aqbanking/gnc-ab-utils.h
   gnucash/trunk/src/import-export/aqbanking/gnc-gwen-gui.c
   gnucash/trunk/src/import-export/csv-export/assistant-csv-export.c
   gnucash/trunk/src/import-export/dialog-import.glade
   gnucash/trunk/src/import-export/import-backend.c
   gnucash/trunk/src/import-export/import-settings.c
   gnucash/trunk/src/import-export/import-settings.h
   gnucash/trunk/src/import-export/import-utilities.h
   gnucash/trunk/src/import-export/ofx/gnc-ofx-import.c
   gnucash/trunk/src/import-export/qif-import/assistant-qif-import.c
   gnucash/trunk/src/import-export/qif-import/dialog-account-picker.glade
   gnucash/trunk/src/register/register-gnome/table-gnome.c
   gnucash/trunk/src/report/report-gnome/gnc-plugin-page-report.c
Log:
Gnc-Prefs: migrate GtkCheckbutton widgets (and associated preferences) - last batch

All GtkCheckButtons now use the new preferences backend
so drop the GtkCheckButton-Gconf wiring as well.

Modified: gnucash/trunk/src/business/business-gnome/dialog-invoice.c
===================================================================
--- gnucash/trunk/src/business/business-gnome/dialog-invoice.c	2013-10-07 14:12:39 UTC (rev 23238)
+++ gnucash/trunk/src/business/business-gnome/dialog-invoice.c	2013-10-07 14:13:11 UTC (rev 23239)
@@ -38,6 +38,7 @@
 #include "gnc-ui.h"
 #include "gnc-gconf-utils.h"
 #include "gnc-gui-query.h"
+#include "gnc-prefs.h"
 #include "gnc-ui-util.h"
 #include "gnc-date-edit.h"
 #include "gnc-amount-edit.h"
@@ -85,7 +86,9 @@
 #define DIALOG_NEW_INVOICE_CM_CLASS "dialog-new-invoice"
 #define DIALOG_VIEW_INVOICE_CM_CLASS "dialog-view-invoice"
 
-#define GNC_PREFS_GROUP_SEARCH  "dialogs.business.invoice_search"
+#define GNC_PREFS_GROUP_SEARCH   "dialogs.business.invoice_search"
+#define GNC_PREF_NOTIFY_WHEN_DUE "notify_when_due"
+#define GNC_PREF_ACCUM_SPLITS    "accumulate_splits"
 
 #define LAST_POSTED_TO_ACCT "last-posted-to-acct"
 
@@ -726,7 +729,7 @@
                              iw->book);
 
     /* Get the default for the accumulate option */
-    *accumulate = gnc_gconf_get_bool(GCONF_SECTION_INVOICE, "accumulate_splits", NULL);
+    *accumulate = gnc_prefs_get_bool(GNC_PREFS_GROUP_INVOICE, GNC_PREF_ACCUM_SPLITS);
 
     if (!gnc_dialog_dates_acct_question_parented (iw_get_window(iw), message, ddue_label,
             post_label, acct_label, question_label, TRUE, TRUE,
@@ -2185,7 +2188,7 @@
     GncEntryLedger *entry_ledger = NULL;
     GncOwnerType owner_type;
     GncEntryLedgerType ledger_type;
-    const gchar *gconf_section = NULL;
+    const gchar *prefs_group = NULL;
     gboolean is_credit_note = FALSE;
 
     invoice = gncInvoiceLookup (iw->book, &iw->invoice_guid);
@@ -2292,17 +2295,17 @@
         case GNC_OWNER_CUSTOMER:
             ledger_type = is_credit_note ? GNCENTRY_CUST_CREDIT_NOTE_VIEWER
                           : GNCENTRY_INVOICE_VIEWER;
-            gconf_section = GCONF_SECTION_INVOICE;
+            prefs_group   = GNC_PREFS_GROUP_INVOICE;
             break;
         case GNC_OWNER_VENDOR:
             ledger_type = is_credit_note ? GNCENTRY_VEND_CREDIT_NOTE_VIEWER
                           : GNCENTRY_BILL_VIEWER;
-            gconf_section = GCONF_SECTION_BILL;
+            prefs_group   = GNC_PREFS_GROUP_BILL;
             break;
         case GNC_OWNER_EMPLOYEE:
             ledger_type = is_credit_note ? GNCENTRY_EMPL_CREDIT_NOTE_VIEWER
                           : GNCENTRY_EXPVOUCHER_VIEWER;
-            gconf_section = GCONF_SECTION_BILL;
+            prefs_group   = GNC_PREFS_GROUP_BILL;
             break;
         default:
             g_warning ("Invalid owner type");
@@ -2319,8 +2322,8 @@
     /* Set the entry_ledger's invoice */
     gnc_entry_ledger_set_default_invoice (entry_ledger, invoice);
 
-    /* Set the gconf section */
-    gnc_entry_ledger_set_gconf_section (entry_ledger, gconf_section);
+    /* Set the preferences group */
+    gnc_entry_ledger_set_prefs_group (entry_ledger, prefs_group);
 
     /* Setup initial values */
     iw->component_id =
@@ -3222,7 +3225,7 @@
 void
 gnc_invoice_remind_bills_due_cb (void)
 {
-    if (!gnc_gconf_get_bool(GCONF_SECTION_BILL, "notify_when_due", NULL))
+    if (!gnc_prefs_get_bool(GNC_PREFS_GROUP_BILL, GNC_PREF_NOTIFY_WHEN_DUE))
         return;
 
     gnc_invoice_remind_bills_due();

Modified: gnucash/trunk/src/business/business-gnome/dialog-invoice.h
===================================================================
--- gnucash/trunk/src/business/business-gnome/dialog-invoice.h	2013-10-07 14:12:39 UTC (rev 23238)
+++ gnucash/trunk/src/business/business-gnome/dialog-invoice.h	2013-10-07 14:13:11 UTC (rev 23239)
@@ -49,6 +49,9 @@
 #define GCONF_SECTION_INVOICE "dialogs/business/invoice"
 #define GCONF_SECTION_BILL    "dialogs/business/bill"
 #define GCONF_SECTION_VOUCHER "dialogs/business/voucher"
+#define GNC_PREFS_GROUP_INVOICE "dialogs.business.invoice"
+#define GNC_PREFS_GROUP_BILL    "dialogs.business.bill"
+#define GNC_PREFS_GROUP_VOUCHER "dialogs.business.voucher"
 
 
 /* Create and edit an invoice */

Modified: gnucash/trunk/src/business/business-gnome/gnc-plugin-page-invoice.c
===================================================================
--- gnucash/trunk/src/business/business-gnome/gnc-plugin-page-invoice.c	2013-10-07 14:12:39 UTC (rev 23238)
+++ gnucash/trunk/src/business/business-gnome/gnc-plugin-page-invoice.c	2013-10-07 14:13:11 UTC (rev 23239)
@@ -38,6 +38,7 @@
 #include "gnc-gnome-utils.h"
 #include "gnc-icons.h"
 #include "gnucash-sheet.h"
+#include "gnc-prefs.h"
 #include "gnc-ui-util.h"
 #include "gnc-window.h"
 
@@ -377,7 +378,7 @@
 
     /* Init parent declared variables */
     parent = GNC_PLUGIN_PAGE(plugin_page);
-    use_new = gnc_gconf_get_bool(GCONF_SECTION_INVOICE, KEY_USE_NEW, NULL);
+    use_new = gnc_prefs_get_bool (GNC_PREFS_GROUP_INVOICE, GNC_PREF_USE_NEW);
     g_object_set(G_OBJECT(plugin_page),
                  "page-name",      _("Invoice"),
                  "page-uri",       "default:",

Modified: gnucash/trunk/src/business/business-gnome/gtkbuilder/business-prefs.glade
===================================================================
--- gnucash/trunk/src/business/business-gnome/gtkbuilder/business-prefs.glade	2013-10-07 14:12:39 UTC (rev 23238)
+++ gnucash/trunk/src/business/business-gnome/gtkbuilder/business-prefs.glade	2013-10-07 14:13:11 UTC (rev 23239)
@@ -44,7 +44,7 @@
           </packing>
         </child>
         <child>
-          <object class="GtkCheckButton" id="gconf/dialogs/business/bill/tax_included">
+          <object class="GtkCheckButton" id="pref/dialogs.business.bill/tax_included">
             <property name="label" translatable="yes">Ta_x included</property>
             <property name="visible">True</property>
             <property name="can_focus">True</property>
@@ -109,7 +109,7 @@
           </packing>
         </child>
         <child>
-          <object class="GtkCheckButton" id="gconf/dialogs/business/bill/notify_when_due">
+          <object class="GtkCheckButton" id="pref/dialogs.business.bill/notify_when_due">
             <property name="label" translatable="yes">_Notify when due</property>
             <property name="visible">True</property>
             <property name="can_focus">True</property>
@@ -160,7 +160,7 @@
           </packing>
         </child>
         <child>
-          <object class="GtkCheckButton" id="gconf/dialogs/business/invoice/tax_included">
+          <object class="GtkCheckButton" id="pref/dialogs.business.invoice/tax_included">
             <property name="label" translatable="yes">_Tax included</property>
             <property name="visible">True</property>
             <property name="can_focus">True</property>
@@ -182,7 +182,7 @@
           </packing>
         </child>
         <child>
-          <object class="GtkCheckButton" id="gconf/dialogs/business/invoice/accumulate_splits">
+          <object class="GtkCheckButton" id="pref/dialogs.business.invoice/accumulate_splits">
             <property name="label" translatable="yes">_Accumulate splits on post</property>
             <property name="visible">True</property>
             <property name="can_focus">True</property>
@@ -204,7 +204,7 @@
           </packing>
         </child>
         <child>
-          <object class="GtkCheckButton" id="gconf/dialogs/business/invoice/use_new_window">
+          <object class="GtkCheckButton" id="pref/dialogs.business.invoice/use_new_window">
             <property name="label" translatable="yes">_Open in new window</property>
             <property name="visible">True</property>
             <property name="can_focus">True</property>

Modified: gnucash/trunk/src/business/business-ledger/gncEntryLedger.c
===================================================================
--- gnucash/trunk/src/business/business-ledger/gncEntryLedger.c	2013-10-07 14:12:39 UTC (rev 23238)
+++ gnucash/trunk/src/business/business-ledger/gncEntryLedger.c	2013-10-07 14:13:11 UTC (rev 23239)
@@ -289,7 +289,7 @@
     ledger->type = type;
     ledger->book = book;
     ledger->traverse_to_new = TRUE;
-    ledger->gconf_section = NULL;
+    ledger->prefs_group = NULL;
 
     /* Orders and Invoices are "invoices" for lookups */
     switch (type)
@@ -956,12 +956,12 @@
 }
 
 void
-gnc_entry_ledger_set_gconf_section (GncEntryLedger *ledger, const gchar *string)
+gnc_entry_ledger_set_prefs_group (GncEntryLedger *ledger, const gchar *string)
 {
     if (!ledger)
         return;
 
-    ledger->gconf_section = string;
+    ledger->prefs_group = string;
 }
 
 void gnc_entry_ledger_move_current_entry_updown (GncEntryLedger *ledger,

Modified: gnucash/trunk/src/business/business-ledger/gncEntryLedger.h
===================================================================
--- gnucash/trunk/src/business/business-ledger/gncEntryLedger.h	2013-10-07 14:12:39 UTC (rev 23238)
+++ gnucash/trunk/src/business/business-ledger/gncEntryLedger.h	2013-10-07 14:13:11 UTC (rev 23239)
@@ -156,6 +156,6 @@
 
 QofQuery * gnc_entry_ledger_get_query (GncEntryLedger *ledger);
 
-void gnc_entry_ledger_set_gconf_section (GncEntryLedger *ledger, const gchar *string);
+void gnc_entry_ledger_set_prefs_group (GncEntryLedger *ledger, const gchar *string);
 
 #endif /* GNC_ENTRY_LEDGER_H */

Modified: gnucash/trunk/src/business/business-ledger/gncEntryLedgerLoad.c
===================================================================
--- gnucash/trunk/src/business/business-ledger/gncEntryLedgerLoad.c	2013-10-07 14:12:39 UTC (rev 23238)
+++ gnucash/trunk/src/business/business-ledger/gncEntryLedgerLoad.c	2013-10-07 14:13:11 UTC (rev 23239)
@@ -30,7 +30,7 @@
 #include "account-quickfill.h"
 #include "combocell.h"
 #include "gnc-component-manager.h"
-#include "gnc-gconf-utils.h"
+#include "gnc-prefs.h"
 #include "gnc-ui-util.h"
 #include "recncell.h"
 
@@ -42,6 +42,7 @@
 #include "quickfillcell.h"
 #include "app-utils/gnc-entry-quickfill.h"
 
+#define GNC_PREF_TAX_INCL "tax_included"
 
 /* XXX: This should go elsewhere */
 const char * gnc_entry_ledger_type_string_getter (char flag)
@@ -398,9 +399,9 @@
                     taxincluded = FALSE;
                     break;
                 case GNC_TAXINCLUDED_USEGLOBAL:
-                    if (ledger->gconf_section)
+                    if (ledger->prefs_group)
                     {
-                        taxincluded = gnc_gconf_get_bool(ledger->gconf_section, "tax_included", NULL);
+                        taxincluded = gnc_prefs_get_bool (ledger->prefs_group, GNC_PREF_TAX_INCL);
                     }
                     else
                     {

Modified: gnucash/trunk/src/business/business-ledger/gncEntryLedgerP.h
===================================================================
--- gnucash/trunk/src/business/business-ledger/gncEntryLedgerP.h	2013-10-07 14:12:39 UTC (rev 23238)
+++ gnucash/trunk/src/business/business-ledger/gncEntryLedgerP.h	2013-10-07 14:13:11 UTC (rev 23239)
@@ -54,7 +54,7 @@
     gboolean   is_cust_doc;      /* is this document customer or vendor related ? */
     gboolean   is_credit_note;   /* is this an invoice (or a bill)? */
 
-    const gchar * gconf_section;
+    const gchar * prefs_group;
 };
 
 GncEntry * gnc_entry_ledger_get_entry (GncEntryLedger *ledger,

Modified: gnucash/trunk/src/gnome/dialog-commodities.c
===================================================================
--- gnucash/trunk/src/gnome/dialog-commodities.c	2013-10-07 14:12:39 UTC (rev 23238)
+++ gnucash/trunk/src/gnome/dialog-commodities.c	2013-10-07 14:13:11 UTC (rev 23239)
@@ -33,16 +33,17 @@
 #include "gnc-component-manager.h"
 #include "qof.h"
 #include "gnc-tree-view-commodity.h"
+#include "gnc-prefs.h"
 #include "gnc-ui.h"
 #include "gnc-ui-util.h"
-#include "gnc-gconf-utils.h"
 #include "gnc-gnome-utils.h"
 #include "gnc-session.h"
 
 
 #define DIALOG_COMMODITIES_CM_CLASS "dialog-commodities"
 #define GCONF_SECTION "dialogs/edit_commodities"
-#define GNC_PREFS_GROUP "dialogs.edit_commodities"
+#define GNC_PREFS_GROUP   "dialogs.edit_commodities"
+#define GNC_PREF_INCL_ISO "include_iso"
 
 /* This static indicates the debugging module that this .o belongs to.  */
 /* static short module = MOD_GUI; */
@@ -319,7 +320,7 @@
     cd->dialog = GTK_WIDGET(gtk_builder_get_object (builder, "Securities Dialog"));
     cd->session = gnc_get_current_session();
     cd->book = qof_session_get_book(cd->session);
-    cd->show_currencies = gnc_gconf_get_bool(GCONF_SECTION, "include_iso", NULL);
+    cd->show_currencies = gnc_prefs_get_bool(GNC_PREFS_GROUP, GNC_PREF_INCL_ISO);
 
     gtk_builder_connect_signals(builder, cd);
 
@@ -367,7 +368,7 @@
 
     gnc_save_window_size(GNC_PREFS_GROUP, GTK_WINDOW(cd->dialog));
 
-    gnc_gconf_set_bool(GCONF_SECTION, "include_iso", cd->show_currencies, NULL);
+    gnc_prefs_set_bool(GNC_PREFS_GROUP, GNC_PREF_INCL_ISO, cd->show_currencies);
 
     gtk_widget_destroy(cd->dialog);
 }

Modified: gnucash/trunk/src/gnome/dialog-sx-editor.c
===================================================================
--- gnucash/trunk/src/gnome/dialog-sx-editor.c	2013-10-07 14:12:39 UTC (rev 23238)
+++ gnucash/trunk/src/gnome/dialog-sx-editor.c	2013-10-07 14:13:11 UTC (rev 23239)
@@ -60,6 +60,7 @@
 #include "gnc-ledger-display.h"
 #include "gnc-plugin-page.h"
 #include "gnc-plugin-page-register.h"
+#include "gnc-prefs.h"
 #include "gnc-ui.h"
 #include "gnc-ui-util.h"
 #include "gnucash-sheet.h"
@@ -145,7 +146,6 @@
 static void schedXact_editor_create_freq_sel( GncSxEditorDialog *sxed );
 static void schedXact_editor_create_ledger( GncSxEditorDialog *sxed );
 static void schedXact_editor_populate( GncSxEditorDialog * );
-static void gnc_sxed_record_size( GncSxEditorDialog *sxed );
 static void endgroup_rb_toggled_cb( GtkButton *b, gpointer d );
 static void set_endgroup_toggle_states( GncSxEditorDialog *sxed, EndType t );
 static void advance_toggled_cb( GtkButton *b, GncSxEditorDialog *sxed );
@@ -180,7 +180,7 @@
     GncSxEditorDialog *sxed = user_data;
 
     gnc_sxed_reg_check_close(sxed);
-    gnc_sxed_record_size(sxed);
+    gnc_save_window_size( GNC_PREFS_GROUP_SXED, GTK_WINDOW(sxed->dialog) );
     gtk_widget_destroy(sxed->dialog);
     /* The data will be cleaned up in the destroy handler. */
 }
@@ -1269,14 +1269,6 @@
 
 static
 void
-gnc_sxed_record_size( GncSxEditorDialog *sxed )
-{
-    gnc_save_window_size( GNC_PREFS_GROUP_SXED, GTK_WINDOW(sxed->dialog) );
-}
-
-
-static
-void
 schedXact_editor_create_freq_sel( GncSxEditorDialog *sxed )
 {
     GtkBox *b;
@@ -1416,9 +1408,9 @@
     if ( sxed->newsxP )
     {
         autoCreateState =
-            gnc_gconf_get_bool( SXED_GCONF_SECTION, KEY_CREATE_AUTO, NULL );
+            gnc_prefs_get_bool (GNC_PREFS_GROUP_SXED, GNC_PREF_CREATE_AUTO);
         notifyState =
-            gnc_gconf_get_bool( SXED_GCONF_SECTION, KEY_NOTIFY, NULL );
+            gnc_prefs_get_bool (GNC_PREFS_GROUP_SXED, GNC_PREF_NOTIFY);
     }
     else
     {
@@ -1668,23 +1660,19 @@
 
 
 void
-on_sx_check_toggled_cb (GtkWidget *togglebutton,
-                        gpointer user_data)
+on_sx_check_toggled_cb (GtkWidget *togglebutton, gpointer user_data)
 {
-    GtkWidget *widget_create, *widget_notify;
-    gboolean active; // , notify;
+    GtkWidget *widget_notify;
     GHashTable *table;
 
     PINFO("Togglebutton is %p and user_data is %p", togglebutton, user_data);
     PINFO("Togglebutton builder name is %s", gtk_buildable_get_name(GTK_BUILDABLE(togglebutton)));
 
     /* We need to use the hash table to find the required widget to activate. */
-    table = g_object_get_data(G_OBJECT(user_data), "widget_hash");
-    widget_create = g_hash_table_lookup(table, "gconf/dialogs/scheduled_trans/transaction_editor/create_auto");
-    widget_notify = g_hash_table_lookup(table, "gconf/dialogs/scheduled_trans/transaction_editor/notify");
+    table = g_object_get_data(G_OBJECT(user_data), "prefs_widget_hash");
+    widget_notify = g_hash_table_lookup(table, "pref/" GNC_PREFS_GROUP_SXED "/" GNC_PREF_NOTIFY);
 
-    active = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget_create));
-    if (active)
+    if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(togglebutton)))
         gtk_widget_set_sensitive(widget_notify, TRUE);
     else
         gtk_widget_set_sensitive(widget_notify, FALSE);
@@ -1797,7 +1785,7 @@
     gnc_hook_add_dangler(HOOK_BOOK_OPENED,
                          (GFunc)gnc_sx_sxsincelast_book_opened, NULL);
 
-    /* Add page to preferences page for Sheduled Transactions */
+    /* Add page to preferences page for Scheduled Transactions */
     /* The parameters are; glade file, items to add from glade file - last being the dialog, preference tab name */
     gnc_preferences_add_page ("dialog-sx.glade",
                               "create_days_adj,remind_days_adj,sx_prefs",

Modified: gnucash/trunk/src/gnome/dialog-sx-editor.h
===================================================================
--- gnucash/trunk/src/gnome/dialog-sx-editor.h	2013-10-07 14:12:39 UTC (rev 23238)
+++ gnucash/trunk/src/gnome/dialog-sx-editor.h	2013-10-07 14:13:11 UTC (rev 23239)
@@ -29,11 +29,11 @@
 #define DIALOG_SCHEDXACTION_EDITOR_CM_CLASS "dialog-scheduledtransaction-editor"
 
 #define SXED_GCONF_SECTION "dialogs/scheduled_trans/transaction_editor"
-#define KEY_CREATE_AUTO "create_auto"
-#define KEY_NOTIFY "notify"
 #define KEY_CREATE_DAYS	"create_days"
 #define KEY_REMIND_DAYS	"remind_days"
 #define GNC_PREFS_GROUP_SXED "dialogs.sxs.transaction_editor"
+#define GNC_PREF_CREATE_AUTO "create_auto"
+#define GNC_PREF_NOTIFY      "notify"
 
 typedef struct _GncSxEditorDialog GncSxEditorDialog;
 

Modified: gnucash/trunk/src/gnome/dialog-sx-editor2.c
===================================================================
--- gnucash/trunk/src/gnome/dialog-sx-editor2.c	2013-10-07 14:12:39 UTC (rev 23238)
+++ gnucash/trunk/src/gnome/dialog-sx-editor2.c	2013-10-07 14:13:11 UTC (rev 23239)
@@ -60,6 +60,7 @@
 #include "gnc-ledger-display.h"
 #include "gnc-plugin-page.h"
 #include "gnc-plugin-page-register2.h"
+#include "gnc-prefs.h"
 #include "gnc-ui.h"
 #include "gnc-ui-util.h"
 #include "gnc-tree-model-split-reg.h"
@@ -144,7 +145,6 @@
 static void schedXact_editor_create_freq_sel (GncSxEditorDialog2 *sxed);
 static void schedXact_editor_create_ledger (GncSxEditorDialog2 *sxed);
 static void schedXact_editor_populate (GncSxEditorDialog2 *);
-static void gnc_sxed_record_size (GncSxEditorDialog2 *sxed);
 static void endgroup_rb_toggled_cb (GtkButton *b, gpointer d);
 static void set_endgroup_toggle_states (GncSxEditorDialog2 *sxed, EndType t);
 static void advance_toggled_cb (GtkButton *b, GncSxEditorDialog2 *sxed);
@@ -179,7 +179,7 @@
     GncSxEditorDialog2 *sxed = user_data;
 
     gnc_sxed_reg_check_close(sxed);
-    gnc_sxed_record_size(sxed);
+    gnc_save_window_size( GNC_PREFS_GROUP_SXED, GTK_WINDOW(sxed->dialog) );
     gtk_widget_destroy(sxed->dialog);
     /* The data will be cleaned up in the destroy handler. */
 }
@@ -1229,7 +1229,7 @@
 
     /* Allow resize */
     gtk_window_set_resizable (GTK_WINDOW (sxed->dialog), TRUE);
-    gnc_restore_window_size (SXED_GCONF_SECTION, GTK_WINDOW (sxed->dialog));
+    gnc_restore_window_size (GNC_PREFS_GROUP_SXED, GTK_WINDOW (sxed->dialog));
 
     /* create the frequency-selection widget and example [dense-]calendar. */
     schedXact_editor_create_freq_sel (sxed);
@@ -1261,14 +1261,6 @@
 
 static
 void
-gnc_sxed_record_size (GncSxEditorDialog2 *sxed)
-{
-    gnc_save_window_size (SXED_GCONF_SECTION, GTK_WINDOW (sxed->dialog));
-}
-
-
-static
-void
 schedXact_editor_create_freq_sel (GncSxEditorDialog2 *sxed)
 {
     GtkBox *b;
@@ -1408,9 +1400,9 @@
     if (sxed->newsxP)
     {
         autoCreateState =
-            gnc_gconf_get_bool (SXED_GCONF_SECTION, KEY_CREATE_AUTO, NULL);
+            gnc_prefs_get_bool (GNC_PREFS_GROUP_SXED, GNC_PREF_CREATE_AUTO);
         notifyState =
-            gnc_gconf_get_bool (SXED_GCONF_SECTION, KEY_NOTIFY, NULL);
+            gnc_prefs_get_bool (GNC_PREFS_GROUP_SXED, GNC_PREF_NOTIFY);
     }
     else
     {
@@ -1661,23 +1653,19 @@
 
 
 static void
-on_sx_check_toggled_cb (GtkWidget *togglebutton,
-                        gpointer user_data)
+on_sx_check_toggled_cb (GtkWidget *togglebutton, gpointer user_data)
 {
-    GtkWidget *widget_create, *widget_notify;
-    gboolean active; // , notify;
+    GtkWidget *widget_notify;
     GHashTable *table;
 
     PINFO("Togglebutton is %p and user_data is %p", togglebutton, user_data);
     PINFO("Togglebutton builder name is %s", gtk_buildable_get_name (GTK_BUILDABLE (togglebutton)));
 
     /* We need to use the hash table to find the required widget to activate. */
-    table = g_object_get_data (G_OBJECT (user_data), "widget_hash");
-    widget_create = g_hash_table_lookup (table, "gconf/dialogs/scheduled_trans/transaction_editor/create_auto");
-    widget_notify = g_hash_table_lookup (table, "gconf/dialogs/scheduled_trans/transaction_editor/notify");
+    table = g_object_get_data(G_OBJECT(user_data), "prefs_widget_hash");
+    widget_notify = g_hash_table_lookup(table, "pref/" GNC_PREFS_GROUP_SXED "/" GNC_PREF_NOTIFY);
 
-    active = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (widget_create));
-    if (active)
+    if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(togglebutton)))
         gtk_widget_set_sensitive (widget_notify, TRUE);
     else
         gtk_widget_set_sensitive (widget_notify, FALSE);

Modified: gnucash/trunk/src/gnome/dialog-sx-editor2.h
===================================================================
--- gnucash/trunk/src/gnome/dialog-sx-editor2.h	2013-10-07 14:12:39 UTC (rev 23238)
+++ gnucash/trunk/src/gnome/dialog-sx-editor2.h	2013-10-07 14:13:11 UTC (rev 23239)
@@ -29,10 +29,11 @@
 #define DIALOG_SCHEDXACTION2_EDITOR_CM_CLASS "dialog-scheduledtransaction-editor"
 
 #define SXED_GCONF_SECTION "dialogs/scheduled_trans/transaction_editor"
-#define KEY_CREATE_AUTO "create_auto"
-#define KEY_NOTIFY "notify"
 #define KEY_CREATE_DAYS	"create_days"
 #define KEY_REMIND_DAYS	"remind_days"
+#define GNC_PREFS_GROUP_SXED "dialogs.sxs.transaction_editor"
+#define GNC_PREF_CREATE_AUTO "create_auto"
+#define GNC_PREF_NOTIFY      "notify"
 
 typedef struct _GncSxEditorDialog2 GncSxEditorDialog2;
 

Modified: gnucash/trunk/src/gnome/dialog-sx-from-trans.c
===================================================================
--- gnucash/trunk/src/gnome/dialog-sx-from-trans.c	2013-10-07 14:12:39 UTC (rev 23238)
+++ gnucash/trunk/src/gnome/dialog-sx-from-trans.c	2013-10-07 14:13:11 UTC (rev 23239)
@@ -37,6 +37,7 @@
 #include "gnc-engine.h"
 #include "engine-helpers.h"
 #include "gnc-gconf-utils.h"
+#include "gnc-prefs.h"
 #include "gnc-ui-util.h"
 #include "gnc-ui.h"
 #include "qof.h"
@@ -498,9 +499,9 @@
         gint daysInAdvance;
 
         autoCreateState =
-            gnc_gconf_get_bool( SXED_GCONF_SECTION, KEY_CREATE_AUTO, NULL );
+            gnc_prefs_get_bool (GNC_PREFS_GROUP_SXED, GNC_PREF_CREATE_AUTO);
         notifyState =
-            gnc_gconf_get_bool( SXED_GCONF_SECTION, KEY_NOTIFY, NULL );
+            gnc_prefs_get_bool (GNC_PREFS_GROUP_SXED, GNC_PREF_NOTIFY);
         xaccSchedXactionSetAutoCreate( sx,
                                        autoCreateState,
                                        (autoCreateState & notifyState) );

Modified: gnucash/trunk/src/gnome/dialog-sx-since-last-run.c
===================================================================
--- gnucash/trunk/src/gnome/dialog-sx-since-last-run.c	2013-10-07 14:12:39 UTC (rev 23238)
+++ gnucash/trunk/src/gnome/dialog-sx-since-last-run.c	2013-10-07 14:13:11 UTC (rev 23239)
@@ -41,6 +41,7 @@
 #include "gnc-sx-instance-model.h"
 #include "dialog-sx-since-last-run.h"
 
+#include "gnc-prefs.h"
 #include "gnc-ui-util.h"
 #include "Query.h"
 #include "qof.h"
@@ -50,7 +51,6 @@
 /*################## Added for Reg2 #################*/
 #include "gnc-main-window.h"
 #include "gnc-component-manager.h"
-#include "gnc-gconf-utils.h"
 #include "gnc-gui-query.h"
 #include "gnc-session.h"
 
@@ -60,9 +60,10 @@
 G_GNUC_UNUSED static QofLogModule log_module = GNC_MOD_GUI_SX;
 
 #define DIALOG_SX_SINCE_LAST_RUN_CM_CLASS "dialog-sx-since-last-run"
-#define GCONF_SECTION "dialogs/scheduled_trans/since_last_run"
-#define GNC_PREFS_GROUP "dialogs.sxs.since_last_run"
 
+#define GNC_PREFS_GROUP        "dialogs.sxs.since_last_run"
+#define GNC_PREF_SHOW_AT_FOPEN "show_at_file_open"
+
 struct _GncSxSinceLastRunDialog
 {
     GtkWidget *dialog;
@@ -799,7 +800,7 @@
     GncSxInstanceModel *inst_model;
     GncSxSummary summary;
 
-    if (!gnc_gconf_get_bool(GCONF_SECTION, "show_at_file_open", NULL))
+    if (!gnc_prefs_get_bool (GNC_PREFS_GROUP, GNC_PREF_SHOW_AT_FOPEN))
         return;
 
     inst_model = gnc_sx_get_current_instances();

Modified: gnucash/trunk/src/gnome/dialog-tax-info.c
===================================================================
--- gnucash/trunk/src/gnome/dialog-tax-info.c	2013-10-07 14:12:39 UTC (rev 23238)
+++ gnucash/trunk/src/gnome/dialog-tax-info.c	2013-10-07 14:13:11 UTC (rev 23239)
@@ -37,6 +37,7 @@
 #include "gnc-ui-util.h"
 #include "dialog-utils.h"
 #include "gnc-gconf-utils.h"
+#include "gnc-prefs.h"
 #include "gnc-tree-view-account.h"
 #include "gnc-component-manager.h"
 #include "gnc-session.h"
@@ -1462,7 +1463,7 @@
 
     ti_dialog->paned = GTK_WIDGET(gtk_builder_get_object (builder, "paned"));
 
-    if (gnc_gconf_get_bool(GCONF_GENERAL, KEY_SAVE_GEOMETRY, NULL))
+    if (gnc_prefs_get_bool(GNC_PREFS_GROUP_GENERAL, GNC_PREF_SAVE_GEOMETRY))
     {
         gint position = gnc_gconf_get_int(GCONF_SECTION, PANED_POSITION, NULL);
         gtk_paned_set_position(GTK_PANED(ti_dialog->paned), position);
@@ -1475,7 +1476,7 @@
 {
     TaxInfoDialog *ti_dialog = user_data;
 
-    if (gnc_gconf_get_bool(GCONF_GENERAL, KEY_SAVE_GEOMETRY, NULL))
+    if (gnc_prefs_get_bool(GNC_PREFS_GROUP_GENERAL, GNC_PREF_SAVE_GEOMETRY))
     {
         gnc_gconf_set_int(GCONF_SECTION, PANED_POSITION,
                           gtk_paned_get_position(GTK_PANED(ti_dialog->paned)), NULL);

Modified: gnucash/trunk/src/gnome/gtkbuilder/dialog-sx.glade
===================================================================
--- gnucash/trunk/src/gnome/gtkbuilder/dialog-sx.glade	2013-10-07 14:12:39 UTC (rev 23238)
+++ gnucash/trunk/src/gnome/gtkbuilder/dialog-sx.glade	2013-10-07 14:13:11 UTC (rev 23239)
@@ -150,7 +150,7 @@
           </packing>
         </child>
         <child>
-          <object class="GtkCheckButton" id="gconf/dialogs/scheduled_trans/since_last_run/show_at_file_open">
+          <object class="GtkCheckButton" id="pref/dialogs.sxs.since_last_run/show_at_file_open">
             <property name="label" translatable="yes">_Run when data file opened</property>
             <property name="visible">True</property>
             <property name="can_focus">True</property>
@@ -170,7 +170,7 @@
           </packing>
         </child>
         <child>
-          <object class="GtkCheckButton" id="gconf/dialogs/scheduled_trans/transaction_editor/create_auto">
+          <object class="GtkCheckButton" id="pref/dialogs.sxs.transaction_editor/create_auto">
             <property name="label" translatable="yes">_Auto-create new transactions</property>
             <property name="visible">True</property>
             <property name="can_focus">True</property>
@@ -328,7 +328,7 @@
           </packing>
         </child>
         <child>
-          <object class="GtkCheckButton" id="gconf/dialogs/scheduled_trans/transaction_editor/notify">
+          <object class="GtkCheckButton" id="pref/dialogs.sxs.transaction_editor/notify">
             <property name="label" translatable="yes">_Notify before transactions are created </property>
             <property name="visible">True</property>
             <property name="sensitive">False</property>
@@ -338,7 +338,6 @@
             <property name="use_action_appearance">False</property>
             <property name="use_underline">True</property>
             <property name="draw_indicator">True</property>
-            <signal name="toggled" handler="on_sx_check_toggled_cb" swapped="no"/>
           </object>
           <packing>
             <property name="right_attach">4</property>

Modified: gnucash/trunk/src/gnome-utils/dialog-preferences.c
===================================================================
--- gnucash/trunk/src/gnome-utils/dialog-preferences.c	2013-10-07 14:12:39 UTC (rev 23238)
+++ gnucash/trunk/src/gnome-utils/dialog-preferences.c	2013-10-07 14:13:11 UTC (rev 23239)
@@ -752,78 +752,6 @@
 
 /****************************************************************************/
 
-/** The user clicked on a check button.  Update gconf.  Check button
- *  choices are stored as a boolean
- *
- *  @internal
- *
- *  @param button A pointer to the check button that was clicked.
- *
- *  @param user_data Unused.
- */
-static void
-gnc_prefs_check_button_user_cb_gconf (GtkCheckButton *button,
-                                gpointer user_data)
-{
-    const gchar *name;
-    gboolean active;
-
-    g_return_if_fail(GTK_IS_CHECK_BUTTON(button));
-    name = gtk_buildable_get_name(GTK_BUILDABLE(button)) + PREFIX_LEN;
-    active = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(button));
-    DEBUG("Checkbox %s now %sactive", name, active ? "" : "in");
-    gnc_gconf_set_bool(name, NULL, active, NULL);
-}
-
-
-/** A check button choice was updated in gconf.  Update the user
- *  visible dialog.
- *
- *  @internal
- *
- *  @param button A pointer to the check button that changed.
- *
- *  @param active The new state of the check button.
- */
-static void
-gnc_prefs_check_button_gconf_cb_gconf (GtkCheckButton *button,
-                                 gboolean active)
-{
-    g_return_if_fail(GTK_IS_CHECK_BUTTON(button));
-    ENTER("button %p, active %d", button, active);
-    g_signal_handlers_block_by_func(G_OBJECT(button),
-                                    G_CALLBACK(gnc_prefs_check_button_user_cb_gconf), NULL);
-    gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), active);
-    g_signal_handlers_unblock_by_func(G_OBJECT(button),
-                                      G_CALLBACK(gnc_prefs_check_button_user_cb_gconf), NULL);
-    LEAVE(" ");
-}
-
-
-/** Connect a check button widget to the user callback function.  Set
- *  the starting state of the button from its value in gconf.
- *
- *  @internal
- *
- *  @param button A pointer to the check button that should be
- *  connected.
- */
-static void
-gnc_prefs_connect_check_button_gconf (GtkCheckButton *button)
-{
-    const gchar *name;
-    gboolean active;
-
-    name = gtk_buildable_get_name(GTK_BUILDABLE(button)) + PREFIX_LEN;
-    active = gnc_gconf_get_bool(name, NULL, NULL);
-    DEBUG(" Checkbox %s initially %sactive", name, active ? "" : "in");
-    gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), active);
-    g_signal_connect(G_OBJECT(button), "toggled",
-                     G_CALLBACK(gnc_prefs_check_button_user_cb_gconf), NULL);
-}
-
-/****************************************************************************/
-
 /** The user updated a spin button.  Update gconf.  Spin button
  *  choices are stored as a float.
  *
@@ -1454,11 +1382,6 @@
         DEBUG("  %s - radio button", name);
         gnc_prefs_connect_radio_button_gconf(GTK_RADIO_BUTTON(widget));
     }
-    else if (GTK_IS_CHECK_BUTTON(widget))
-    {
-        DEBUG("  %s - check button", name);
-        gnc_prefs_connect_check_button_gconf(GTK_CHECK_BUTTON(widget));
-    }
     else if (GTK_IS_SPIN_BUTTON(widget))
     {
         DEBUG("  %s - spin button", name);
@@ -1790,12 +1713,6 @@
             DEBUG("widget %p - radio button", widget);
             gnc_prefs_radio_button_gconf_cb_gconf(GTK_RADIO_BUTTON(widget));
         }
-        else if (GTK_IS_CHECK_BUTTON(widget))
-        {
-            DEBUG("widget %p - check button", widget);
-            gnc_prefs_check_button_gconf_cb_gconf(GTK_CHECK_BUTTON(widget),
-                                            gconf_value_get_bool(entry->value));
-        }
         else if (GTK_IS_SPIN_BUTTON(widget))
         {
             DEBUG("widget %p - spin button", widget);

Modified: gnucash/trunk/src/gnome-utils/dialog-utils.c
===================================================================
--- gnucash/trunk/src/gnome-utils/dialog-utils.c	2013-10-07 14:12:39 UTC (rev 23238)
+++ gnucash/trunk/src/gnome-utils/dialog-utils.c	2013-10-07 14:13:11 UTC (rev 23239)
@@ -161,7 +161,7 @@
     g_return_if_fail(group != NULL);
     g_return_if_fail(window != NULL);
 
-    if (!gnc_gconf_get_bool(GCONF_GENERAL, KEY_SAVE_GEOMETRY, NULL))
+    if (gnc_prefs_get_bool(GNC_PREFS_GROUP_GENERAL, GNC_PREF_SAVE_GEOMETRY))
         return;
 
     geometry = gnc_prefs_get_value (group, GNC_PREF_LAST_GEOMETRY);
@@ -219,7 +219,7 @@
     g_return_if_fail(group != NULL);
     g_return_if_fail(window != NULL);
 
-    if (!gnc_gconf_get_bool(GCONF_GENERAL, KEY_SAVE_GEOMETRY, NULL))
+    if (gnc_prefs_get_bool(GNC_PREFS_GROUP_GENERAL, GNC_PREF_SAVE_GEOMETRY))
         return;
 
     gtk_window_get_position(GTK_WINDOW(window), &wpos[0], &wpos[1]);

Modified: gnucash/trunk/src/gnome-utils/gnc-main-window.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-main-window.c	2013-10-07 14:12:39 UTC (rev 23238)
+++ gnucash/trunk/src/gnome-utils/gnc-main-window.c	2013-10-07 14:13:11 UTC (rev 23239)
@@ -93,8 +93,8 @@
 #define PLUGIN_PAGE_CLOSE_BUTTON "close-button"
 #define PLUGIN_PAGE_TAB_LABEL    "label"
 
-#define KEY_SHOW_CLOSE_BUTTON    "tab_close_buttons"
-#define KEY_TAB_NEXT_RECENT      "tab_next_recent"
+#define GNC_PREF_SHOW_CLOSE_BUTTON    "tab_close_buttons"
+#define GNC_PREF_TAB_NEXT_RECENT      "tab_next_recent"
 #define KEY_TAB_POSITION         "tab_position"
 #define KEY_TAB_WIDTH            "tab_width"
 #define GNC_PREF_TAB_COLOR            "show_account_color_tabs"
@@ -1889,12 +1889,12 @@
  *  @param user_data Unused.
  */
 static void
-gnc_main_window_update_tab_close (GConfEntry *entry, gpointer user_data)
+gnc_main_window_update_tab_close (gpointer prefs, gchar *pref, gpointer user_data)
 {
     gboolean new_value;
 
     ENTER(" ");
-    new_value = gconf_value_get_bool(entry->value);
+    new_value = gnc_prefs_get_bool (GNC_PREFS_GROUP_GENERAL, GNC_PREF_SHOW_CLOSE_BUTTON);
     gnc_main_window_foreach_page(
         gnc_main_window_update_tab_close_one_page,
         &new_value);
@@ -2431,9 +2431,10 @@
                       G_TYPE_NONE, 1,
                       G_TYPE_OBJECT);
 
-    gnc_gconf_general_register_cb (KEY_SHOW_CLOSE_BUTTON,
-                                   gnc_main_window_update_tab_close,
-                                   NULL);
+    gnc_prefs_register_cb (GNC_PREFS_GROUP_GENERAL,
+                           GNC_PREF_SHOW_CLOSE_BUTTON,
+                           gnc_main_window_update_tab_close,
+                           NULL);
     gnc_gconf_general_register_cb (KEY_TAB_WIDTH,
                                    gnc_main_window_update_tab_width,
                                    NULL);
@@ -2712,7 +2713,7 @@
 
     /* Switch to the last recently used page */
     notebook = GTK_NOTEBOOK (priv->notebook);
-    if (gnc_gconf_get_bool(GCONF_GENERAL, KEY_TAB_NEXT_RECENT, NULL))
+    if (gnc_prefs_get_bool(GNC_PREFS_GROUP_GENERAL, GNC_PREF_TAB_NEXT_RECENT))
     {
         new_page = g_list_nth_data (priv->usage_order, 0);
         if (new_page)
@@ -2904,7 +2905,7 @@
                                     requisition.height + 2);
         gtk_button_set_alignment(GTK_BUTTON(close_button), 0.5, 0.5);
         gtk_container_add(GTK_CONTAINER(close_button), close_image);
-        if (gnc_gconf_get_bool(GCONF_GENERAL, KEY_SHOW_CLOSE_BUTTON, NULL))
+        if (gnc_prefs_get_bool(GNC_PREFS_GROUP_GENERAL, GNC_PREF_SHOW_CLOSE_BUTTON))
             gtk_widget_show (close_button);
         else
             gtk_widget_hide (close_button);

Modified: gnucash/trunk/src/gnome-utils/gtkbuilder/dialog-preferences.glade
===================================================================
--- gnucash/trunk/src/gnome-utils/gtkbuilder/dialog-preferences.glade	2013-10-07 14:12:39 UTC (rev 23238)
+++ gnucash/trunk/src/gnome-utils/gtkbuilder/dialog-preferences.glade	2013-10-07 14:13:11 UTC (rev 23239)
@@ -3278,7 +3278,7 @@
                   </packing>
                 </child>
                 <child>
-                  <object class="GtkCheckButton" id="gconf/general/report/use_new_window">
+                  <object class="GtkCheckButton" id="pref/general.report/use_new_window">
                     <property name="label" translatable="yes">Report opens in a new _window</property>
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>
@@ -3539,7 +3539,7 @@
                   </packing>
                 </child>
                 <child>
-                  <object class="GtkCheckButton" id="gconf/general/save_window_geometry">
+                  <object class="GtkCheckButton" id="pref/general/save_window_geometry">
                     <property name="label" translatable="yes">_Save window size and position</property>
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>
@@ -3560,7 +3560,7 @@
                   </packing>
                 </child>
                 <child>
-                  <object class="GtkCheckButton" id="gconf/general/tab_next_recent">
+                  <object class="GtkCheckButton" id="pref/general/tab_next_recent">
                     <property name="label" translatable="yes">Bring the most _recent tab to the front</property>
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>
@@ -3790,7 +3790,7 @@
                   </packing>
                 </child>
                 <child>
-                  <object class="GtkCheckButton" id="gconf/general/tab_close_buttons">
+                  <object class="GtkCheckButton" id="pref/general/tab_close_buttons">
                     <property name="label" translatable="yes">Show close button on _notebook tabs</property>
                     <property name="visible">True</property>
                     <property name="can_focus">True</property>

Modified: gnucash/trunk/src/import-export/aqbanking/dialog-ab.glade
===================================================================
--- gnucash/trunk/src/import-export/aqbanking/dialog-ab.glade	2013-10-07 14:12:39 UTC (rev 23238)
+++ gnucash/trunk/src/import-export/aqbanking/dialog-ab.glade	2013-10-07 14:13:11 UTC (rev 23239)
@@ -815,7 +815,7 @@
           </packing>
         </child>
         <child>
-          <object class="GtkCheckButton" id="gconf/dialogs/import/hbci/close_on_finish">
+          <object class="GtkCheckButton" id="pref/dialogs.import.hbci/close_on_finish">
             <property name="label" translatable="yes">_Close log window when finished</property>
             <property name="visible">True</property>
             <property name="can_focus">True</property>
@@ -834,7 +834,7 @@
           </packing>
         </child>
         <child>
-          <object class="GtkCheckButton" id="gconf/dialogs/import/hbci/remember_pin">
+          <object class="GtkCheckButton" id="pref/dialogs.import.hbci/remember_pin">
             <property name="label" translatable="yes">Remember _PIN</property>
             <property name="visible">True</property>
             <property name="can_focus">True</property>

Modified: gnucash/trunk/src/import-export/aqbanking/gnc-ab-utils.c
===================================================================
--- gnucash/trunk/src/import-export/aqbanking/gnc-ab-utils.c	2013-10-07 14:12:39 UTC (rev 23238)
+++ gnucash/trunk/src/import-export/aqbanking/gnc-ab-utils.c	2013-10-07 14:13:11 UTC (rev 23239)
@@ -38,9 +38,9 @@
 #include "dialog-ab-trans.h"
 #include "gnc-ab-kvp.h"
 #include "gnc-ab-utils.h"
-#include "gnc-gconf-utils.h"
 #include "gnc-glib-utils.h"
 #include "gnc-gwen-gui.h"
+#include "gnc-prefs.h"
 #include "gnc-ui.h"
 #include "import-account-matcher.h"
 #include "import-main-matcher.h"
@@ -93,7 +93,7 @@
     GWEN_Init();
 
     /* Initialize gwen logging */
-    if (gnc_gconf_get_bool(GCONF_SECTION_AQBANKING, KEY_VERBOSE_DEBUG, NULL))
+    if (gnc_prefs_get_bool(GNC_PREFS_GROUP_AQBANKING, GNC_PREF_VERBOSE_DEBUG))
     {
         if (!gwen_logging)
         {

Modified: gnucash/trunk/src/import-export/aqbanking/gnc-ab-utils.h
===================================================================
--- gnucash/trunk/src/import-export/aqbanking/gnc-ab-utils.h	2013-10-07 14:12:39 UTC (rev 23238)
+++ gnucash/trunk/src/import-export/aqbanking/gnc-ab-utils.h	2013-10-07 14:13:11 UTC (rev 23239)
@@ -75,7 +75,7 @@
 #define KEY_FORMAT_SWIFT940 "format_swift_mt940"
 #define KEY_FORMAT_SWIFT942 "format_swift_mt942"
 #define KEY_FORMAT_DTAUS "format_dtaus"
-#define KEY_VERBOSE_DEBUG   "verbose_debug"
+#define GNC_PREF_VERBOSE_DEBUG    "verbose_debug"
 
 typedef struct _GncABImExContextImport GncABImExContextImport;
 

Modified: gnucash/trunk/src/import-export/aqbanking/gnc-gwen-gui.c
===================================================================
--- gnucash/trunk/src/import-export/aqbanking/gnc-gwen-gui.c	2013-10-07 14:12:39 UTC (rev 23238)
+++ gnucash/trunk/src/import-export/aqbanking/gnc-gwen-gui.c	2013-10-07 14:13:11 UTC (rev 23239)
@@ -38,9 +38,9 @@
 #include "dialog-utils.h"
 #include "gnc-ab-utils.h"
 #include "gnc-component-manager.h"
-#include "gnc-gconf-utils.h"
 #include "gnc-gwen-gui.h"
 #include "gnc-session.h"
+#include "gnc-prefs.h"
 #include "gnc-ui.h"
 #include "gnc-plugin-aqbanking.h"
 #include "md5.h"
@@ -57,8 +57,8 @@
 
 #define GWEN_GUI_CM_CLASS "dialog-hbcilog"
 #define GNC_PREFS_GROUP_CONNECTION GNC_PREFS_GROUP_AQBANKING ".connection_dialog"
-#define KEY_CLOSE_ON_FINISH "close_on_finish"
-#define KEY_REMEMBER_PIN "remember_pin"
+#define GNC_PREF_CLOSE_ON_FINISH   "close_on_finish"
+#define GNC_PREF_REMEMBER_PIN      "remember_pin"
 
 #ifdef USING_GWENHYWFAR_GTK2_GUI
 # include <gwen-gui-gtk2/gtk2_gui.h>
@@ -103,15 +103,14 @@
 void
 gnc_GWEN_Gui_set_close_flag(gboolean close_when_finished)
 {
-    gnc_gconf_set_bool(
-        GCONF_SECTION_AQBANKING, KEY_CLOSE_ON_FINISH,
-        close_when_finished,
-        NULL);
+    gnc_prefs_set_bool(
+            GNC_PREFS_GROUP_AQBANKING, GNC_PREF_CLOSE_ON_FINISH,
+            close_when_finished);
 }
 gboolean
 gnc_GWEN_Gui_get_close_flag()
 {
-    return gnc_gconf_get_bool(GCONF_SECTION_AQBANKING, KEY_CLOSE_ON_FINISH, NULL);
+    return gnc_prefs_get_bool (GNC_PREFS_GROUP_AQBANKING, GNC_PREF_CLOSE_ON_FINISH);
 }
 
 gboolean
@@ -392,10 +391,9 @@
 void
 gnc_GWEN_Gui_set_close_flag(gboolean close_when_finished)
 {
-    gnc_gconf_set_bool(
-        GCONF_SECTION_AQBANKING, KEY_CLOSE_ON_FINISH,
-        close_when_finished,
-        NULL);
+    gnc_prefs_set_bool(
+            GNC_PREFS_GROUP_AQBANKING, GNC_PREF_CLOSE_ON_FINISH,
+            close_when_finished);
 
     if (full_gui)
     {
@@ -412,7 +410,7 @@
 gboolean
 gnc_GWEN_Gui_get_close_flag()
 {
-    return gnc_gconf_get_bool(GCONF_SECTION_AQBANKING, KEY_CLOSE_ON_FINISH, NULL);
+    return gnc_prefs_get_bool (GNC_PREFS_GROUP_AQBANKING, GNC_PREF_CLOSE_ON_FINISH);
 }
 
 gboolean
@@ -433,7 +431,7 @@
         }
         gtk_toggle_button_set_active(
             GTK_TOGGLE_BUTTON(gui->close_checkbutton),
-            gnc_gconf_get_bool(GCONF_SECTION_AQBANKING, KEY_CLOSE_ON_FINISH, NULL));
+            gnc_prefs_get_bool (GNC_PREFS_GROUP_AQBANKING, GNC_PREF_CLOSE_ON_FINISH));
 
         show_dialog(gui, FALSE);
 
@@ -547,7 +545,7 @@
 
     gtk_toggle_button_set_active(
         GTK_TOGGLE_BUTTON(gui->close_checkbutton),
-        gnc_gconf_get_bool(GCONF_SECTION_AQBANKING, KEY_CLOSE_ON_FINISH, NULL));
+        gnc_prefs_get_bool (GNC_PREFS_GROUP_AQBANKING, GNC_PREF_CLOSE_ON_FINISH));
 
     component_id = gnc_register_gui_component(GWEN_GUI_CM_CLASS, NULL,
                    cm_close_handler, gui);
@@ -620,8 +618,8 @@
     gui->state = INIT;
     gui->min_loglevel = GWEN_LoggerLevel_Verbous;
 
-    cache_passwords = gnc_gconf_get_bool(GCONF_SECTION_AQBANKING,
-                                         KEY_REMEMBER_PIN, NULL);
+    cache_passwords = gnc_prefs_get_bool(GNC_PREFS_GROUP_AQBANKING,
+                                         GNC_PREF_REMEMBER_PIN);
     enable_password_cache(gui, cache_passwords);
 
     if (!gui->accepted_certs)
@@ -719,10 +717,9 @@
     gnc_plugin_aqbanking_set_logwindow_visible(FALSE);
 
     /* Remember whether the dialog is to be closed when finished */
-    gnc_gconf_set_bool(
-        GCONF_SECTION_AQBANKING, KEY_CLOSE_ON_FINISH,
-        gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(gui->close_checkbutton)),
-        NULL);
+    gnc_prefs_set_bool(
+            GNC_PREFS_GROUP_AQBANKING, GNC_PREF_CLOSE_ON_FINISH,
+            gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(gui->close_checkbutton)));
 
     /* Remember size and position of the dialog */
     gnc_save_window_size(GNC_PREFS_GROUP_CONNECTION, GTK_WINDOW(gui->dialog));
@@ -1060,8 +1057,8 @@
             remember_pin = gtk_toggle_button_get_active(
                                GTK_TOGGLE_BUTTON(remember_pin_checkbutton));
             enable_password_cache(gui, remember_pin);
-            gnc_gconf_set_bool(GCONF_SECTION_AQBANKING, KEY_REMEMBER_PIN,
-                               remember_pin, NULL);
+            gnc_prefs_set_bool(GNC_PREFS_GROUP_AQBANKING, GNC_PREF_REMEMBER_PIN,
+                               remember_pin);
         }
 
         internal_input = gtk_entry_get_text(GTK_ENTRY(input_entry));
@@ -1618,10 +1615,9 @@
 
     ENTER("gui=%p", gui);
 
-    gnc_gconf_set_bool(
-        GCONF_SECTION_AQBANKING, KEY_CLOSE_ON_FINISH,
-        gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(button)),
-        NULL);
+    gnc_prefs_set_bool(
+            GNC_PREFS_GROUP_AQBANKING, GNC_PREF_CLOSE_ON_FINISH,
+            gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(button)));
 
     LEAVE(" ");
 }

Modified: gnucash/trunk/src/import-export/csv-export/assistant-csv-export.c
===================================================================
--- gnucash/trunk/src/import-export/csv-export/assistant-csv-export.c	2013-10-07 14:12:39 UTC (rev 23238)
+++ gnucash/trunk/src/import-export/csv-export/assistant-csv-export.c	2013-10-07 14:13:11 UTC (rev 23239)
@@ -35,6 +35,7 @@
 #include "gnc-component-manager.h"
 #include "gnc-date-edit.h"
 #include "gnc-gconf-utils.h"
+#include "gnc-prefs.h"
 #include "gnc-tree-view-account.h"
 #include "dialog-utils.h"
 #include "Query.h"
@@ -747,8 +748,11 @@
     gchar *text, *mtext;
 
     /* Save the Window size, paned position and directory */
-    gnc_gconf_set_int(GCONF_SECTION, PANED_POSITION,
-                      gtk_paned_get_position(GTK_PANED(info->csva.paned)), NULL);
+    if (gnc_prefs_get_bool(GNC_PREFS_GROUP_GENERAL, GNC_PREF_SAVE_GEOMETRY))
+    {
+        gnc_gconf_set_int(GCONF_SECTION, PANED_POSITION,
+                          gtk_paned_get_position(GTK_PANED(info->csva.paned)), NULL);
+    }
     gnc_set_default_directory(GNC_PREFS_GROUP, info->starting_dir);
 
     if (info->failed)
@@ -1008,7 +1012,7 @@
 
     info->csva.paned = GTK_WIDGET(gtk_builder_get_object (builder, "paned"));
 
-    if (gnc_gconf_get_bool(GCONF_SECTION, KEY_SAVE_GEOMETRY, NULL))
+    if (gnc_prefs_get_bool(GNC_PREFS_GROUP_GENERAL, GNC_PREF_SAVE_GEOMETRY))
     {
         gint position = gnc_gconf_get_int(GCONF_SECTION, PANED_POSITION, NULL);
         gtk_paned_set_position(GTK_PANED(info->csva.paned), position);

Modified: gnucash/trunk/src/import-export/dialog-import.glade
===================================================================
--- gnucash/trunk/src/import-export/dialog-import.glade	2013-10-07 14:12:39 UTC (rev 23238)
+++ gnucash/trunk/src/import-export/dialog-import.glade	2013-10-07 14:13:11 UTC (rev 23239)
@@ -13,7 +13,7 @@
         <property name="n_rows">10</property>
         <property name="n_columns">4</property>
         <child>
-          <object class="GtkCheckButton" id="gconf/dialogs/import/generic_matcher/enable_skip">
+          <object class="GtkCheckButton" id="pref/dialogs.import.generic/enable_skip">
             <property name="label" translatable="yes">Enable skip transaction action</property>
             <property name="visible">True</property>
             <property name="can_focus">True</property>
@@ -35,7 +35,7 @@
           </packing>
         </child>
         <child>
-          <object class="GtkCheckButton" id="gconf/dialogs/import/generic_matcher/enable_update">
+          <object class="GtkCheckButton" id="pref/dialogs.import.generic/enable_update">
             <property name="label" translatable="yes">Enable update match action</property>
             <property name="visible">True</property>
             <property name="can_focus">True</property>
@@ -248,7 +248,7 @@
           </packing>
         </child>
         <child>
-          <object class="GtkCheckButton" id="gconf/dialogs/import/generic_matcher/use_bayes">
+          <object class="GtkCheckButton" id="pref/dialogs.import.generic/use_bayes">
             <property name="label" translatable="yes">Use _bayesian matching</property>
             <property name="visible">True</property>
             <property name="can_focus">True</property>
@@ -270,7 +270,7 @@
           </packing>
         </child>
         <child>
-          <object class="GtkCheckButton" id="gconf/dialogs/import/generic_matcher/auto_create_commodity">
+          <object class="GtkCheckButton" id="pref/dialogs.import.generic/auto_create_commodity">
             <property name="label" translatable="yes">Automatically create new commodities</property>
             <property name="visible">True</property>
             <property name="can_focus">True</property>

Modified: gnucash/trunk/src/import-export/import-backend.c
===================================================================
--- gnucash/trunk/src/import-export/import-backend.c	2013-10-07 14:12:39 UTC (rev 23238)
+++ gnucash/trunk/src/import-export/import-backend.c	2013-10-07 14:13:11 UTC (rev 23239)
@@ -35,17 +35,15 @@
 
 #include <errno.h>
 
-#include "gnc-gconf-utils.h"
 #include "import-backend.h"
 #include "import-utilities.h"
 #include "Account.h"
 #include "Query.h"
 #include "gnc-engine.h"
 #include "engine-helpers.h"
+#include "gnc-prefs.h"
 #include "gnc-ui-util.h"
 
-#define GCONF_SECTION "dialogs/import/generic_matcher"
-#define BAYES_OPTION  "use_bayes"
 
 /********************************************************************\
  *   Constants                                                      *
@@ -477,7 +475,7 @@
                (xaccSplitGetAccount
                 (gnc_import_TransInfo_get_fsplit (info))));
 
-    useBayes = gnc_gconf_get_bool(GCONF_SECTION, BAYES_OPTION, NULL);
+    useBayes = gnc_prefs_get_bool (GNC_PREFS_GROUP_IMPORT, GNC_PREF_USE_BAYES);
     if (useBayes)
     {
         /* get the tokens for this transaction* */
@@ -548,7 +546,7 @@
                      (gnc_import_TransInfo_get_fsplit (trans_info))));
 
     /* see what matching system we are currently using */
-    useBayes = gnc_gconf_get_bool(GCONF_SECTION, BAYES_OPTION, NULL);
+    useBayes = gnc_prefs_get_bool (GNC_PREFS_GROUP_IMPORT, GNC_PREF_USE_BAYES);
     if (useBayes)
     {
         /* tokenize this transaction */

Modified: gnucash/trunk/src/import-export/import-settings.c
===================================================================
--- gnucash/trunk/src/import-export/import-settings.c	2013-10-07 14:12:39 UTC (rev 23238)
+++ gnucash/trunk/src/import-export/import-settings.c	2013-10-07 14:13:11 UTC (rev 23239)
@@ -30,6 +30,7 @@
 
 #include "import-settings.h"
 #include "gnc-gconf-utils.h"
+#include "gnc-prefs.h"
 
 /********************************************************************\
  * Default values for user prefs (or values for unimplemented prefs.*
@@ -83,9 +84,9 @@
 
 
     settings->action_skip_enabled =
-        gnc_gconf_get_bool(GCONF_IMPORT_SECTION, "enable_skip", NULL);
+        gnc_prefs_get_bool (GNC_PREFS_GROUP_IMPORT, GNC_PREF_ENABLE_SKIP);
     settings->action_update_enabled =
-        gnc_gconf_get_bool(GCONF_IMPORT_SECTION, "enable_update", NULL);
+        gnc_prefs_get_bool (GNC_PREFS_GROUP_IMPORT, GNC_PREF_ENABLE_UPDATE);
     settings->action_add_enabled = DEFAULT_ACTION_ADD_ENABLED;
     settings->action_clear_enabled = DEFAULT_ACTION_CLEAR_ENABLED;
     settings->clear_threshold =

Modified: gnucash/trunk/src/import-export/import-settings.h
===================================================================
--- gnucash/trunk/src/import-export/import-settings.h	2013-10-07 14:12:39 UTC (rev 23238)
+++ gnucash/trunk/src/import-export/import-settings.h	2013-10-07 14:13:11 UTC (rev 23239)
@@ -28,16 +28,15 @@
 #ifndef GNC_GEN_SETTINGS_H
 #define GNC_GEN_SETTINGS_H
 
+#include "import-utilities.h"
+
 typedef struct _genimportsettings GNCImportSettings;
 
 /************************************************************************
  *   Getter/Setter Functions for the Data Types.
  ************************************************************************/
 
-/** The GConf section of the importer */
-#define GCONF_IMPORT_SECTION "dialogs/import/generic_matcher"
 
-
 /** Allocates a new GNCImportSettings object, and initialize it with
  *    the appropriate user prefs.
  */

Modified: gnucash/trunk/src/import-export/import-utilities.h
===================================================================
--- gnucash/trunk/src/import-export/import-utilities.h	2013-10-07 14:12:39 UTC (rev 23238)
+++ gnucash/trunk/src/import-export/import-utilities.h	2013-10-07 14:13:11 UTC (rev 23239)
@@ -25,6 +25,15 @@
 #ifndef IMPORT_UTILITIES_H
 #define IMPORT_UTILITIES_H
 
+
+/** The GConf section of the importer */
+#define GCONF_IMPORT_SECTION "dialogs/import/generic_matcher"
+#define GNC_PREFS_GROUP_IMPORT "dialogs.import.generic"
+#define GNC_PREF_ENABLE_SKIP   "enable_skip"
+#define GNC_PREF_ENABLE_UPDATE "enable_update"
+#define GNC_PREF_USE_BAYES     "use_bayes"
+
+
 #include "Account.h"
 
 /** @name Setter-getters

Modified: gnucash/trunk/src/import-export/ofx/gnc-ofx-import.c
===================================================================
--- gnucash/trunk/src/import-export/ofx/gnc-ofx-import.c	2013-10-07 14:12:39 UTC (rev 23238)
+++ gnucash/trunk/src/import-export/ofx/gnc-ofx-import.c	2013-10-07 14:13:11 UTC (rev 23239)
@@ -46,7 +46,7 @@
 #include "gnc-engine.h"
 #include "gnc-ui-util.h"
 #include "gnc-glib-utils.h"
-#include "gnc-gconf-utils.h"
+#include "gnc-prefs.h"
 #include "gnome-utils/gnc-ui.h"
 #include "gnome-utils/dialog-account.h"
 #include "dialog-utils.h"
@@ -54,6 +54,7 @@
 #include "gnc-ofx-kvp.h"
 
 #define GNC_PREFS_GROUP "dialogs.import.ofx"
+#define GNC_PREF_AUTO_COMMODITY "auto_create_commodity"
 
 static QofLogModule log_module = GNC_MOD_IMPORT;
 
@@ -953,9 +954,9 @@
         /* Create the Generic transaction importer GUI. */
         gnc_ofx_importer_gui = gnc_gen_trans_list_new(NULL, NULL, FALSE, 42);
 
-        /* Look up the needed gconf options */
+        /* Look up the needed preferences */
         auto_create_commodity =
-            gnc_gconf_get_bool(GCONF_IMPORT_SECTION, "auto_create_commodity", NULL);
+            gnc_prefs_get_bool (GNC_PREFS_GROUP_IMPORT, GNC_PREF_AUTO_COMMODITY);
 
         /* Initialize libofx */
 

Modified: gnucash/trunk/src/import-export/qif-import/assistant-qif-import.c
===================================================================
--- gnucash/trunk/src/import-export/qif-import/assistant-qif-import.c	2013-10-07 14:12:39 UTC (rev 23238)
+++ gnucash/trunk/src/import-export/qif-import/assistant-qif-import.c	2013-10-07 14:13:11 UTC (rev 23239)
@@ -52,6 +52,7 @@
 #include "gnc-gtk-utils.h"
 #include "gnc-main-window.h"
 #include "gnc-plugin-page-account-tree.h"
+#include "gnc-prefs.h"
 #include "gnc-ui.h"
 #include "guile-mappings.h"
 
@@ -59,8 +60,8 @@
 
 #define ASSISTANT_QIF_IMPORT_CM_CLASS "assistant-qif-import"
 #define GCONF_SECTION "dialogs/import/qif"
-#define GNC_PREFS_GROUP "dialogs.import.qif"
-#define GCONF_NAME_SHOW_DOC "show_doc"
+#define GNC_PREFS_GROUP   "dialogs.import.qif"
+#define GNC_PREF_SHOW_DOC "show_doc"
 #define GCONF_NAME_DEFAULT_TRANSACTION_STATUS "default_status"
 
 #define PREV_ROW "prev_row"
@@ -1379,19 +1380,8 @@
 
     /* Get the user's preference for showing documentation pages. */
     wind->show_doc_pages =
-        gnc_gconf_get_bool(GCONF_SECTION, GCONF_NAME_SHOW_DOC, &err);
-    if (err != NULL)
-    {
-        g_warning("QIF import: gnc_gconf_get_bool error: %s", err->message);
-        g_error_free(err);
+        gnc_prefs_get_bool (GNC_PREFS_GROUP, GNC_PREF_SHOW_DOC);
 
-        /* Show documentation pages by default. */
-        g_warning("QIF import: Couldn't get %s setting from gconf.",
-                  GCONF_NAME_SHOW_DOC);
-        g_warning("QIF import: Documentation pages will be shown by default.");
-        wind->show_doc_pages = TRUE;
-    }
-
     /* Clear / Reconcile transaction if not specified in QIF file. */
     status_pref = gnc_gconf_get_string(
                       GCONF_SECTION, GCONF_NAME_DEFAULT_TRANSACTION_STATUS, &err);

Modified: gnucash/trunk/src/import-export/qif-import/dialog-account-picker.glade
===================================================================
--- gnucash/trunk/src/import-export/qif-import/dialog-account-picker.glade	2013-10-07 14:12:39 UTC (rev 23238)
+++ gnucash/trunk/src/import-export/qif-import/dialog-account-picker.glade	2013-10-07 14:13:11 UTC (rev 23239)
@@ -26,7 +26,7 @@
           </packing>
         </child>
         <child>
-          <object class="GtkCheckButton" id="gconf/dialogs/import/qif/show_doc">
+          <object class="GtkCheckButton" id="pref/dialogs.import.qif/show_doc">
             <property name="label" translatable="yes">_Show documentation</property>
             <property name="visible">True</property>
             <property name="can_focus">True</property>

Modified: gnucash/trunk/src/register/register-gnome/table-gnome.c
===================================================================
--- gnucash/trunk/src/register/register-gnome/table-gnome.c	2013-10-07 14:12:39 UTC (rev 23238)
+++ gnucash/trunk/src/register/register-gnome/table-gnome.c	2013-10-07 14:13:11 UTC (rev 23239)
@@ -49,6 +49,7 @@
 #include "table-allgui.h"
 #include "table-gnome.h"
 #include "gnc-gconf-utils.h"
+#include "gnc-prefs.h"
 #include "gnc-engine.h"
 
 #include "gnc-ledger-display.h"
@@ -82,7 +83,7 @@
     if (table->ui_data == NULL)
         return;
 
-    if (!gnc_gconf_get_bool(GCONF_GENERAL, KEY_SAVE_GEOMETRY, NULL))
+    if (gnc_prefs_get_bool(GNC_PREFS_GROUP_GENERAL, GNC_PREF_SAVE_GEOMETRY))
         return;
 
     sheet = GNUCASH_SHEET (table->ui_data);
@@ -193,7 +194,7 @@
 
     widths = gnc_header_widths_new ();
 
-    if (gnc_gconf_get_bool(GCONF_GENERAL, KEY_SAVE_GEOMETRY, NULL))
+    if (gnc_prefs_get_bool(GNC_PREFS_GROUP_GENERAL, GNC_PREF_SAVE_GEOMETRY))
     {
         node = gnc_table_layout_get_cells (table->layout);
         for (; node; node = node->next)

Modified: gnucash/trunk/src/report/report-gnome/gnc-plugin-page-report.c
===================================================================
--- gnucash/trunk/src/report/report-gnome/gnc-plugin-page-report.c	2013-10-07 14:12:39 UTC (rev 23238)
+++ gnucash/trunk/src/report/report-gnome/gnc-plugin-page-report.c	2013-10-07 14:13:11 UTC (rev 23239)
@@ -60,6 +60,7 @@
 #include "gnc-plugin.h"
 #include "gnc-plugin-page-report.h"
 #include "gnc-plugin-file-history.h"
+#include "gnc-prefs.h"
 #include "gnc-report.h"
 #include "gnc-session.h"
 #include "gnc-ui-util.h"
@@ -1137,7 +1138,7 @@
 
     /* Init parent declared variables */
     parent = GNC_PLUGIN_PAGE(plugin_page);
-    use_new = gnc_gconf_get_bool(GCONF_GENERAL_REPORT, KEY_USE_NEW, NULL);
+    use_new = gnc_prefs_get_bool (GNC_PREFS_GROUP_GENERAL_REPORT, GNC_PREF_USE_NEW);
     name = gnc_report_name( priv->initial_report );
     g_object_set(G_OBJECT(plugin_page),
                  "page-name",      name,



More information about the gnucash-changes mailing list