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,9 +207,10 @@ class EditDate(ManagedWindow):
self.validated_date = self.return_date = None self.validated_date = self.return_date = None
for o in self.top.get_objects(): for o in self.top.get_objects():
try:
if o != self.ok_button: if o != self.ok_button:
o.connect_after('changed', self.revalidate) for signal in ['changed', 'value-changed']:
try:
o.connect_after(signal, self.revalidate)
except TypeError: except TypeError:
pass # some of them don't support the signal, ignore them... pass # some of them don't support the signal, ignore them...
self.revalidate() self.revalidate()