diff options
author | Peng Huang <shawn.p.huang@gmail.com> | 2012-05-17 11:08:14 -0400 |
---|---|---|
committer | Peng Huang <shawn.p.huang@gmail.com> | 2012-05-17 11:08:14 -0400 |
commit | 32533c72be144e0a26902e11ed0b967208a17317 (patch) | |
tree | 3fa4e13cfc0a3922da75e77629ab3237e9b0d17d /ui | |
parent | 6422f056a7e5946c59f105aabfc1bc724d13fc5a (diff) |
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
Diffstat (limited to 'ui')
-rw-r--r-- | ui/gtk3/candidatepanel.vala | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ui/gtk3/candidatepanel.vala b/ui/gtk3/candidatepanel.vala index a029e8fc..0cf3c57f 100644 --- a/ui/gtk3/candidatepanel.vala +++ b/ui/gtk3/candidatepanel.vala @@ -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(); |