From 17df37ff51b68cad4cdee702ce9b781658a169fc Mon Sep 17 00:00:00 2001 From: Linas Vepstas Date: Sun, 9 Aug 1998 04:47:53 +0000 Subject: [PATCH] misc cleanup git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@967 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/gnome/MainWindow.c | 1 + src/gnome/RegWindow.c | 3 --- src/gnome/main.c | 20 +------------------- src/gnome/main.h | 1 + 4 files changed, 3 insertions(+), 22 deletions(-) diff --git a/src/gnome/MainWindow.c b/src/gnome/MainWindow.c index fc5c84a92c..2e9dc5dff4 100644 --- a/src/gnome/MainWindow.c +++ b/src/gnome/MainWindow.c @@ -23,6 +23,7 @@ #include "MainWindow.h" #include "MenuBar.h" #include "Add_Dialog.h" +#include "main.h" #include "messages.h" #include "version.h" #include "RegWindow.h" diff --git a/src/gnome/RegWindow.c b/src/gnome/RegWindow.c index 26baf01ee6..8daa0aa0ab 100644 --- a/src/gnome/RegWindow.c +++ b/src/gnome/RegWindow.c @@ -567,7 +567,6 @@ regWindowLedger(Account *lead_acc, Account **acclist, int ledger_type) /* The CreateTable will do the actual gui init, * returning a widget */ - //reg = xaccCreateTable (regData->ledger->table, frame, accRes[ledger_type]); reg = xaccCreateTable (regData->ledger->table, regData->dialog); regData->reg = reg; @@ -800,8 +799,6 @@ void regRefresh (RegWindow *regData) * new splits and get them into the system. */ - /* hack alert -- should be recomputing the list of splits */ -/* ???? */ xaccBRLoadRegister (regData->ledger, xaccAccountGetSplitList (regData->leader), regData->leader); diff --git a/src/gnome/main.c b/src/gnome/main.c index 055c18171e..4f8711e508 100644 --- a/src/gnome/main.c +++ b/src/gnome/main.c @@ -42,6 +42,7 @@ /** GLOBALS *********************************************************/ +AccountGroup *topgroup = 0x0; char *helpPath = NULL; GtkWidget *toplevel; GtkWidget *filebox; @@ -51,25 +52,6 @@ char *datafile = NULL; GtkWidget *app; -/* The names of the different types of accounts. For resource - * specification. Must match the enums in Account.h */ - -gchar *accRes[] ={ - "bank", - "cash", - "asset", - "credit", - "liability", - "stock", - "mutual", - "income", - "expense", - "equity", - "checking", - "savings", - "creditline", -}; - void file_ok_sel (GtkWidget *w, GtkFileSelection *fs) { diff --git a/src/gnome/main.h b/src/gnome/main.h index 77fa1b627c..4d19b6513d 100644 --- a/src/gnome/main.h +++ b/src/gnome/main.h @@ -61,6 +61,7 @@ void prepare_app ( void ); /** GLOBALS *********************************************************/ extern char *helpPath; extern GtkWidget *app; +extern AccountGroup *topgroup; #endif