[f-spot] More async stuffs
- From: Stephane Delcroix <sdelcroix src gnome org>
- To: svn-commits-list gnome org
- Subject: [f-spot] More async stuffs
- Date: Mon, 29 Jun 2009 12:30:17 +0000 (UTC)
commit 0e3314503350dd4b0974980d2fa26d3289dc2300
Author: Stephane Delcroix <stephane delcroix org>
Date: Mon Jun 29 14:26:25 2009 +0200
More async stuffs
checking the permissions asynchronously too, bump version
.../FacebookExport/FacebookExport.addin.xml | 4 ++--
.../FacebookExport/FacebookExportDialog.cs | 9 ++++++---
2 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/extensions/Exporters/FacebookExport/FacebookExport.addin.xml b/extensions/Exporters/FacebookExport/FacebookExport.addin.xml
index 49f640a..680a44c 100644
--- a/extensions/Exporters/FacebookExport/FacebookExport.addin.xml
+++ b/extensions/Exporters/FacebookExport/FacebookExport.addin.xml
@@ -1,9 +1,9 @@
<Addin namespace="FSpot"
id="FacebookExport"
- version="0.6.0.2"
+ version="0.6.0.3"
name="FacebookExport"
description="Export pictures to facebook"
- author="George Talusan"
+ author="George Talusan, Jim Ramsay, Stephane Delcroix"
url="http://f-spot.org/Extensions"
category="Export"
defaultEnabled="false">
diff --git a/extensions/Exporters/FacebookExport/FacebookExportDialog.cs b/extensions/Exporters/FacebookExport/FacebookExportDialog.cs
index bd87ae2..1f43781 100644
--- a/extensions/Exporters/FacebookExport/FacebookExportDialog.cs
+++ b/extensions/Exporters/FacebookExport/FacebookExportDialog.cs
@@ -209,12 +209,15 @@ namespace FSpot.Exporter.Facebook
else {
log_buttons_hbox.Sensitive = false;
dialog_action_area.Sensitive = false;
+ LoginProgress (0.0, Catalog.GetString ("Authorizing Session"));
ThreadPool.QueueUserWorkItem (delegate {
try {
+ bool perm_offline = account.HasPermission("offline_access");
+ bool perm_upload = photo_perm_check.Active = account.HasPermission("photo_upload");
+
Gtk.Application.Invoke (delegate {
- LoginProgress (0.0, Catalog.GetString ("Authorizing Session"));
- offline_perm_check.Active = account.HasPermission("offline_access");
- photo_perm_check.Active = account.HasPermission("photo_upload");
+ offline_perm_check.Active = perm_offline;
+ photo_perm_check.Active = perm_upload;
LoginProgress (0.2, Catalog.GetString ("Session established, fetching user info..."));
});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]