From d14b02242c9b0a9962e743f12fd2fdca327c9ddd Mon Sep 17 00:00:00 2001 From: Geert Janssens Date: Thu, 16 Aug 2012 18:13:26 +0000 Subject: [PATCH] Follow up on bug #563565 Keep only one button in reconcile to create a new transaction. This button will automatically create a transaction that balances the currently ongoing reconciliation. The new button has been removed as it is just as easy to simply enter a transaction in the still open register. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22326 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/gnome/ui/gnc-reconcile-window-ui.xml | 8 +++----- src/gnome/window-reconcile.c | 20 +------------------- 2 files changed, 4 insertions(+), 24 deletions(-) diff --git a/src/gnome/ui/gnc-reconcile-window-ui.xml b/src/gnome/ui/gnc-reconcile-window-ui.xml index 5c9c721adf..126154eeb3 100644 --- a/src/gnome/ui/gnc-reconcile-window-ui.xml +++ b/src/gnome/ui/gnc-reconcile-window-ui.xml @@ -18,8 +18,7 @@ - - + @@ -32,7 +31,7 @@ - + @@ -40,8 +39,7 @@ - - + diff --git a/src/gnome/window-reconcile.c b/src/gnome/window-reconcile.c index e098d7635b..5b0d16e927 100644 --- a/src/gnome/window-reconcile.c +++ b/src/gnome/window-reconcile.c @@ -1195,19 +1195,6 @@ gnc_ui_reconcile_window_change_cb(GtkAction *action, gpointer data) } -static void -gnc_ui_reconcile_window_new_cb(GtkButton *button, gpointer data) -{ - RecnWindow *recnData = data; - GNCSplitReg *gsr; - - gsr = gnc_reconcile_window_open_register(recnData); - if (gsr == NULL) - return; - gnc_split_reg_jump_to_blank( gsr ); -} - - static void gnc_ui_reconcile_window_balance_cb(GtkButton *button, gpointer data) { @@ -2266,12 +2253,7 @@ static GtkActionEntry recnWindow_actions [] = /* Transaction menu */ { - "TransNewAction", GTK_STOCK_NEW, N_("_New"), "n", - N_("Add a new transaction to the account"), - G_CALLBACK(gnc_ui_reconcile_window_new_cb) - }, - { - "TransBalanceAction", GTK_STOCK_EXECUTE, N_("_Balance"), "b", + "TransBalanceAction", GTK_STOCK_NEW, N_("_Balance"), "b", N_("Add a new balancing entry to the account"), G_CALLBACK(gnc_ui_reconcile_window_balance_cb) },