diff options
author | fujiwarat <takao.fujiwara1@gmail.com> | 2016-01-14 11:36:37 +0900 |
---|---|---|
committer | fujiwarat <takao.fujiwara1@gmail.com> | 2016-01-14 11:36:37 +0900 |
commit | 49f3a73bd658c39311afcbf2dcc0acf9faa59ea9 (patch) | |
tree | 6864bdbb8565dd054a5e61b2d45a18525ea65f5c | |
parent | 3ebeb6540ddfc75aeafdf87ccd6e4ae986e3e78d (diff) | |
download | ibus-49f3a73bd658c39311afcbf2dcc0acf9faa59ea9.tar.gz |
setup: Fix PyGIWarning: GdkX11 was imported without specifying a version
R=shawn.p.huang@gmail.com
Review URL: https://codereview.appspot.com/285830043
-rw-r--r-- | setup/main.py | 11 |
1 files 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 <shawn.p.huang@gmail.com> -# Copyright (c) 2007-2015 Red Hat, Inc. +# Copyright (c) 2007-2016 Peng Huang <shawn.p.huang@gmail.com> +# 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. |