From a14a1c353ca8ed17acce6fb34ca7c652677dae45 Mon Sep 17 00:00:00 2001 From: Dave Peticolas Date: Wed, 14 Jun 2000 08:37:04 +0000 Subject: [PATCH] bug fixes git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@2471 57a11ea4-9604-0410-9ed3-97b8803252fd --- ChangeLog | 7 +++++++ src/register/gnome/gnucash-item-edit.c | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8846656c7a..6059fb047e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2000-06-14 Dave Peticolas + + * src/register/gnome/gnucash-item-edit.c (item_edit_show_list): + make sure the current selected item is visible and, before doing + so, process all pending events to make sure the list is shown and + sized first. + 2000-06-13 Dave Peticolas * src/SplitLedger.c: refresh the main window before refreshing the diff --git a/src/register/gnome/gnucash-item-edit.c b/src/register/gnome/gnucash-item-edit.c index 1324de149a..c832fcb271 100644 --- a/src/register/gnome/gnucash-item-edit.c +++ b/src/register/gnome/gnucash-item-edit.c @@ -1085,6 +1085,10 @@ item_edit_show_list (ItemEdit *item_edit) gtk_widget_grab_focus(GTK_WIDGET(item_edit->item_list->clist)); + /* Make sure the list gets shown/sized correctly */ + while (gtk_events_pending()) + gtk_main_iteration(); + gnc_item_list_show_selected(item_edit->item_list); }