[Gnucash-changes] r13085 - gnucash/trunk - Change the default visibilities of the GncTreeViewAccount widget to

David Hampton hampton at cvs.gnucash.org
Thu Feb 2 23:38:02 EST 2006


Author: hampton
Date: 2006-02-02 23:38:01 -0500 (Thu, 02 Feb 2006)
New Revision: 13085
Trac: http://svn.gnucash.org/trac/changeset/13085

Modified:
   gnucash/trunk/ChangeLog
   gnucash/trunk/src/business/dialog-tax-table/dialog-tax-table.c
   gnucash/trunk/src/gnome-utils/dialog-account.c
   gnucash/trunk/src/gnome-utils/gnc-tree-view-account.c
   gnucash/trunk/src/gnome/dialog-tax-info.c
   gnucash/trunk/src/gnome/druid-hierarchy.c
   gnucash/trunk/src/gnome/druid-stock-split.c
   gnucash/trunk/src/gnome/gnc-plugin-page-account-tree.c
Log:
Change the default visibilities of the GncTreeViewAccount widget to
only show the account name column.  This is the most commonly used
case for this widget.


Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog	2006-02-03 02:09:29 UTC (rev 13084)
+++ gnucash/trunk/ChangeLog	2006-02-03 04:38:01 UTC (rev 13085)
@@ -1,3 +1,15 @@
+2006-02-02  David Hampton  <hampton at employees.org>
+
+	* src/business/dialog-tax-table/dialog-tax-table.c:
+	* src/gnome-utils/gnc-tree-view-account.c:
+	* src/gnome-utils/dialog-account.c:
+	* src/gnome/gnc-plugin-page-account-tree.c:
+	* src/gnome/druid-stock-split.c:
+	* src/gnome/dialog-tax-info.c:
+	* src/gnome/druid-hierarchy.c: Change the default visibilities of
+	the GncTreeViewAccount widget to only show the account name
+	column.  This is the most commonly used case for this widget.
+
 2006-02-02  Joshua Sled  <jsled at asynchronous.org>
 
 	* lib/libqof/qof/qofsession.c (qof_session_load_backend): get+load

Modified: gnucash/trunk/src/business/dialog-tax-table/dialog-tax-table.c
===================================================================
--- gnucash/trunk/src/business/dialog-tax-table/dialog-tax-table.c	2006-02-03 02:09:29 UTC (rev 13084)
+++ gnucash/trunk/src/business/dialog-tax-table/dialog-tax-table.c	2006-02-03 04:38:01 UTC (rev 13085)
@@ -259,7 +259,6 @@
   ntt->acct_tree = GTK_WIDGET(gnc_tree_view_account_new (FALSE));
   gtk_container_add (GTK_CONTAINER (box), ntt->acct_tree);
   gtk_tree_view_set_headers_visible (GTK_TREE_VIEW(ntt->acct_tree), FALSE);
