r16043 - gnucash/trunk/src/import-export - Save column selection in import account matcher to GConf.
Andreas Köhler
andi5 at cvs.gnucash.org
Fri May 4 09:30:53 EDT 2007
Author: andi5
Date: 2007-05-04 09:30:51 -0400 (Fri, 04 May 2007)
New Revision: 16043
Trac: http://svn.gnucash.org/trac/changeset/16043
Modified:
gnucash/trunk/src/import-export/import-account-matcher.c
Log:
Save column selection in import account matcher to GConf.
Modified: gnucash/trunk/src/import-export/import-account-matcher.c
===================================================================
--- gnucash/trunk/src/import-export/import-account-matcher.c 2007-05-03 03:56:31 UTC (rev 16042)
+++ gnucash/trunk/src/import-export/import-account-matcher.c 2007-05-04 13:30:51 UTC (rev 16043)
@@ -41,6 +41,8 @@
static QofLogModule log_module = GNC_MOD_IMPORT;
+#define GCONF_SECTION "dialogs/import/generic_matcher/account_matcher"
+
/*-******************************************************************\
* Structs *
\********************************************************************/
@@ -80,15 +82,15 @@
_("Account ID"), "online_id");
g_object_set_data(G_OBJECT(col), DEFAULT_VISIBLE, GINT_TO_POINTER(1));
- col = gnc_tree_view_find_column_by_name(
- GNC_TREE_VIEW(picker->account_tree), "type");
- g_object_set_data(G_OBJECT(col), DEFAULT_VISIBLE, GINT_TO_POINTER(1));
-
gtk_container_add(GTK_CONTAINER(picker->account_tree_sw),
GTK_WIDGET(picker->account_tree));
/* Configure the columns */
gnc_tree_view_configure_columns (GNC_TREE_VIEW(picker->account_tree));
+ g_object_set(account_tree,
+ "gconf-section", GCONF_SECTION,
+ "show-column-menu", TRUE,
+ (gchar*) NULL);
}
/* When user clicks to create a new account */
More information about the gnucash-changes
mailing list