7317,7360: also use 'value-changed' signal
With gtk3 controls, the day/year changes aren't caught otherwise
This commit is contained in:
parent
b27082b20b
commit
e62cedd343
@ -206,11 +206,12 @@ 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:
|
for signal in ['changed', 'value-changed']:
|
||||||
o.connect_after('changed', self.revalidate)
|
try:
|
||||||
except TypeError:
|
o.connect_after(signal, self.revalidate)
|
||||||
pass # some of them don't support the signal, ignore them...
|
except TypeError:
|
||||||
|
pass # some of them don't support the signal, ignore them...
|
||||||
self.revalidate()
|
self.revalidate()
|
||||||
self.show()
|
self.show()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user