mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Wait for pending events before displaying the tree view (#463678)
BP git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16727 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
3759d41f96
commit
8dfc49dc84
@ -1119,6 +1119,11 @@ gnc_tree_view_account_set_selected_account (GncTreeViewAccount *view,
|
||||
gtk_tree_path_free(parent_path);
|
||||
|
||||
gtk_tree_selection_select_path (selection, s_path);
|
||||
|
||||
/* give gtk+ a chance to resize the tree view first by handling pending
|
||||
* configure events */
|
||||
while (gtk_events_pending ())
|
||||
gtk_main_iteration ();
|
||||
gtk_tree_view_scroll_to_cell (GTK_TREE_VIEW(view), s_path, NULL, FALSE, 0.0, 0.0);
|
||||
debug_path(LEAVE, s_path);
|
||||
gtk_tree_path_free(s_path);
|
||||
|
Loading…
Reference in New Issue
Block a user