Skip to content

Commit 4b3f541

Browse files
committed
bin/meld: Don't do deprecated thread initialisation
1 parent 040f37f commit 4b3f541

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

bin/meld

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,8 @@ def setup_resources():
178178
from gi.repository import Gtk
179179
from gi.repository import Gdk
180180

181-
GObject.threads_init()
181+
if GObject.pygobject_version <= (3, 11):
182+
GObject.threads_init()
182183
icon_dir = os.path.join(meld.conf.DATADIR, "icons")
183184
Gtk.IconTheme.get_default().append_search_path(icon_dir)
184185

0 commit comments

Comments
 (0)