diff options
author | Huang Peng <shawn.p.huang@gmail.com> | 2008-09-06 10:12:58 +0800 |
---|---|---|
committer | Huang Peng <shawn.p.huang@gmail.com> | 2008-09-06 10:12:58 +0800 |
commit | 206b91fe7614dd3a1a40567f4b54c80a7cb327ed (patch) | |
tree | 35c16abe04b5ed0d6f7beccbfc4e80e32184edf9 /lib | |
parent | dec9b8052f3384ee2a01a82a38d947a57e8e22c9 (diff) | |
download | ibus-206b91fe7614dd3a1a40567f4b54c80a7cb327ed.tar.gz ibus-206b91fe7614dd3a1a40567f4b54c80a7cb327ed.tar.xz ibus-206b91fe7614dd3a1a40567f4b54c80a7cb327ed.zip |
Rename function and remove unused code.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gtk2/ibusimclient.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/lib/gtk2/ibusimclient.c b/lib/gtk2/ibusimclient.c index 7d871fb..343dd0f 100644 --- a/lib/gtk2/ibusimclient.c +++ b/lib/gtk2/ibusimclient.c @@ -98,7 +98,7 @@ static void ibus_im_client_class_init (IBusIMClientClass *klass); static void ibus_im_client_init (IBusIMClient *client); static void ibus_im_client_finalize (GObject *obj); -static void _keymap_find_japan_group (IBusIMClient *client); +static void _keymap_find_japan_groups (IBusIMClient *client); static void _keymap_find_yen_bar_keys (IBusIMClient *client); static void _keymap_keys_changed_cb (GdkKeymap *keymap, IBusIMClient *client); @@ -551,14 +551,9 @@ ibus_im_client_init (IBusIMClient *obj) if ((priv->keymap = gdk_keymap_get_default ()) != NULL) { g_object_ref (priv->keymap); - _keymap_find_japan_group (client); + _keymap_find_japan_groups (client); _keymap_find_yen_bar_keys (client); - int i; - for (i = 0; i < client->priv->japan_yen_bar_keys->len; i++) { - GdkKeymapKey *key = &g_array_index (client->priv->japan_yen_bar_keys, GdkKeymapKey, i); - } - priv->keymap_handler_id = g_signal_connect (priv->keymap, "keys-changed", G_CALLBACK (_keymap_keys_changed_cb), client); @@ -839,7 +834,7 @@ ibus_im_client_get_connected (IBusIMClient *client) } static void -_keymap_find_japan_group (IBusIMClient *client) +_keymap_find_japan_groups (IBusIMClient *client) { #ifdef HAVE_XKB @@ -973,7 +968,7 @@ _keymap_find_yen_bar_keys (IBusIMClient *client) static void _keymap_keys_changed_cb (GdkKeymap *keymap, IBusIMClient *client) { - _keymap_find_japan_group (client); + _keymap_find_japan_groups (client); _keymap_find_yen_bar_keys (client); } |