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