Skip to content

Commit

Permalink
ui/gtk3: Do not clear unicode data when emoji annotation lang is changed
Browse files Browse the repository at this point in the history
  • Loading branch information
fujiwarat committed Aug 22, 2018
1 parent aa0f425 commit 7edaefd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ui/gtk3/emojier.vala
Expand Up @@ -440,13 +440,17 @@ public class IBusEmojier : Gtk.ApplicationWindow {
m_emoji_to_emoji_variants_dict =
new GLib.HashTable<string, GLib.SList<string>>(GLib.str_hash,
GLib.str_equal);
m_unicode_to_data_dict =
if (m_unicode_to_data_dict == null) {
m_unicode_to_data_dict =
new GLib.HashTable<unichar, IBus.UnicodeData>(
GLib.direct_hash,
GLib.direct_equal);
m_name_to_unicodes_dict =
}
if (m_name_to_unicodes_dict == null) {
m_name_to_unicodes_dict =
new GLib.HashTable<string, GLib.SList<unichar>>(GLib.str_hash,
GLib.str_equal);
}
}


Expand Down

0 comments on commit 7edaefd

Please sign in to comment.