[gnome-contacts] Use quiescent rather than timeout to know when to initially show window



commit 7854acb481cf415bb0c68aa2d400f77820a0ce90
Author: Alexander Larsson <alexl redhat com>
Date:   Mon Sep 5 11:47:22 2011 +0200

    Use quiescent rather than timeout to know when to initially show window

 src/contacts-app.vala |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/contacts-app.vala b/src/contacts-app.vala
index d896eaa..49dd888 100644
--- a/src/contacts-app.vala
+++ b/src/contacts-app.vala
@@ -122,9 +122,8 @@ public class Contacts.App : Gtk.Application {
       create_window ();
 
       // We delay the initial show a tiny bit so most contacts are loaded when we show
-      Timeout.add (100, () => {
+      contacts_store.quiescent.connect (() => {
 	  app.window.show ();
-	  return false;
 	});
     } else {
       window.present ();



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