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:
Peng Huang 2012-05-17 11:08:14 -04:00
Родитель 6422f056a7
Коммит 32533c72be
1 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -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);
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();