AUDIT: r20760 - gnucash/trunk/src/gnome-utils - Bug #612562 - Transfer Funds dialog - 'Show Income/Expense' checkboxes

Geert Janssens gjanssens at code.gnucash.org
Wed Jun 15 12:30:53 EDT 2011


Author: gjanssens
Date: 2011-06-15 12:30:52 -0400 (Wed, 15 Jun 2011)
New Revision: 20760
Trac: http://svn.gnucash.org/trac/changeset/20760

Modified:
   gnucash/trunk/src/gnome-utils/dialog-transfer.c
Log:
Bug #612562 - Transfer Funds dialog - 'Show Income/Expense' checkboxes
are not working
BP

Modified: gnucash/trunk/src/gnome-utils/dialog-transfer.c
===================================================================
--- gnucash/trunk/src/gnome-utils/dialog-transfer.c	2011-06-15 06:58:57 UTC (rev 20759)
+++ gnucash/trunk/src/gnome-utils/dialog-transfer.c	2011-06-15 16:30:52 UTC (rev 20760)
@@ -160,6 +160,8 @@
         XferDirection direction);
 void gnc_xfer_dialog_response_cb (GtkDialog *dialog, gint response, gpointer data);
 void gnc_xfer_dialog_close_cb(GtkDialog *dialog, gpointer data);
+static gboolean gnc_xfer_dialog_show_inc_exp_visible_cb (Account *account,
+        gpointer data);
 
 /** Implementations **********************************************/
 
@@ -229,7 +231,15 @@
 static void
 gnc_xfer_dialog_toggle_cb(GtkToggleButton *button, gpointer data)
 {
-    gnc_tree_view_account_refilter (GNC_TREE_VIEW_ACCOUNT (data));
+    AccountTreeFilterInfo info;
+
+    info.show_inc_exp = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(button));
+    info.show_hidden = FALSE;
+
+    gnc_tree_view_account_set_filter (GNC_TREE_VIEW_ACCOUNT (data),
+                                      gnc_xfer_dialog_show_inc_exp_visible_cb,
+                                      &info,  /* user data */
+                                      NULL    /* destroy callback */);
 }
 
 static gboolean



More information about the gnucash-changes mailing list