Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(672)

Side by Side Diff: setup/main.py

Issue 1784007: Merge xkb related changes. (Closed) Base URL: ssh://git@chromiumos-git/ibus.git
Patch Set: Revert the default values of some configs. Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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) 2007-2010 Peng Huang <shawn.p.huang@gmail.com> 5 # Copyright (c) 2007-2010 Peng Huang <shawn.p.huang@gmail.com>
6 # Copyright (c) 2007-2010 Red Hat, Inc. 6 # Copyright (c) 2007-2010 Red Hat, Inc.
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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 ibus.CONFIG_GENERAL_SHORTCUT_TRIGGER_DEFAULT) 100 ibus.CONFIG_GENERAL_SHORTCUT_TRIGGER_DEFAULT)
101 button = self.__builder.get_object("button_trigger") 101 button = self.__builder.get_object("button_trigger")
102 entry = self.__builder.get_object("entry_trigger") 102 entry = self.__builder.get_object("entry_trigger")
103 entry.set_text("; ".join(shortcuts)) 103 entry.set_text("; ".join(shortcuts))
104 entry.set_tooltip_text("\n".join(shortcuts)) 104 entry.set_tooltip_text("\n".join(shortcuts))
105 button.connect("clicked", self.__shortcut_button_clicked_cb, 105 button.connect("clicked", self.__shortcut_button_clicked_cb,
106 N_("trigger"), "general/hotkey", "trigger", entry) 106 N_("trigger"), "general/hotkey", "trigger", entry)
107 107
108 # next engine 108 # next engine
109 shortcuts = self.__config.get_value( 109 shortcuts = self.__config.get_value(
110 "general/hotkey", "next_engine", 110 "general/hotkey", "next_engine_in_menu",
111 ibus.CONFIG_GENERAL_SHORTCUT_NEXT_ENGINE_DEFAULT) 111 ibus.CONFIG_GENERAL_SHORTCUT_NEXT_ENGINE_DEFAULT)
112 button = self.__builder.get_object("button_next_engine") 112 button = self.__builder.get_object("button_next_engine")
113 entry = self.__builder.get_object("entry_next_engine") 113 entry = self.__builder.get_object("entry_next_engine")
114 entry.set_text("; ".join(shortcuts)) 114 entry.set_text("; ".join(shortcuts))
115 entry.set_tooltip_text("\n".join(shortcuts)) 115 entry.set_tooltip_text("\n".join(shortcuts))
116 button.connect("clicked", self.__shortcut_button_clicked_cb, 116 button.connect("clicked", self.__shortcut_button_clicked_cb,
117 N_("next input method"), "general/hotkey", "next_engine", en try) 117 N_("next input method"), "general/hotkey", "next_engine_in_m enu", entry)
118 118
119 # prev engine 119 # prev engine
120 shortcuts = self.__config.get_value( 120 shortcuts = self.__config.get_value(
121 "general/hotkey", "prev_engine", 121 "general/hotkey", "previous_engine",
122 ibus.CONFIG_GENERAL_SHORTCUT_PREV_ENGINE_DEFAULT) 122 ibus.CONFIG_GENERAL_SHORTCUT_PREV_ENGINE_DEFAULT)
123 button = self.__builder.get_object("button_prev_engine") 123 button = self.__builder.get_object("button_prev_engine")
124 entry = self.__builder.get_object("entry_prev_engine") 124 entry = self.__builder.get_object("entry_prev_engine")
125 entry.set_text("; ".join(shortcuts)) 125 entry.set_text("; ".join(shortcuts))
126 entry.set_tooltip_text("\n".join(shortcuts)) 126 entry.set_tooltip_text("\n".join(shortcuts))
127 button.connect("clicked", self.__shortcut_button_clicked_cb, 127 button.connect("clicked", self.__shortcut_button_clicked_cb,
128 N_("previous input method"), "general/hotkey", "prev_engine" , entry) 128 N_("previous input method"), "general/hotkey", "previous_eng ine", entry)
129 129
130 # lookup table orientation 130 # lookup table orientation
131 self.__combobox_lookup_table_orientation = self.__builder.get_object("co mbobox_lookup_table_orientation") 131 self.__combobox_lookup_table_orientation = self.__builder.get_object("co mbobox_lookup_table_orientation")
132 self.__combobox_lookup_table_orientation.set_active( 132 self.__combobox_lookup_table_orientation.set_active(
133 self.__config.get_value("panel", "lookup_table_orientation", 0)) 133 self.__config.get_value("panel", "lookup_table_orientation", 0))
134 self.__combobox_lookup_table_orientation.connect("changed", 134 self.__combobox_lookup_table_orientation.connect("changed",
135 self.__combobox_lookup_table_orientation_changed_cb) 135 self.__combobox_lookup_table_orientation_changed_cb)
136 136
137 # auto hide 137 # auto hide
138 self.__combobox_panel_show = self.__builder.get_object("combobox_panel_s how") 138 self.__combobox_panel_show = self.__builder.get_object("combobox_panel_s how")
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 self.__window.present() 454 self.__window.present()
455 455
456 def run(self): 456 def run(self):
457 self.__window.show_all() 457 self.__window.show_all()
458 signal.signal(signal.SIGUSR1, self.__sigusr1_cb) 458 signal.signal(signal.SIGUSR1, self.__sigusr1_cb)
459 gtk.main() 459 gtk.main()
460 460
461 if __name__ == "__main__": 461 if __name__ == "__main__":
462 setup = Setup() 462 setup = Setup()
463 setup.run() 463 setup.run()
OLDNEW
« bus/ibusimpl.c ('K') | « ibus/interface/iibus.py ('k') | setup/setup.ui » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698