From d9c0efcbd0f0cb0a3c5109d4469c09ad1b63bb4a Mon Sep 17 00:00:00 2001 From: Romain Failliot Date: Mon, 4 Apr 2022 14:21:12 -0400 Subject: [PATCH] Don't use new() in utils.py --- src/diffuse/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/diffuse/utils.py b/src/diffuse/utils.py index 8b81a58..c98d00a 100644 --- a/src/diffuse/utils.py +++ b/src/diffuse/utils.py @@ -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)