summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2013-02-07 14:03:55 +0800
committerPeng Wu <alexepico@gmail.com>2013-02-07 14:03:55 +0800
commit522546c64bfaff53450b4d161c6acf4b8cd8a2be (patch)
tree8cca47f3c7011206124e31a00446655b71594097
parent4b26bca531a13aec957d0568f7d1696ce6a04d52 (diff)
downloadibus-libpinyin-522546c64bfaff53450b4d161c6acf4b8cd8a2be.tar.gz
ibus-libpinyin-522546c64bfaff53450b4d161c6acf4b8cd8a2be.tar.xz
ibus-libpinyin-522546c64bfaff53450b4d161c6acf4b8cd8a2be.zip
fixes bug
-rw-r--r--setup/config.py.in2
-rw-r--r--setup/main2.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/setup/config.py.in b/setup/config.py.in
index b601570..0316cb1 100644
--- a/setup/config.py.in
+++ b/setup/config.py.in
@@ -24,5 +24,5 @@ def get_version():
return "@VERSION@"
-def get_package_data_dir():
+def get_data_dir():
return "@datadir@"
diff --git a/setup/main2.py b/setup/main2.py
index d621412..4f55b13 100644
--- a/setup/main2.py
+++ b/setup/main2.py
@@ -32,7 +32,7 @@ from gi.repository import Gtk
from gi.repository import IBus
from xdg import BaseDirectory
-import version
+import config
from dicttreeview import DictionaryTreeView
_ = lambda x : gettext.gettext(x)
@@ -355,7 +355,7 @@ class PreferencesDialog:
self.__page_about.show()
self.__name_version = self.__builder.get_object("NameVersion")
- self.__name_version.set_markup(_("<big><b>Intelligent Pinyin %s</b></big>") % version.get_version())
+ self.__name_version.set_markup(_("<big><b>Intelligent Pinyin %s</b></big>") % config.get_version())
def __changed_cb(self, widget, name):
self.__set_value(name, widget.get_active())