From 426ab9ba160fc0e16c7166a8087d686d90503b8f Mon Sep 17 00:00:00 2001 From: Papoteur Date: Thu, 14 Apr 2022 19:43:53 +0200 Subject: Get rid of warnings about Gtk release not specified --- src/msec/msecgui.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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 -- cgit v1.2.1