From 69cc8fe2826f28ab74404ce0ac6a9f0cafd5971b Mon Sep 17 00:00:00 2001 From: Alex Aycinena Date: Sun, 27 Jan 2019 13:02:19 -0800 Subject: [PATCH] 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. --- gnucash/gnome/dialog-tax-info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnucash/gnome/dialog-tax-info.c b/gnucash/gnome/dialog-tax-info.c index 64b109a35e..7407012393 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);