AUDIT: r16727 - gnucash/trunk/src/gnome-utils - Wait for pending events before displaying the tree view (#463678)

Derek Atkins warlord at cvs.gnucash.org
Tue Dec 25 21:39:29 EST 2007


Author: warlord
Date: 2007-12-25 21:39:29 -0500 (Tue, 25 Dec 2007)
New Revision: 16727
Trac: http://svn.gnucash.org/trac/changeset/16727

Modified:
   gnucash/trunk/src/gnome-utils/gnc-tree-view-account.c
Log:
Wait for pending events before displaying the tree view (#463678)
BP

Modified: gnucash/trunk/src/gnome-utils/gnc-tree-view-account.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-tree-view-account.c	2007-12-26 02:26:39 UTC (rev 16726)
+++ gnucash/trunk/src/gnome-utils/gnc-tree-view-account.c	2007-12-26 02:39:29 UTC (rev 16727)
@@ -1119,6 +1119,11 @@
   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);



More information about the gnucash-changes mailing list