Patch to fix scrolling problem in memo selector

Derek Atkins warlord@MIT.EDU
17 Feb 2001 16:15:41 -0500

I tracked down the problem with the payee/memo account
selector scrolling to the top.  It was just a simple typo
when the particular function was cut-and-pasted.  Indeed,
there is a lot of duplicated code in druid-qif-import.c!

I was actually thinking of going in and parametrizing the code,
so that all the various callbacks just setup the parameters
and then called the common code to do the work.  Bill, do you
object to me doing that?

Anyways, here is the simple patch to fix the payee/memo scroll



--- src/gnome/druid-qif-import.c~       Fri Feb 16 20:13:22 2001
+++ src/gnome/druid-qif-import.c        Sat Feb 17 16:09:11 2001
@@ -1071,7 +1071,7 @@
   int  row;
   /* get the old selection row */
-  sel_row = (GTK_CLIST(wind->cat_list))->focus_row;
+  sel_row = (GTK_CLIST(wind->memo_list))->focus_row;
   /* now get the list of strings to display in the clist widget */
   memos_left = gh_call3(make_memo_display, 

       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL:    PP-ASEL-IA     N1NWH
       warlord@MIT.EDU                        PGP key available