aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2022-04-14 19:43:53 +0200
committerPapoteur <papoteur@mageia.org>2022-04-14 19:43:53 +0200
commit426ab9ba160fc0e16c7166a8087d686d90503b8f (patch)
tree9e176bac716b92c7083f3e16b9de155e8960bc4d
parent97f64b96ed1afc1326ee4622a92adf7460248ae1 (diff)
downloadmsec-426ab9ba160fc0e16c7166a8087d686d90503b8f.tar
msec-426ab9ba160fc0e16c7166a8087d686d90503b8f.tar.gz
msec-426ab9ba160fc0e16c7166a8087d686d90503b8f.tar.bz2
msec-426ab9ba160fc0e16c7166a8087d686d90503b8f.tar.xz
msec-426ab9ba160fc0e16c7166a8087d686d90503b8f.zip
Get rid of warnings about Gtk release not specified
-rwxr-xr-xsrc/msec/msecgui.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/msec/msecgui.py b/src/msec/msecgui.py
index 085e757..e1a42f6 100755
--- a/src/msec/msecgui.py
+++ b/src/msec/msecgui.py
@@ -18,8 +18,11 @@ import time
import warnings
warnings.filterwarnings('error', module='gtk')
try:
+ from gi import require_version
from gi.repository import GLib
+ require_version('GdkPixbuf', '2.0')
from gi.repository import GdkPixbuf
+ require_version('Gtk', '3.0')
from gi.repository import Gtk
import gi
from gi.repository import GObject