Generalize Account Filter By... (step 1)

Export AccountFilterDialog type




git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@12210 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Chris Shoemaker 2005-12-30 23:28:53 +00:00
parent a48bcf2acd
commit b77990b623
2 changed files with 14 additions and 12 deletions

View File

@ -83,17 +83,7 @@ typedef struct GncPluginPageAccountTreePrivate
GtkWidget *widget; GtkWidget *widget;
GtkTreeView *tree_view; GtkTreeView *tree_view;
gint component_id; gint component_id;
AccountFilterDialog fd;
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;
} GncPluginPageAccountTreePrivate; } GncPluginPageAccountTreePrivate;
#define GNC_PLUGIN_PAGE_ACCOUNT_TREE_GET_PRIVATE(o) \ #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 /** This function tells the account tree view whether or not to filter
* out a particular account. Accounts may be filtered if the user * out a particular account. Accounts may be filtered if the user
* has decided not to display that particular account type, or if the * 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. * @param account The account that was toggled.
* *
@ -1496,6 +1486,7 @@ gppat_filter_response_cb (GtkWidget *dialog,
LEAVE("types 0x%x", types); LEAVE("types 0x%x", types);
} }
static void static void
gnc_plugin_page_account_tree_cmd_view_filter_by (GtkAction *action, gnc_plugin_page_account_tree_cmd_view_filter_by (GtkAction *action,
GncPluginPageAccountTree *page) GncPluginPageAccountTree *page)

View File

@ -66,6 +66,17 @@ typedef struct {
} GncPluginPageAccountTreeClass; } 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 */ /* function prototypes */
/** Retrieve the type number for an "account tree" plugin page. /** Retrieve the type number for an "account tree" plugin page.