mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Bug 106746 - Selecting New account in Loan Assistant
Set the modal property on the GNCAccountSel widgets, that way the new account will selected.
This commit is contained in:
parent
d518500a30
commit
c2f9c5bfb1
@ -637,6 +637,7 @@ gnc_loan_assistant_create( LoanAssistantData *ldd )
|
|||||||
|
|
||||||
gtk_widget_set_halign (GTK_WIDGET(gas), GTK_ALIGN_FILL);
|
gtk_widget_set_halign (GTK_WIDGET(gas), GTK_ALIGN_FILL);
|
||||||
gnc_account_sel_set_hexpand (GNC_ACCOUNT_SEL(gas), true);
|
gnc_account_sel_set_hexpand (GNC_ACCOUNT_SEL(gas), true);
|
||||||
|
gnc_account_sel_set_new_account_modal (GNC_ACCOUNT_SEL(gas), true);
|
||||||
g_object_set (GTK_WIDGET(gas), "margin", 2, nullptr);
|
g_object_set (GTK_WIDGET(gas), "margin", 2, nullptr);
|
||||||
*(gas_data[i].loc) = gas;
|
*(gas_data[i].loc) = gas;
|
||||||
}
|
}
|
||||||
@ -730,6 +731,7 @@ gnc_loan_assistant_create( LoanAssistantData *ldd )
|
|||||||
gtk_widget_set_sensitive( GTK_WIDGET(ldd->optEscrowHBox), FALSE );
|
gtk_widget_set_sensitive( GTK_WIDGET(ldd->optEscrowHBox), FALSE );
|
||||||
ldd->optEscrowGAS = GNC_ACCOUNT_SEL(gnc_account_sel_new());
|
ldd->optEscrowGAS = GNC_ACCOUNT_SEL(gnc_account_sel_new());
|
||||||
gnc_account_sel_set_hexpand (GNC_ACCOUNT_SEL(ldd->optEscrowGAS), true);
|
gnc_account_sel_set_hexpand (GNC_ACCOUNT_SEL(ldd->optEscrowGAS), true);
|
||||||
|
gnc_account_sel_set_new_account_modal (GNC_ACCOUNT_SEL(ldd->optEscrowGAS), true);
|
||||||
gnc_account_sel_set_new_account_ability( ldd->optEscrowGAS, TRUE );
|
gnc_account_sel_set_new_account_ability( ldd->optEscrowGAS, TRUE );
|
||||||
gtk_container_add( GTK_CONTAINER(ldd->optEscrowHBox),
|
gtk_container_add( GTK_CONTAINER(ldd->optEscrowHBox),
|
||||||
GTK_WIDGET(ldd->optEscrowGAS) );
|
GTK_WIDGET(ldd->optEscrowGAS) );
|
||||||
|
Loading…
Reference in New Issue
Block a user