slackbuilds_ponce/system/lirc/gi.patch
Jeremy Hansen ba4c4cb7e7
system/lirc: Patch lirc-setup to force using gtk3.
Thanks to Martin Schmidt for the heads up and the patch.

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2022-11-05 21:15:23 +07:00

13 lines
386 B
Diff

diff --git a/tools/lirc-setup/mvc_control.py b/tools/lirc-setup/mvc_control.py
index 9d0548a..16395f6 100644
--- a/tools/lirc-setup/mvc_control.py
+++ b/tools/lirc-setup/mvc_control.py
@@ -1,5 +1,8 @@
''' Simple lirc setup tool - control part. '''
+import gi
+gi.require_version('Gtk', '3.0')
+
from gi.repository import Gtk # pylint: disable=no-name-in-module
import os