[gnome-contacts] window: respect show called on quiescent signal handler



commit 2b22b27a716427e7f1bc4d3399b8ae4841970179
Author: Erick Pérez Castellanos <erick red gmail com>
Date:   Sun Aug 18 01:09:52 2013 -0400

    window: respect show called on quiescent signal handler
    
    The better should be for the application to load immediately
    and show the user the contacts are loading somehow

 src/contacts-app.vala    |    5 -----
 src/contacts-window.ui   |    4 ++--
 src/contacts-window.vala |    2 ++
 3 files changed, 4 insertions(+), 7 deletions(-)
---
diff --git a/src/contacts-app.vala b/src/contacts-app.vala
index 238e0d2..252cd61 100644
--- a/src/contacts-app.vala
+++ b/src/contacts-app.vala
@@ -299,11 +299,6 @@ public class Contacts.App : Gtk.Application {
          window.right_title = contacts_pane.contact.display_name;
         }
       });
-
-    window.show_all ();
-
-    window.edit_button.hide ();
-    window.done_button.hide ();
   }
 
   public override void startup () {
diff --git a/src/contacts-window.ui b/src/contacts-window.ui
index 1e5b34c..05d790b 100644
--- a/src/contacts-window.ui
+++ b/src/contacts-window.ui
@@ -72,7 +72,7 @@
             <property name="show_close_button">True</property>
             <child>
               <object class="GtkButton" id="edit_button">
-                <property name="visible">True</property>
+                <property name="visible">False</property>
                 <property name="can_focus">True</property>
                 <property name="focus_on_click">False</property>
                 <property name="label" translatable="yes">Edit</property>
@@ -84,7 +84,7 @@
             </child>
             <child>
               <object class="GtkButton" id="done_button">
-                <property name="visible">True</property>
+                <property name="visible">False</property>
                 <property name="can_focus">True</property>
                 <property name="focus_on_click">False</property>
                 <property name="label" translatable="yes">Done</property>
diff --git a/src/contacts-window.vala b/src/contacts-window.vala
index a954443..3f8d633 100644
--- a/src/contacts-window.vala
+++ b/src/contacts-window.vala
@@ -91,10 +91,12 @@ public class Contacts.Window : Gtk.ApplicationWindow {
     var hsize_group = new SizeGroup (SizeGroupMode.HORIZONTAL);
     hsize_group.add_widget (left_toolbar);
     hsize_group.add_widget (child);
+    child.show ();
   }
 
   public void add_right_child (Widget child) {
     right_overlay.add (child);
+    child.show ();
   }
 
   public void add_notification (Widget notification) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]