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.

pull/456/head
Alex Aycinena 7 years ago
parent 307eb99057
commit 69cc8fe282

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

Loading…
Cancel
Save