Blob Blame Raw
From a25c5e33f08e06648fe3840141b208c852a14415 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9rgio=20M=2E=20Basto?= <sergio@serjux.com>
Date: Tue, 24 Jul 2018 03:49:34 +0100
Subject: [PATCH 1/4] add gi.require_version('Gtk', '3.0') before import Gtk

---
 scripts/build_error.py  | 3 +++
 scripts/lpf_gui_base.py | 3 +++
 scripts/notify.py       | 3 +++
 scripts/update.py       | 3 +++
 4 files changed, 12 insertions(+)

diff --git a/scripts/build_error.py b/scripts/build_error.py
index 0692b48..3ea6617 100644
--- a/scripts/build_error.py
+++ b/scripts/build_error.py
@@ -4,6 +4,9 @@ import os.path
 import os
 os.environ['NO_AT_BRIDGE'] = '0'
 
+import gi
+gi.require_version('Gtk', '3.0')
+
 from gi.repository import Gtk        # pylint:disable=no-name-in-module
 
 
diff --git a/scripts/lpf_gui_base.py b/scripts/lpf_gui_base.py
index 8813be2..b808d78 100644
--- a/scripts/lpf_gui_base.py
+++ b/scripts/lpf_gui_base.py
@@ -8,6 +8,9 @@ import subprocess
 import sys
 import time
 
+import gi
+gi.require_version('Gtk', '3.0')
+
 from gi.repository import Gtk              # pylint:disable=no-name-in-module
 from gi.repository import Gdk              # pylint:disable=no-name-in-module
 from gi.repository import GObject          # pylint:disable=no-name-in-module
diff --git a/scripts/notify.py b/scripts/notify.py
index 12e2384..3bd13be 100644
--- a/scripts/notify.py
+++ b/scripts/notify.py
@@ -5,6 +5,9 @@ import os.path
 import subprocess
 os.environ['NO_AT_BRIDGE'] = '0'
 
+import gi
+gi.require_version('Gtk', '3.0')
+
 from gi.repository import Gtk         # pylint: disable=no-name-in-module
 from gi.repository import GObject     # pylint: disable=no-name-in-module
 
diff --git a/scripts/update.py b/scripts/update.py
index 5ba2ea9..56fb331 100644
--- a/scripts/update.py
+++ b/scripts/update.py
@@ -6,6 +6,9 @@ import signal
 import subprocess
 import sys
 
+import gi
+gi.require_version('Gtk', '3.0')
+
 from gi.repository import GLib        # pylint: disable=no-name-in-module
 from gi.repository import Gtk         # pylint: disable=no-name-in-module
 
-- 
2.14.4