mirror of
https://github.com/SELinuxProject/selinux
synced 2025-02-17 01:56:53 +00:00
policycoreutils: Force GTK3.0 for sepolicy gui
This removes the following warning when running sepolicy gui command: /usr/lib/python3/dist-packages/sepolicy/gui.py:29: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded. Signed-off-by: Laurent Bigonville <bigon@bigon.be>
This commit is contained in:
parent
0339318a26
commit
1270be188a
@ -26,6 +26,8 @@
|
||||
#
|
||||
#
|
||||
|
||||
import gi
|
||||
gi.require_version('Gtk', '3.0')
|
||||
from gi.repository import Gtk
|
||||
from gi.repository import Gdk
|
||||
from gi.repository import GLib
|
||||
|
Loading…
Reference in New Issue
Block a user