[f-spot: 11/14] Show the dialog before DoLogin



commit dcb8c2e054a9b2f819f8eafbe5ea5bc931ccc898
Author: Jim Ramsay <i am jimramsay com>
Date:   Thu Jun 25 11:38:50 2009 -0400

    Show the dialog before DoLogin
    
    This way the fun 'login_progress' indicator will move so it doesn't look like
    f-spot just froze :)

 .../FacebookExport/FacebookExportDialog.cs         |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/extensions/Exporters/FacebookExport/FacebookExportDialog.cs b/extensions/Exporters/FacebookExport/FacebookExportDialog.cs
index 27c266a..d997ee8 100644
--- a/extensions/Exporters/FacebookExport/FacebookExportDialog.cs
+++ b/extensions/Exporters/FacebookExport/FacebookExportDialog.cs
@@ -95,10 +95,16 @@ namespace FSpot.Exporter.Facebook
 			caption_textview.Sensitive = false;
 
 			DoLogout ();
+		}
+
+		public int Run () {
+			this.Show ();
+			while (Application.EventsPending ()) Application.RunIteration ();
 
 			account = new FacebookAccount();
 			if (account.Authenticated)
 				DoLogin ();
+			return ((Dialog)this).Run ();
 		}
 
 		FacebookAccount account;



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