7317,7360: also use 'value-changed' signal
With gtk3 controls, the day/year changes aren't caught otherwise
This commit is contained in:
parent
041e154695
commit
d72fbdae48
@ -207,11 +207,12 @@ class EditDate(ManagedWindow):
|
||||
self.validated_date = self.return_date = None
|
||||
|
||||
for o in self.top.get_objects():
|
||||
try:
|
||||
if o != self.ok_button:
|
||||
o.connect_after('changed', self.revalidate)
|
||||
except TypeError:
|
||||
pass # some of them don't support the signal, ignore them...
|
||||
if o != self.ok_button:
|
||||
for signal in ['changed', 'value-changed']:
|
||||
try:
|
||||
o.connect_after(signal, self.revalidate)
|
||||
except TypeError:
|
||||
pass # some of them don't support the signal, ignore them...
|
||||
self.revalidate()
|
||||
self.show()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user