From 49f3a73bd658c39311afcbf2dcc0acf9faa59ea9 Mon Sep 17 00:00:00 2001 From: fujiwarat Date: Thu, 14 Jan 2016 11:36:37 +0900 Subject: setup: Fix PyGIWarning: GdkX11 was imported without specifying a version R=shawn.p.huang@gmail.com Review URL: https://codereview.appspot.com/285830043 --- setup/main.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/setup/main.py b/setup/main.py index 22b6dc77..26c2b0f3 100644 --- a/setup/main.py +++ b/setup/main.py @@ -2,8 +2,8 @@ # # ibus - The Input Bus # -# Copyright (c) 2007-2015 Peng Huang -# Copyright (c) 2007-2015 Red Hat, Inc. +# Copyright (c) 2007-2016 Peng Huang +# Copyright (c) 2007-2016 Red Hat, Inc. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -28,6 +28,13 @@ import signal import sys import time +from gi import require_version as gi_require_version +gi_require_version('GLib', '2.0') +gi_require_version('GdkX11', '3.0') +gi_require_version('Gio', '2.0') +gi_require_version('Gtk', '3.0') +gi_require_version('IBus', '1.0') + from gi.repository import GLib # set_prgname before importing other modules to show the name in warning # messages when import modules are failed. -- cgit v1.2.1