summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--setup/main.py11
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.