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:
Christian Stimming 2012-02-19 11:00:37 +00:00
parent a350d5206a
commit 79e82ef1de

View File

@ -308,11 +308,10 @@ gnc_ab_trans_dialog_new(GtkWidget *parent, AB_ACCOUNT *ab_acc,
TRUE); TRUE);
gnc_amount_edit_set_fraction(GNC_AMOUNT_EDIT(td->amount_edit), gnc_amount_edit_set_fraction(GNC_AMOUNT_EDIT(td->amount_edit),
commodity_scu); commodity_scu);
#if 0
// This doesn't yet work /* 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)), "changed", 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); G_CALLBACK(gnc_ab_trans_dialog_verify_values), td);
#endif
/* Check for what kind of transaction this should be, and change the /* Check for what kind of transaction this should be, and change the
* labels accordingly */ * labels accordingly */