-  gnc_tree_view_configure_columns (GNC_TREE_VIEW(ntt->acct_tree), NULL);
 
   /* Make 'enter' do the right thing */
   gtk_entry_set_activates_default(GTK_ENTRY (gnc_amount_edit_gtk_entry

Modified: gnucash/trunk/src/gnome/dialog-tax-info.c
===================================================================
--- gnucash/trunk/src/gnome/dialog-tax-info.c	2006-02-03 02:09:29 UTC (rev 13084)
+++ gnucash/trunk/src/gnome/dialog-tax-info.c	2006-02-03 04:38:01 UTC (rev 13085)
@@ -752,7 +752,6 @@
 
     box = glade_xml_get_widget (xml, "account_hbox");
     tree_view = gnc_tree_view_account_new (FALSE);
-    gnc_tree_view_configure_columns (GNC_TREE_VIEW(tree_view), NULL);
     gnc_tree_view_account_set_filter (GNC_TREE_VIEW_ACCOUNT(tree_view), 
 				      gnc_tax_info_dialog_account_filter_func,
 				      ti_dialog, NULL);

Modified: gnucash/trunk/src/gnome/druid-hierarchy.c
===================================================================
--- gnucash/trunk/src/gnome/druid-hierarchy.c	2006-02-03 02:09:29 UTC (rev 13084)
+++ gnucash/trunk/src/gnome/druid-hierarchy.c	2006-02-03 04:38:01 UTC (rev 13085)
@@ -384,7 +384,6 @@
 		gtk_text_buffer_set_text(buffer, gea->long_description, -1);
 
 		tree_view = gnc_tree_view_account_new_with_group (gea->group, FALSE);
-		gnc_tree_view_configure_columns (GNC_TREE_VIEW(tree_view), NULL);
 		/* Override the normal fixed (user settable) sizing */
 		column = gtk_tree_view_get_column(GTK_TREE_VIEW(tree_view), 0);
 		gtk_tree_view_column_set_sizing(column, GTK_TREE_VIEW_COLUMN_AUTOSIZE);

Modified: gnucash/trunk/src/gnome/druid-stock-split.c
===================================================================
--- gnucash/trunk/src/gnome/druid-stock-split.c	2006-02-03 02:09:29 UTC (rev 13084)
+++ gnucash/trunk/src/gnome/druid-stock-split.c	2006-02-03 04:38:01 UTC (rev 13085)
@@ -659,7 +659,6 @@
 
     /* income tree */
     tree = GTK_WIDGET(gnc_tree_view_account_new (FALSE));
-    gnc_tree_view_configure_columns(GNC_TREE_VIEW(tree), NULL);
     info->income_tree = tree;
     gnc_tree_view_account_set_filter (GNC_TREE_VIEW_ACCOUNT (tree),
 				      gnc_stock_split_druid_view_filter_income,
@@ -677,7 +676,6 @@
 
     /* asset tree */
     tree = GTK_WIDGET(gnc_tree_view_account_new (FALSE));
-    gnc_tree_view_configure_columns(GNC_TREE_VIEW(tree), NULL);
     info->asset_tree = tree;
     gnc_tree_view_account_set_filter (GNC_TREE_VIEW_ACCOUNT (tree),
 				      gnc_stock_split_druid_view_filter_asset,

Modified: gnucash/trunk/src/gnome/gnc-plugin-page-account-tree.c
===================================================================
--- gnucash/trunk/src/gnome/gnc-plugin-page-account-tree.c	2006-02-03 02:09:29 UTC (rev 13084)
+++ gnucash/trunk/src/gnome/gnc-plugin-page-account-tree.c	2006-02-03 04:38:01 UTC (rev 13085)
@@ -417,6 +417,8 @@
 			    TRUE, TRUE, 0);
 
 	tree_view = gnc_tree_view_account_new(FALSE);
+	gnc_tree_view_configure_columns(GNC_TREE_VIEW(tree_view),
+					"description", "total", NULL);
 	g_object_set(G_OBJECT(tree_view),
 		     "gconf-section", GCONF_SECTION,
 		     "show-column-menu", TRUE,

Modified: gnucash/trunk/src/gnome-utils/dialog-account.c
===================================================================
--- gnucash/trunk/src/gnome-utils/dialog-account.c	2006-02-03 02:09:29 UTC (rev 13084)
+++ gnucash/trunk/src/gnome-utils/dialog-account.c	2006-02-03 04:38:01 UTC (rev 13085)
@@ -1339,7 +1339,6 @@
   //  group = gnc_book_get_group (gnc_get_current_book ());
   aw->parent_tree = gnc_tree_view_account_new(TRUE);
   gtk_container_add(GTK_CONTAINER(box), GTK_WIDGET(aw->parent_tree));
-  gnc_tree_view_configure_columns (GNC_TREE_VIEW(aw->parent_tree), NULL);
   gtk_widget_show(GTK_WIDGET(aw->parent_tree));
   aw->top_level_account =
     gnc_tree_view_account_get_top_level (GNC_TREE_VIEW_ACCOUNT(aw->parent_tree));

Modified: gnucash/trunk/src/gnome-utils/gnc-tree-view-account.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-tree-view-account.c	2006-02-03 02:09:29 UTC (rev 13084)
+++ gnucash/trunk/src/gnome-utils/gnc-tree-view-account.c	2006-02-03 04:38:01 UTC (rev 13085)
@@ -512,7 +512,8 @@
 				  sort_by_placeholder,
 				  gnc_tree_view_account_placeholder_toggled);
 
-  gnc_tree_view_configure_columns(view, "description", "total", NULL);
+  /* By default only the first column is visible. */
+  gnc_tree_view_configure_columns(view, NULL);
   gtk_tree_model_filter_set_visible_func (GTK_TREE_MODEL_FILTER (f_model),
 					  gnc_tree_view_account_filter_helper,
 					  view,



More information about the gnucash-changes mailing list