mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
a48bcf2acd
commit
b77990b623
@ -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)
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user