mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-22 17:06:36 -06:00
Add a finish button.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@2346 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
8eff9ddb23
commit
6e6332c35f
@ -47,6 +47,7 @@
|
||||
#include "query-user.h"
|
||||
#include "window-help.h"
|
||||
#include "enriched-messages.h"
|
||||
#include "guile-util.h"
|
||||
#include "AccWindow.h"
|
||||
#include "AdjBWindow.h"
|
||||
#include "Scrub.h"
|
||||
@ -455,17 +456,34 @@ gnc_reconcile_window_create_list_frame(Account *account,
|
||||
GtkWidget **total_save)
|
||||
{
|
||||
GtkWidget *frame, *scrollWin, *list, *vbox, *label, *hbox;
|
||||
gboolean formal;
|
||||
gchar * title;
|
||||
|
||||
if (type == RECLIST_DEBIT)
|
||||
title = DEBITS_STR;
|
||||
else
|
||||
title = CREDITS_STR;
|
||||
formal = gnc_lookup_boolean_option("General",
|
||||
"Use accounting labels", GNC_F);
|
||||
|
||||
vbox = gtk_vbox_new(FALSE, 5);
|
||||
if (type == RECLIST_DEBIT)
|
||||
{
|
||||
if (formal)
|
||||
title = DEBITS_STR;
|
||||
else
|
||||
title = gnc_get_debit_string(NO_TYPE);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (formal)
|
||||
title = CREDITS_STR;
|
||||
else
|
||||
title = gnc_get_credit_string(NO_TYPE);
|
||||
}
|
||||
|
||||
frame = gtk_frame_new(title);
|
||||
|
||||
if (!formal)
|
||||
free(title);
|
||||
|
||||
vbox = gtk_vbox_new(FALSE, 5);
|
||||
|
||||
list = gnc_reconcile_list_new(account, type);
|
||||
*list_save = list;
|
||||
|
||||
@ -961,6 +979,14 @@ gnc_recn_create_tool_bar(RecnWindow *recnData)
|
||||
GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_PIXMAP_JUMP_TO,
|
||||
0, 0, NULL
|
||||
},
|
||||
GNOMEUIINFO_SEPARATOR,
|
||||
{
|
||||
GNOME_APP_UI_ITEM,
|
||||
FINISH_STR, TOOLTIP_RECN_FINISH_N,
|
||||
recnFinishCB, NULL, NULL,
|
||||
GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_PIXMAP_DOWN,
|
||||
0, 0, NULL
|
||||
},
|
||||
GNOMEUIINFO_END
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user