From 4d11270a7caeb3f510e6922001514ab2797b6cb0 Mon Sep 17 00:00:00 2001 From: June Tate-Gans Date: Mon, 3 May 2021 18:10:56 -0500 Subject: [PATCH] main: Since we use lots of crazy threads, ensure GDK is ready --- g13gui/g13gui/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/g13gui/g13gui/main.py b/g13gui/g13gui/main.py index db9ac02..7a85a59 100644 --- a/g13gui/g13gui/main.py +++ b/g13gui/g13gui/main.py @@ -8,10 +8,12 @@ from g13gui.model.prefsstore import PreferencesStore from g13gui.g13.manager import Manager gi.require_version('Gtk', '3.0') -from gi.repository import Gtk, GObject +from gi.repository import Gtk, Gdk, GObject if __name__ == '__main__': + Gdk.threads_init() + prefs = PreferencesStore.getPrefs() manager = Manager(prefs) manager.start()