OLD | NEW |
1 /* vim:set et sts=4 sw=4: | 1 /* vim:set et sts=4 sw=4: |
2 * | 2 * |
3 * ibus - The Input Bus | 3 * ibus - The Input Bus |
4 * | 4 * |
5 * Copyright(c) 2011-2014 Peng Huang <shawn.p.huang@gmail.com> | 5 * Copyright(c) 2011-2014 Peng Huang <shawn.p.huang@gmail.com> |
6 * Copyright(c) 2015-2017 Takao Fujwiara <takao.fujiwara1@gmail.com> | 6 * Copyright(c) 2015-2017 Takao Fujwiara <takao.fujiwara1@gmail.com> |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Lesser General Public | 9 * modify it under the terms of the GNU Lesser General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 1221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1232 // Show system menu | 1232 // Show system menu |
1233 if (m_sys_menu == null) { | 1233 if (m_sys_menu == null) { |
1234 Gtk.MenuItem item; | 1234 Gtk.MenuItem item; |
1235 m_sys_menu = new Gtk.Menu(); | 1235 m_sys_menu = new Gtk.Menu(); |
1236 | 1236 |
1237 item = new Gtk.MenuItem.with_label(_("Preferences")); | 1237 item = new Gtk.MenuItem.with_label(_("Preferences")); |
1238 item.activate.connect((i) => show_setup_dialog()); | 1238 item.activate.connect((i) => show_setup_dialog()); |
1239 m_sys_menu.append(item); | 1239 m_sys_menu.append(item); |
1240 | 1240 |
1241 #if EMOJI_DICT | 1241 #if EMOJI_DICT |
1242 item = new Gtk.MenuItem.with_label(_("Emoji Dialog")); | 1242 item = new Gtk.MenuItem.with_label(_("Emoji Choice")); |
1243 item.activate.connect((i) => { | 1243 item.activate.connect((i) => { |
1244 Gdk.Event event = new Gdk.Event(Gdk.EventType.KEY_PRESS); | 1244 Gdk.Event event = new Gdk.Event(Gdk.EventType.KEY_PRESS); |
1245 handle_emoji_typing(event); | 1245 handle_emoji_typing(event); |
1246 }); | 1246 }); |
1247 m_sys_menu.append(item); | 1247 m_sys_menu.append(item); |
1248 #endif | 1248 #endif |
1249 | 1249 |
1250 item = new Gtk.MenuItem.with_label(_("About")); | 1250 item = new Gtk.MenuItem.with_label(_("About")); |
1251 item.activate.connect((i) => show_about_dialog()); | 1251 item.activate.connect((i) => show_about_dialog()); |
1252 m_sys_menu.append(item); | 1252 m_sys_menu.append(item); |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1673 } | 1673 } |
1674 m_engines[0] = engine; | 1674 m_engines[0] = engine; |
1675 | 1675 |
1676 string[] names = {}; | 1676 string[] names = {}; |
1677 foreach(var desc in m_engines) { | 1677 foreach(var desc in m_engines) { |
1678 names += desc.get_name(); | 1678 names += desc.get_name(); |
1679 } | 1679 } |
1680 m_settings_general.set_strv("engines-order", names); | 1680 m_settings_general.set_strv("engines-order", names); |
1681 } | 1681 } |
1682 } | 1682 } |
OLD | NEW |