summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2013-02-20 11:22:22 +0800
committerPeng Wu <alexepico@gmail.com>2013-02-20 11:25:57 +0800
commite88fd94817b3b1bbd8b2498dcb402e5b828497bd (patch)
tree04ffceed215a159b5f9825516adeac7e2328ea28
parent9e2bb399070a472741e1f61878d743c6a8699e07 (diff)
downloadibus-libpinyin-e88fd94817b3b1bbd8b2498dcb402e5b828497bd.tar.gz
ibus-libpinyin-e88fd94817b3b1bbd8b2498dcb402e5b828497bd.tar.xz
ibus-libpinyin-e88fd94817b3b1bbd8b2498dcb402e5b828497bd.zip
fixes typo
-rw-r--r--setup/dicttreeview.py4
-rw-r--r--src/PYLibPinyin.cc4
2 files changed, 4 insertions, 4 deletions
diff --git a/setup/dicttreeview.py b/setup/dicttreeview.py
index 9d834cf..b4dde52 100644
--- a/setup/dicttreeview.py
+++ b/setup/dicttreeview.py
@@ -110,12 +110,12 @@ class DictionaryTreeView(Gtk.TreeView):
# column for toggles
renderer = Gtk.CellRendererToggle()
renderer.connect('toggled', self.__active_toggled, self.__model)
- column = Gtk.TreeViewColumn('Active', renderer, active=COLUMN_ACTIVE, sensitive=COLUMN_SENSITIVE)
+ column = Gtk.TreeViewColumn(_('Active'), renderer, active=COLUMN_ACTIVE, sensitive=COLUMN_SENSITIVE)
self.append_column(column)
# column for description
render = Gtk.CellRendererText()
- column = Gtk.TreeViewColumn('Description', render, text=COLUMN_DESCRIPTION)
+ column = Gtk.TreeViewColumn(_('Description'), render, text=COLUMN_DESCRIPTION)
self.append_column(column)
def __active_toggled(self, cell, path, model):
diff --git a/src/PYLibPinyin.cc b/src/PYLibPinyin.cc
index a9a75e9..eb88e16 100644
--- a/src/PYLibPinyin.cc
+++ b/src/PYLibPinyin.cc
@@ -70,7 +70,7 @@ LibPinyinBackEnd::initPinyinContext (Config *config)
g_free (userdir);
const char *dicts = config->dictionaries ().c_str ();
- gchar ** indices = g_strsplit_set (dicts, "", -1);
+ gchar ** indices = g_strsplit_set (dicts, ";", -1);
for (size_t i = 0; i < g_strv_length(indices); ++i) {
int index = atoi (indices [i]);
if (index <= 1)
@@ -119,7 +119,7 @@ LibPinyinBackEnd::initChewingContext (Config *config)
g_free(userdir);
const char *dicts = config->dictionaries ().c_str ();
- gchar ** indices = g_strsplit_set (dicts, "", -1);
+ gchar ** indices = g_strsplit_set (dicts, ";", -1);
for (size_t i = 0; i < g_strv_length(indices); ++i) {
int index = atoi (indices [i]);
if (index <= 1)