mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Register: Add a few more debugging lines to the gnome code.
BP git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17838 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
74e3640504
commit
d9ef69a973
@ -2493,6 +2493,7 @@ gnc_plugin_page_register_cmd_blank_transaction (GtkAction *action,
|
|||||||
gnc_split_register_redraw (reg);
|
gnc_split_register_redraw (reg);
|
||||||
|
|
||||||
gnc_split_reg_jump_to_blank (priv->gsr);
|
gnc_split_reg_jump_to_blank (priv->gsr);
|
||||||
|
LEAVE(" ");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -56,6 +56,7 @@
|
|||||||
#include "dialog-utils.h"
|
#include "dialog-utils.h"
|
||||||
|
|
||||||
// static QofLogModule log_module = GNC_MOD_SX;
|
// static QofLogModule log_module = GNC_MOD_SX;
|
||||||
|
static QofLogModule log_module = GNC_MOD_GUI;
|
||||||
|
|
||||||
/***** PROTOTYPES ***************************************************/
|
/***** PROTOTYPES ***************************************************/
|
||||||
void gnc_split_reg_raise( GNCSplitReg *gsr );
|
void gnc_split_reg_raise( GNCSplitReg *gsr );
|
||||||
@ -1410,12 +1411,15 @@ gsr_default_blank_handler( GNCSplitReg *gsr, gpointer data )
|
|||||||
{
|
{
|
||||||
SplitRegister *reg;
|
SplitRegister *reg;
|
||||||
|
|
||||||
|
ENTER("gsr=%p, gpointer=%p", gsr, data);
|
||||||
|
|
||||||
reg = gnc_ledger_display_get_split_register (gsr->ledger);
|
reg = gnc_ledger_display_get_split_register (gsr->ledger);
|
||||||
|
|
||||||
if (gnc_split_register_save (reg, TRUE))
|
if (gnc_split_register_save (reg, TRUE))
|
||||||
gnc_split_register_redraw (reg);
|
gnc_split_register_redraw (reg);
|
||||||
|
|
||||||
gnc_split_reg_jump_to_blank (gsr);
|
gnc_split_reg_jump_to_blank (gsr);
|
||||||
|
LEAVE(" ");
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@ -1658,17 +1662,23 @@ gnc_split_reg_record (GNCSplitReg *gsr)
|
|||||||
SplitRegister *reg;
|
SplitRegister *reg;
|
||||||
Transaction *trans;
|
Transaction *trans;
|
||||||
|
|
||||||
|
ENTER("gsr=%p", gsr);
|
||||||
|
|
||||||
reg = gnc_ledger_display_get_split_register (gsr->ledger);
|
reg = gnc_ledger_display_get_split_register (gsr->ledger);
|
||||||
trans = gnc_split_register_get_current_trans (reg);
|
trans = gnc_split_register_get_current_trans (reg);
|
||||||
|
|
||||||
if (!gnc_split_register_save (reg, TRUE))
|
if (!gnc_split_register_save (reg, TRUE))
|
||||||
|
{
|
||||||
|
LEAVE("no save");
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
gsr_emit_include_date_signal( gsr, xaccTransGetDate(trans) );
|
gsr_emit_include_date_signal( gsr, xaccTransGetDate(trans) );
|
||||||
|
|
||||||
/* Explicit redraw shouldn't be needed,
|
/* Explicit redraw shouldn't be needed,
|
||||||
* since gui_refresh events should handle this. */
|
* since gui_refresh events should handle this. */
|
||||||
/* gnc_split_register_redraw (reg); */
|
/* gnc_split_register_redraw (reg); */
|
||||||
|
LEAVE(" ");
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
Loading…
Reference in New Issue
Block a user