mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Bug #668693: aqbanking: Use "focus-out-event" to track amount changes in transaction dialog
"amount-changed" is only emitted on KP_ENTER and thus doesn't help us while "changed" confuses the widget. Patch by Johannes Schmid. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22054 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
a350d5206a
commit
79e82ef1de
@ -308,11 +308,10 @@ gnc_ab_trans_dialog_new(GtkWidget *parent, AB_ACCOUNT *ab_acc,
|
||||
TRUE);
|
||||
gnc_amount_edit_set_fraction(GNC_AMOUNT_EDIT(td->amount_edit),
|
||||
commodity_scu);
|
||||
#if 0
|
||||
// This doesn't yet work
|
||||
g_signal_connect_swapped (gnc_amount_edit_gtk_entry(GNC_AMOUNT_EDIT(td->amount_edit)), "changed",
|
||||
|
||||
/* Use "focus-out" signal because "amount-changed" is only sent when ENTER is pressed */
|
||||
g_signal_connect_swapped (gnc_amount_edit_gtk_entry(GNC_AMOUNT_EDIT(td->amount_edit)), "focus-out-event",
|
||||
G_CALLBACK(gnc_ab_trans_dialog_verify_values), td);
|
||||
#endif
|
||||
|
||||
/* Check for what kind of transaction this should be, and change the
|
||||
* labels accordingly */
|
||||
|
Loading…
Reference in New Issue
Block a user