diff --git a/src/gnome/MainWindow.c b/src/gnome/MainWindow.c index bcda1de1de0..d4e27f39e92 100644 --- a/src/gnome/MainWindow.c +++ b/src/gnome/MainWindow.c @@ -46,16 +46,18 @@ static void cram_accts_into_clist(GtkCList *list, AccountGroup *accts) { int count = xaccGetNumAccounts(accts); int i; - GtkWidget *item; for(i=0; iaccountName, - acc->description, - acc->notes }; + gchar *rowstrs[3]; + gint new_row; - gint new_row = gtk_clist_append(GTK_CLIST(list), rowstrs); + rowstrs[0] = xaccAccountGetName (acc); + rowstrs[1] = xaccAccountGetDescription (acc); + rowstrs[2] = xaccAccountGetNotes (acc); + + new_row = gtk_clist_append(GTK_CLIST(list), rowstrs); /* Set the row to point to the actual account so we can reach it trivially when the user selects the row. (Should we use @@ -73,14 +75,12 @@ main_window_init(AccountGroup *accts) GtkTooltips *tooltip; - GtkWidget *label; GtkWidget *main_vbox; GtkWidget *button_bar; GtkWidget *menubar; GtkWidget *clist; - GtkWidget *list_item; GtkAcceleratorTable *accel; diff --git a/src/gnome/main.c b/src/gnome/main.c index af8a74aa846..b4fb0c73611 100644 --- a/src/gnome/main.c +++ b/src/gnome/main.c @@ -73,7 +73,6 @@ void file_ok_sel (GtkWidget *w, GtkFileSelection *fs) { /* load the accounts data from datafile*/ topgroup = xaccMallocAccountGroup(); - topgroup->new = TRUE; } main_window_init(topgroup); @@ -150,7 +149,6 @@ main( int argc, char *argv[] ) gtk_widget_show ( dialog ); topgroup = xaccMallocAccountGroup(); - topgroup->new = TRUE; } } /* Create main window */