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.

This commit is contained in:
Alex Aycinena 2019-01-27 13:02:19 -08:00
parent 307eb99057
commit 69cc8fe282

View File

@ -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);