Commit graph

12 commits

Author SHA1 Message Date
Niels De Graef
be3ed978e2 Draft: Port to GTK4 2025-12-15 09:40:38 +01:00
Michael Gratton
850bb3139f Fix vala mainline switch statement build warnings 2020-08-17 10:33:33 +10:00
Michael Gratton
ca6cbecb83 Add manual Components.Validator::validator method
Support manual validation where needed, add unit tests.

This also slightly changes the behaviour of non-required field, since
an empty non-required field should be valid.
2019-11-20 17:11:14 +11:00
Michael Gratton
c9fc877d12 Ensure Components.Validator::is-valid gets notify sigs emitted 2019-11-20 14:44:17 +11:00
Michael Gratton
7dc07bdad6 Fix NetworkAddressValidator not updating port number
Ensure the validated address is updated even if we know it is valid,
since the port number may have changed.

Fixes #294
2019-03-06 18:38:44 +11:00
Michael Gratton
b86c28a32d Replace Validator's in-progress icon with Gtk.Entry's progres meter
Using the icon never worked prroperly, and wasn't even animated, so
use the entry's active progress state instead.
2019-03-06 18:37:25 +11:00
Michael Gratton
64d43654d8 Validator enhacements
Don't re-validate if the entry has not changed. Add lost_focus and
changed signals that fire after validation has completed. Don't
re-validate host names if ony the port or scheme has changed.
2018-12-20 19:32:32 +11:00
Michael Gratton
9764d44bb1 Add an activated signal to Validator component
This will fire when the user has activated the entry and validation
has completed, allowing use sites to hook up one place when waiting for
asyc validation (e.g. host name validation) to occur.
2018-11-30 23:49:30 +11:00
Michael Gratton
81e04a21d5 Ensure new accounts can be created by hitting Enter. 2018-11-30 23:49:30 +11:00
Michael Gratton
a0c3754042 Fix hostname validator not dealing with whitespace, port no's. 2018-11-30 23:49:30 +11:00
Michael James Gratton
b8213b5b86 Add initial replacement account creation pane. 2018-11-30 23:49:30 +11:00
Michael James Gratton
b86f817763 Introduce a validator class for checking values entered into Gtk.Entry
Use it for validating account email addresses in the accounts editor.
2018-11-30 23:49:30 +11:00