[f-spot/FSPOT_0_6_0_STABLE] Facebook export: allow more than 60 pictures per album
- From: Lorenzo Milesi <lmilesi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [f-spot/FSPOT_0_6_0_STABLE] Facebook export: allow more than 60 pictures per album
- Date: Tue, 13 Oct 2009 20:31:59 +0000 (UTC)
commit 6a1557eee30bc8add6bc9991f21387f260365e0d
Author: Lorenzo Milesi <maxxer yetopen it>
Date: Tue Oct 13 22:30:53 2009 +0200
Facebook export: allow more than 60 pictures per album
Fixes bgo #598121.
.../FacebookExport/FacebookExport.addin.xml | 2 +-
.../Exporters/FacebookExport/FacebookExport.cs | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/extensions/Exporters/FacebookExport/FacebookExport.addin.xml b/extensions/Exporters/FacebookExport/FacebookExport.addin.xml
index e660246..40ef2bb 100644
--- a/extensions/Exporters/FacebookExport/FacebookExport.addin.xml
+++ b/extensions/Exporters/FacebookExport/FacebookExport.addin.xml
@@ -1,6 +1,6 @@
<Addin namespace="FSpot"
id="FacebookExport"
- version="0.6.0.6"
+ version="0.6.0.7"
name="FacebookExport"
description="Export pictures to facebook"
author="George Talusan, Jim Ramsay, Stephane Delcroix"
diff --git a/extensions/Exporters/FacebookExport/FacebookExport.cs b/extensions/Exporters/FacebookExport/FacebookExport.cs
index 05f441a..36d7e22 100644
--- a/extensions/Exporters/FacebookExport/FacebookExport.cs
+++ b/extensions/Exporters/FacebookExport/FacebookExport.cs
@@ -260,6 +260,7 @@ namespace FSpot.Exporter.Facebook
public class FacebookExport : IExporter
{
private int size = 604;
+ private int max_photos_per_album = 200;
FacebookExportDialog dialog;
ThreadProgressDialog progress_dialog;
System.Threading.Thread command_thread;
@@ -273,11 +274,11 @@ namespace FSpot.Exporter.Facebook
dialog = new FacebookExportDialog (selection);
- if (selection.Items.Length > 60) {
+ if (selection.Items.Length > max_photos_per_album) {
HigMessageDialog mbox = new HigMessageDialog (dialog,
Gtk.DialogFlags.DestroyWithParent | Gtk.DialogFlags.Modal, Gtk.MessageType.Error,
Gtk.ButtonsType.Ok, Catalog.GetString ("Too many images to export"),
- Catalog.GetString ("Facebook only permits 60 photographs per album. Please refine your selection and try again."));
+ String.Format (Catalog.GetString ("Facebook only permits {0} photographs per album. Please refine your selection and try again."), max_photos_per_album));
mbox.Run ();
mbox.Destroy ();
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]