Permalink
Browse files

ui/gtk3: Do not clear unicode data when emoji annotation lang is changed

  • Loading branch information...
fujiwarat committed Aug 22, 2018
1 parent aa0f425 commit 7edaefdc1d80aefdbbc2dc52526c20715759da83
Showing with 6 additions and 2 deletions.
  1. +6 −2 ui/gtk3/emojier.vala
View
@@ -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);
}
}

0 comments on commit 7edaefd

Please sign in to comment.