r14529 - gnucash/branches/register-rewrite/src/gnome - Temporary hack to enable the account tree to open treeview registers.
Chris Shoemaker
chris at cvs.gnucash.org
Sun Jul 16 20:25:12 EDT 2006
Author: chris
Date: 2006-07-16 20:25:11 -0400 (Sun, 16 Jul 2006)
New Revision: 14529
Trac: http://svn.gnucash.org/trac/changeset/14529
Modified:
gnucash/branches/register-rewrite/src/gnome/gnc-plugin-page-account-tree.c
Log:
Temporary hack to enable the account tree to open treeview registers.
Modified: gnucash/branches/register-rewrite/src/gnome/gnc-plugin-page-account-tree.c
===================================================================
--- gnucash/branches/register-rewrite/src/gnome/gnc-plugin-page-account-tree.c 2006-07-17 00:23:56 UTC (rev 14528)
+++ gnucash/branches/register-rewrite/src/gnome/gnc-plugin-page-account-tree.c 2006-07-17 00:25:11 UTC (rev 14529)
@@ -41,6 +41,7 @@
#endif
#include "gnc-plugin-page-account-tree.h"
#include "gnc-plugin-page-register.h"
+#include "gnc-plugin-page-transactions.h"
#include "Scrub.h"
#include "Scrub3.h"
@@ -594,7 +595,18 @@
priv = GNC_PLUGIN_PAGE_ACCOUNT_TREE_GET_PRIVATE(page);
window = GNC_PLUGIN_PAGE (page)->window;
+#if 0
new_page = gnc_plugin_page_register_new (account, include_subs);
+#else
+ {
+ GncTreeModelTransaction *model;
+ GncTreeViewTransaction *tv;
+ model = gnc_tree_model_transaction_new_from_account(account);
+ tv = gnc_tree_view_transaction_new_with_model(model);
+ g_object_unref(G_OBJECT(model));
+ new_page = gnc_plugin_page_transactions_new(tv);
+ }
+#endif
gnc_main_window_open_page (GNC_MAIN_WINDOW(window), new_page);
}
More information about the gnucash-changes
mailing list