diff options
author | Peng Wu <alexepico@gmail.com> | 2016-09-02 13:11:10 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2016-09-02 13:11:10 +0800 |
commit | c7d849a881d6574aefd385df9a2b3772cf939613 (patch) | |
tree | 94265461a3c34d47445e1d7959f94272c61a76d8 /setup | |
parent | 0b307f1eb7edcd6b253fbb4e04a4c33d0e60c47b (diff) | |
download | ibus-libzhuyin-c7d849a881d6574aefd385df9a2b3772cf939613.tar.gz ibus-libzhuyin-c7d849a881d6574aefd385df9a2b3772cf939613.tar.xz ibus-libzhuyin-c7d849a881d6574aefd385df9a2b3772cf939613.zip |
fixes main.py
Diffstat (limited to 'setup')
-rw-r--r-- | setup/main.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/setup/main.py b/setup/main.py index ca5c9a7..2746da0 100644 --- a/setup/main.py +++ b/setup/main.py @@ -26,7 +26,17 @@ import locale import os import sys +from gi import require_version as gi_require_version +gi_require_version('GLib', '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. E.g. Gtk. +GLib.set_prgname('ibus-setup-libzhuyin') + from gi.repository import Gtk from gi.repository import IBus |