Shrink the IME switcher window size if necessary.
authorPeng Huang <shawn.p.huang@gmail.com>
Wed, 7 Mar 2012 05:39:17 +0000 (00:39 -0500)
committerPeng Huang <shawn.p.huang@gmail.com>
Wed, 7 Mar 2012 05:39:17 +0000 (00:39 -0500)
BUG=None
TEST=Manually

Review URL: https://codereview.appspot.com/5753056

ui/gtk3/switcher.vala

index dab70ab..76c67ec 100644 (file)
@@ -173,6 +173,9 @@ class Switcher : Gtk.Window {
             m_box.pack_start(button, true, true);
             m_buttons += button;
         }
+
+        // Cause window recalculate the perferred size.
+        resize(1, 1);
     }
 
     private void next_engine() {