diff --git a/src/MainWindow.c b/src/MainWindow.c index 92088ced5d..a9c5cf67ad 100644 --- a/src/MainWindow.c +++ b/src/MainWindow.c @@ -300,6 +300,7 @@ expandListCB( Widget mw, XtPointer pClientData, XtPointer cb) { XmAnyCallbackStruct *info = (XmAnyCallbackStruct *) cb; Account *acc = (Account *)pClientData; + int i, nrows; /* a "fix" to avoid double invocation */ switch ( info->reason ) { @@ -330,8 +331,28 @@ expandListCB( Widget mw, XtPointer pClientData, XtPointer cb) NULL); } - /* finally, redraw the main window */ + /* redraw the main window */ refreshMainWindow (); + + /* find the selected account in the new window, + * and scroll to it. */ + XtVaGetValues( accountlist, XmNrows, &nrows, NULL ); + + for (i=0; i