mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Toggle the sensitivity of date when using BothDateEntry
This commit is contained in:
parent
db6a8f809b
commit
c6dff82b12
@ -1319,6 +1319,11 @@ void
|
||||
BothDateEntry::toggle_relative(bool use_absolute)
|
||||
{
|
||||
m_use_absolute = use_absolute;
|
||||
|
||||
gtk_widget_set_sensitive(GTK_WIDGET(m_abs_entry->get_widget()),
|
||||
m_use_absolute);
|
||||
gtk_widget_set_sensitive(GTK_WIDGET(m_rel_entry->get_widget()),
|
||||
!m_use_absolute);
|
||||
}
|
||||
|
||||
void
|
||||
@ -1334,6 +1339,8 @@ BothDateEntry::set_entry_from_option(GncOption& option)
|
||||
!m_use_absolute);
|
||||
gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(m_abs_button),
|
||||
m_use_absolute);
|
||||
|
||||
toggle_relative(m_use_absolute);
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user