[f-spot] Facebook export: force upload in ascending order
- From: Lorenzo Milesi <lmilesi src gnome org>
- To: svn-commits-list gnome org
- Subject: [f-spot] Facebook export: force upload in ascending order
- Date: Wed, 8 Jul 2009 09:11:50 +0000 (UTC)
commit aee14911fb54b3e108bdbee47aff592a2b5dab2d
Author: Lorenzo Milesi <maxxer yetopen it>
Date: Wed Jul 8 11:08:51 2009 +0200
Facebook export: force upload in ascending order
.../Exporters/FacebookExport/FacebookExport.cs | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/extensions/Exporters/FacebookExport/FacebookExport.cs b/extensions/Exporters/FacebookExport/FacebookExport.cs
index ef973e5..214a0ba 100644
--- a/extensions/Exporters/FacebookExport/FacebookExport.cs
+++ b/extensions/Exporters/FacebookExport/FacebookExport.cs
@@ -303,11 +303,20 @@ namespace FSpot.Exporter.Facebook
dialog.Destroy ();
}
+ private class DateComparer : IComparer
+ {
+ public int Compare (object left, object right)
+ {
+ return DateTime.Compare ((left as IBrowsableItem).Time, (right as IBrowsableItem).Time);
+ }
+ }
+
void Upload ()
{
Album album = null;
IBrowsableItem [] items = dialog.Items;
+ Array.Sort (items, new DateComparer ());
string [] captions = dialog.Captions;
if (dialog.CreateAlbum) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]