Don't use new() in utils.py

This commit is contained in:
Romain Failliot 2022-04-04 14:21:12 -04:00
parent 65310cf4c4
commit d9c0efcbd0
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ class MessageDialog(Gtk.MessageDialog):
class EncodingMenu(Gtk.Box):
def __init__(self, prefs: Preferences, autodetect: bool = False) -> None:
Gtk.Box.__init__(self, orientation=Gtk.Orientation.HORIZONTAL)
self.combobox = combobox = Gtk.ComboBoxText.new()
self.combobox = combobox = Gtk.ComboBoxText()
self.encodings = prefs.getEncodings()[:]
for e in self.encodings:
combobox.append_text(e)