[Gnucash-changes] r12210 - gnucash/trunk/src/gnome - Generalize Account Filter By... (step 1)

Chris Shoemaker chris at cvs.gnucash.org
Fri Dec 30 18:28:54 EST 2005


Author: chris
Date: 2005-12-30 18:28:53 -0500 (Fri, 30 Dec 2005)
New Revision: 12210
Trac: http://svn.gnucash.org/trac/changeset/12210

Modified:
   gnucash/trunk/src/gnome/gnc-plugin-page-account-tree.c
   gnucash/trunk/src/gnome/gnc-plugin-page-account-tree.h
Log:
Generalize Account Filter By... (step 1)

Export AccountFilterDialog type




Modified: gnucash/trunk/src/gnome/gnc-plugin-page-account-tree.c
===================================================================
--- gnucash/trunk/src/gnome/gnc-plugin-page-account-tree.c	2005-12-30 16:27:23 UTC (rev 12209)
+++ gnucash/trunk/src/gnome/gnc-plugin-page-account-tree.c	2005-12-30 23:28:53 UTC (rev 12210)
@@ -83,17 +83,7 @@
 	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 @@
 /** 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 @@
   LEAVE("types 0x%x", types);
 }
 
+
 static void
 gnc_plugin_page_account_tree_cmd_view_filter_by (GtkAction *action,
 						 GncPluginPageAccountTree *page)

Modified: gnucash/trunk/src/gnome/gnc-plugin-page-account-tree.h
===================================================================
--- gnucash/trunk/src/gnome/gnc-plugin-page-account-tree.h	2005-12-30 16:27:23 UTC (rev 12209)
+++ gnucash/trunk/src/gnome/gnc-plugin-page-account-tree.h	2005-12-30 23:28:53 UTC (rev 12210)
@@ -66,6 +66,17 @@
 
 } 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.



More information about the gnucash-changes mailing list