diff --git a/src/gnome/gnc-plugin-page-account-tree.c b/src/gnome/gnc-plugin-page-account-tree.c index 0348a5bf8b..86414f76bc 100644 --- a/src/gnome/gnc-plugin-page-account-tree.c +++ b/src/gnome/gnc-plugin-page-account-tree.c @@ -83,17 +83,7 @@ typedef struct GncPluginPageAccountTreePrivate GtkWidget *widget; GtkTreeView *tree_view; gint component_id; - - struct { - GtkWidget *dialog; - GtkTreeModel *model; - guint32 visible_types; - guint32 original_visible_types; - gboolean hide_zero_total; - gboolean original_hide_zero_total; - gulong selection_changed_cb_id; - } fd; - + AccountFilterDialog fd; } GncPluginPageAccountTreePrivate; #define GNC_PLUGIN_PAGE_ACCOUNT_TREE_GET_PRIVATE(o) \ @@ -1297,7 +1287,7 @@ gnc_plugin_page_account_tree_cmd_delete_account (GtkAction *action, GncPluginPag /** This function tells the account tree view whether or not to filter * out a particular account. Accounts may be filtered if the user * has decided not to display that particular account type, or if the - * user has requested taht accoutns with a zero total not be shown. + * user has requested that accounts with a zero total not be shown. * * @param account The account that was toggled. * @@ -1496,6 +1486,7 @@ gppat_filter_response_cb (GtkWidget *dialog, LEAVE("types 0x%x", types); } + static void gnc_plugin_page_account_tree_cmd_view_filter_by (GtkAction *action, GncPluginPageAccountTree *page) diff --git a/src/gnome/gnc-plugin-page-account-tree.h b/src/gnome/gnc-plugin-page-account-tree.h index db5e06bd27..f511a0aff2 100644 --- a/src/gnome/gnc-plugin-page-account-tree.h +++ b/src/gnome/gnc-plugin-page-account-tree.h @@ -66,6 +66,17 @@ typedef struct { } GncPluginPageAccountTreeClass; +typedef struct { + GtkWidget *dialog; + GtkTreeModel *model; + GtkTreeView *tree_view; + guint32 visible_types; + guint32 original_visible_types; + gboolean hide_zero_total; + gboolean original_hide_zero_total; + gulong selection_changed_cb_id; +} AccountFilterDialog; + /* function prototypes */ /** Retrieve the type number for an "account tree" plugin page.