gnucash maint: scroll txf view to put line for selected account in center of view; doesn't work for first selected account but does for all subsequent delections. Will fix in later commit when I figure out why.

J.Alex Aycinena alex.aycinena at code.gnucash.org
Sun Jan 27 16:10:27 EST 2019


Updated	 via  https://github.com/Gnucash/gnucash/commit/69cc8fe2 (commit)
	from  https://github.com/Gnucash/gnucash/commit/307eb990 (commit)



commit 69cc8fe2826f28ab74404ce0ac6a9f0cafd5971b
Author: Alex Aycinena <alex.aycinena at gmail.com>
Date:   Sun Jan 27 13:02:19 2019 -0800

    scroll txf view to put line for selected account in center of view; doesn't work for first selected account but does for all subsequent delections. Will fix in later commit when I figure out why.

diff --git a/gnucash/gnome/dialog-tax-info.c b/gnucash/gnome/dialog-tax-info.c
index 64b109a..7407012 100644
--- a/gnucash/gnome/dialog-tax-info.c
+++ b/gnucash/gnome/dialog-tax-info.c
@@ -640,7 +640,7 @@ account_to_gui (TaxInfoDialog *ti_dialog, Account *account)
     selection = gtk_tree_view_get_selection(view);
     path =  gtk_tree_path_new_from_indices(index, -1);
     gtk_tree_selection_select_path(selection, path);
-    gtk_tree_view_scroll_to_cell(view, path, NULL, FALSE, 0, 0);
+    gtk_tree_view_scroll_to_cell(view, path, NULL, TRUE, 0.5, 0);
     gtk_tree_path_free(path);
 
     str = xaccAccountGetTaxUSPayerNameSource (account);



Summary of changes:
 gnucash/gnome/dialog-tax-info.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



More information about the gnucash-changes mailing list