From c26c902dc71e3d12fb7c125245ff3ee8c33420e9 Mon Sep 17 00:00:00 2001 From: James Cameron Date: Tue, 30 May 2017 14:10:23 +1000 Subject: [PATCH] Remove Python GI API version warnings - reported in Clock-19 testing. --- src/sugar3/speech.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sugar3/speech.py b/src/sugar3/speech.py index a5936ad1..f0b2bc6e 100644 --- a/src/sugar3/speech.py +++ b/src/sugar3/speech.py @@ -18,6 +18,9 @@ import os import logging from gettext import gettext as _ +import gi +gi.require_version('Gtk', '3.0') + from gi.repository import Gio from gi.repository import Gtk from gi.repository import Gdk @@ -25,6 +28,7 @@ from gi.repository import GObject _HAS_GST = True try: + gi.require_version('Gst', '1.0') from gi.repository import Gst Gst.init(None) Gst.parse_launch('espeak')