Bug 798960 - Transaction completion horizontal scrolling

When a description popup has long text a horizontal scroll bar will be
used. If a subsequent popup has short text which does not need a scroll
bar, the previous one is still visible so queue a tree view column
resize to reevaluate the need for a scroll bar.
This commit is contained in:
Robert Fewell 2023-06-19 09:51:58 +01:00
parent 59ec7e4613
commit 0449b73e96

View File

@ -565,6 +565,10 @@ select_first_entry_in_list (PopBox* box)
if (!gtk_tree_model_iter_next (model, &iter))
return;
// reset horizontal scrolling
gtk_tree_view_column_queue_resize (gtk_tree_view_get_column (
box->item_list->tree_view, TEXT_COL));
gtk_tree_model_get (model, &iter, TEXT_COL, &string, -1);
gnc_item_list_select (box->item_list, string);