mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -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 "query-user.h"
|
||||||
#include "window-help.h"
|
#include "window-help.h"
|
||||||
#include "enriched-messages.h"
|
#include "enriched-messages.h"
|
||||||
|
#include "guile-util.h"
|
||||||
#include "AccWindow.h"
|
#include "AccWindow.h"
|
||||||
#include "AdjBWindow.h"
|
#include "AdjBWindow.h"
|
||||||
#include "Scrub.h"
|
#include "Scrub.h"
|
||||||
@ -455,17 +456,34 @@ gnc_reconcile_window_create_list_frame(Account *account,
|
|||||||
GtkWidget **total_save)
|
GtkWidget **total_save)
|
||||||
{
|
{
|
||||||
GtkWidget *frame, *scrollWin, *list, *vbox, *label, *hbox;
|
GtkWidget *frame, *scrollWin, *list, *vbox, *label, *hbox;
|
||||||
|
gboolean formal;
|
||||||
gchar * title;
|
gchar * title;
|
||||||
|
|
||||||
|
formal = gnc_lookup_boolean_option("General",
|
||||||
|
"Use accounting labels", GNC_F);
|
||||||
|
|
||||||
if (type == RECLIST_DEBIT)
|
if (type == RECLIST_DEBIT)
|
||||||
|
{
|
||||||
|
if (formal)
|
||||||
title = DEBITS_STR;
|
title = DEBITS_STR;
|
||||||
else
|
else
|
||||||
|
title = gnc_get_debit_string(NO_TYPE);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (formal)
|
||||||
title = CREDITS_STR;
|
title = CREDITS_STR;
|
||||||
|
else
|
||||||
vbox = gtk_vbox_new(FALSE, 5);
|
title = gnc_get_credit_string(NO_TYPE);
|
||||||
|
}
|
||||||
|
|
||||||
frame = gtk_frame_new(title);
|
frame = gtk_frame_new(title);
|
||||||
|
|
||||||
|
if (!formal)
|
||||||
|
free(title);
|
||||||
|
|
||||||
|
vbox = gtk_vbox_new(FALSE, 5);
|
||||||
|
|
||||||
list = gnc_reconcile_list_new(account, type);
|
list = gnc_reconcile_list_new(account, type);
|
||||||
*list_save = list;
|
*list_save = list;
|
||||||
|
|
||||||
@ -961,6 +979,14 @@ gnc_recn_create_tool_bar(RecnWindow *recnData)
|
|||||||
GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_PIXMAP_JUMP_TO,
|
GNOME_APP_PIXMAP_STOCK, GNOME_STOCK_PIXMAP_JUMP_TO,
|
||||||
0, 0, NULL
|
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
|
GNOMEUIINFO_END
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user