Given a pointer to an account, the account tree will open and the account will be selected (if any).
462 const GList *page_list;
473 for ( ; page_list; page_list = g_list_next(page_list))
475 plugin_page = GNC_PLUGIN_PAGE(page_list->data);
476 if (GTK_WINDOW(plugin_page->
window) == win)
481 plugin_page = GNC_PLUGIN_PAGE(page_list->data);
486 g_return_if_fail(plugin_page);
487 window = plugin_page->
window;
491 page = GNC_PLUGIN_PAGE_ACCOUNT_TREE (plugin_page);
492 priv = GNC_PLUGIN_PAGE_ACCOUNT_TREE_GET_PRIVATE(page);
496 Account *root_account = gnc_get_current_root_account ();
497 Account *parent_account = NULL;
498 Account *temp_account = account;
500 g_hash_table_insert (priv->fd.filter_override, account, account);
503 while (parent_account != root_account)
507 g_hash_table_insert (priv->fd.filter_override, parent_account, parent_account);
508 temp_account = parent_account;
Account * gnc_account_get_parent(const Account *acc)
This routine returns a pointer to the parent of the specified account.
The instance data structure for a content plugin.
const GList * gnc_gobject_tracking_get_list(const gchar *name)
Get a list of all known objects of a specified type.
GncPluginPage * gnc_plugin_page_account_tree_new(void)
Create a new "account tree" plugin page.
GtkWidget * window
The window that contains the display widget for this plugin.
void gnc_main_window_open_page(GncMainWindow *window, GncPluginPage *page)
Display a data plugin page in a window.
void gnc_tree_view_account_refilter(GncTreeViewAccount *view)
This function forces the account tree filter to be evaluated.
void gnc_tree_view_account_set_selected_account(GncTreeViewAccount *view, Account *account)
This function selects an account in the account tree view.
gint gnc_list_length_cmp(const GList *list, size_t len)
Scans the GList elements the minimum number of iterations required to test it against a specified siz...