Don't not set orientation when hide lookup table to improve UI performance.
BUG=http://code.google.com/p/ibus/issues/detail?id=1461 TEST=manually Review URL: https://codereview.appspot.com/6203085
This commit is contained in:
Родитель
6422f056a7
Коммит
32533c72be
|
@ -155,9 +155,15 @@ public class CandidatePanel : Gtk.HBox{
|
|||
|
||||
orientation = (IBus.Orientation)table.get_orientation();
|
||||
}
|
||||
|
||||
m_candidate_area.set_candidates(candidates, cursor_in_page, show_cursor);
|
||||
set_labels(labels);
|
||||
set_orientation(orientation);
|
||||
|
||||
if (table != null) {
|
||||
// Do not change orientation if table is null to avoid recreate
|
||||
// candidates area.
|
||||
set_orientation(orientation);
|
||||
}
|
||||
|
||||
if (candidates.length != 0)
|
||||
m_candidate_area.show_all();
|
||||
|
|
Загрузка…
Ссылка в новой задаче