7317,7360: also use 'value-changed' signal

With gtk3 controls, the day/year changes aren't caught otherwise
This commit is contained in:
Vassilii Khachaturov 2014-01-21 16:05:55 +02:00
parent 041e154695
commit d72fbdae48

View File

@ -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()