ibus-ui-gtk3: Hide the candidate window during starting up.
authorPeng Huang <shawn.p.huang@gmail.com>
Thu, 12 Jan 2012 15:12:44 +0000 (10:12 -0500)
committerPeng Huang <shawn.p.huang@gmail.com>
Tue, 21 Feb 2012 16:52:25 +0000 (11:52 -0500)
ui/gtk3/candidatepanel.vala
ui/gtk3/panel.vala

index 06cceb3..d02c06d 100644 (file)
@@ -46,7 +46,8 @@ public class CandidatePanel : Gtk.HBox{
     public CandidatePanel() {
         // Call base class constructor
         GLib.Object(
-            name : "IBusCandidate"
+            name : "IBusCandidate",
+            visible: true
         );
 
         m_toplevel = new Gtk.Window(Gtk.WindowType.POPUP);
@@ -58,9 +59,12 @@ public class CandidatePanel : Gtk.HBox{
             return true;
         });
 
-        m_vbox = new Gtk.VBox(false, 0);
         Handle handle = new Handle();
+        handle.set_visible(true);
         pack_start(handle, false, false, 0);
+
+        m_vbox = new Gtk.VBox(false, 0);
+        m_vbox.set_visible(true);
         pack_start(m_vbox, false, false, 0);
 
         m_toplevel.add(this);
@@ -174,14 +178,15 @@ public class CandidatePanel : Gtk.HBox{
         m_aux_label.set_no_show_all(true);
 
         m_candidate_area = new CandidateArea(m_vertical);
-        m_candidate_area.candidate_clicked.connect((w, i, b, s) => candidate_clicked(i, b, s));
+        m_candidate_area.candidate_clicked.connect(
+                (w, i, b, s) => candidate_clicked(i, b, s));
         m_candidate_area.page_up.connect((c) => page_up());
         m_candidate_area.page_down.connect((c) => page_down());
         m_candidate_area.cursor_up.connect((c) => cursor_up());
         m_candidate_area.cursor_down.connect((c) => cursor_down());
-        m_candidate_area.show();
 
         m_hseparator = new HSeparator();
+        m_hseparator.set_visible(true);
 
         pack_all_widgets();
     }
index 3341eb4..5d24a18 100644 (file)
@@ -66,9 +66,6 @@ class Panel : IBus.PanelService {
 
         m_candidate_panel = new CandidatePanel();
 
-        m_candidate_panel.hide();
-        m_candidate_panel.show();
-
         reinit_config();
 
         m_switcher = new Switcher();