Skip to content

Commit

Permalink
implement data hiding
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@681 57a11ea4-9604-0410-9ed3-97b8803252fd
  • Loading branch information
linas committed Mar 20, 1998
1 parent a621175 commit da1955e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
16 changes: 8 additions & 8 deletions src/gnome/MainWindow.c
Expand Up @@ -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; i<count; i++) {
Account *acc = getAccount(accts, i);
Account *acc = xaccGroupGetAccount(accts, i);

gchar *rowstrs[] = { acc->accountName,
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
Expand All @@ -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;

Expand Down
2 changes: 0 additions & 2 deletions src/gnome/main.c
Expand Up @@ -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);
Expand Down Expand Up @@ -150,7 +149,6 @@ main( int argc, char *argv[] )
gtk_widget_show ( dialog );

topgroup = xaccMallocAccountGroup();
topgroup->new = TRUE;
}
}
/* Create main window */
Expand Down

0 comments on commit da1955e

Please sign in to comment.