[gnome-contacts] Wait at least 0.5 seconds for a quiescent state before showing window
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] Wait at least 0.5 seconds for a quiescent state before showing window
- Date: Tue, 6 Sep 2011 11:49:40 +0000 (UTC)
commit 46ecf4bdc80a5f5cf48aa6a38ed09f65acbc3d3a
Author: Alexander Larsson <alexl redhat com>
Date: Tue Sep 6 12:26:18 2011 +0200
Wait at least 0.5 seconds for a quiescent state before showing window
This is required right now as quiescent is kinda broken, but it also
makes sense in case some store is very very slow.
src/contacts-app.vala | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/contacts-app.vala b/src/contacts-app.vala
index 49dd888..4fb3232 100644
--- a/src/contacts-app.vala
+++ b/src/contacts-app.vala
@@ -125,6 +125,11 @@ public class Contacts.App : Gtk.Application {
contacts_store.quiescent.connect (() => {
app.window.show ();
});
+ // Wait at most 0.5 seconds to show the window
+ Timeout.add (500, () => {
+ app.window.show ();
+ return false;
+ });
} else {
window.present ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]