Commit a5fc50ca authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Accounts: Use SpinSetting for custom port

Fixes #10541
parent 72f489b4
......@@ -965,9 +965,10 @@ def __init__(self, account, parent):
SettingType.ACCOUNT_CONFIG, 'custom_host',
bind='account::use_custom_host'),
Setting(SettingKind.ENTRY, _('Port'),
Setting(SettingKind.SPIN, _('Port'),
SettingType.ACCOUNT_CONFIG, 'custom_port',
bind='account::use_custom_host'),
bind='account::use_custom_host',
props={'range_': (0, 65535)},),
Setting(SettingKind.COMBO, _('Type'),
SettingType.ACCOUNT_CONFIG, 'custom_type',
......
......@@ -497,7 +497,7 @@ def __init__(self, *args, range_):
self.spin.set_numeric(True)
self.spin.set_update_policy(Gtk.SpinButtonUpdatePolicy.IF_VALID)
self.spin.set_value(self.setting_value)
self.spin.set_halign(Gtk.Align.END)
self.spin.set_halign(Gtk.Align.FILL)
self.spin.set_valign(Gtk.Align.CENTER)
self.spin.connect('notify::value', self.on_value_change)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment