Philipp Hörist pushed to branch master at gajim / gajim


Commits:
a5fc50ca by lovetox at 2021-04-30T17:47:48+02:00
Accounts: Use SpinSetting for custom port

Fixes #10541

- - - - -


2 changed files:

- gajim/gtk/accounts.py
- gajim/gtk/settings.py


Changes:

=====================================
gajim/gtk/accounts.py
=====================================
@@ -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',


=====================================
gajim/gtk/settings.py
=====================================
@@ -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)
 



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/a5fc50ca5d1a8c3f8662dc57e966e5dc0b88a094

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/a5fc50ca5d1a8c3f8662dc57e966e5dc0b88a094
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
Commits@gajim.org
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to