[gnome-contacts] Add tiny delay to window show so we don't see the initial population of the list view
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] Add tiny delay to window show so we don't see the initial population of the list view
- Date: Mon, 22 Aug 2011 11:07:51 +0000 (UTC)
commit 73cefa8bf16360847447231a2859d0e456bfb67b
Author: Alexander Larsson <alexl redhat com>
Date: Mon Aug 22 11:16:48 2011 +0200
Add tiny delay to window show so we don't see the initial population
of the list view
src/main.vala | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/main.vala b/src/main.vala
index e35dfa4..0b99ed6 100644
--- a/src/main.vala
+++ b/src/main.vala
@@ -53,10 +53,14 @@ main (string[] args) {
app.show_individual (individual_id);
if (email_address != null)
app.show_by_email (email_address);
- app.show ();
+
+ // We delay the initial show a tiny bit so most contacts are loaded when we show
+ Timeout.add (100, () => {
+ app.show ();
+ return false;
+ });
Gtk.main ();
return 0;
}
-
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]