[f-spot: 12/14] Populate the existing album combobox.
- From: Ruben Vermeersch <rubenv src gnome org>
- To: svn-commits-list gnome org
- Subject: [f-spot: 12/14] Populate the existing album combobox.
- Date: Sun, 28 Jun 2009 12:53:49 +0000 (UTC)
commit 56574a77bd6b65b3bfb6201a0bff80252cca367b
Author: Jim Ramsay <i am jimramsay com>
Date: Thu Jun 25 12:27:36 2009 -0400
Populate the existing album combobox.
.../Exporters/FacebookExport/FacebookExport.cs | 18 ---------------
.../FacebookExport/FacebookExportDialog.cs | 24 +++++++++++++++++--
2 files changed, 21 insertions(+), 21 deletions(-)
---
diff --git a/extensions/Exporters/FacebookExport/FacebookExport.cs b/extensions/Exporters/FacebookExport/FacebookExport.cs
index d553965..bd931fd 100644
--- a/extensions/Exporters/FacebookExport/FacebookExport.cs
+++ b/extensions/Exporters/FacebookExport/FacebookExport.cs
@@ -225,24 +225,6 @@ namespace FSpot.Exporter.Facebook
}
}
- internal class AlbumStore : ListStore
- {
- private Album[] _albums;
-
- public AlbumStore (Album[] albums) : base (typeof (string))
- {
- _albums = albums;
-
- foreach (Album album in Albums)
- AppendValues (album.Name);
- }
-
- public Album[] Albums
- {
- get { return _albums; }
- }
- }
-
internal class TagStore : ListStore
{
private List<Mono.Facebook.Tag> _tags;
diff --git a/extensions/Exporters/FacebookExport/FacebookExportDialog.cs b/extensions/Exporters/FacebookExport/FacebookExportDialog.cs
index d997ee8..ba28a78 100644
--- a/extensions/Exporters/FacebookExport/FacebookExportDialog.cs
+++ b/extensions/Exporters/FacebookExport/FacebookExportDialog.cs
@@ -87,7 +87,8 @@ namespace FSpot.Exporter.Facebook
existing_album_radiobutton.Toggled += HandleExistingAlbumToggled;
CellRendererText cell = new CellRendererText ();
- existing_album_combobox.PackStart (cell, false);
+ existing_album_combobox.PackStart (cell, true);
+ existing_album_combobox.SetAttributes (cell, "text", 0);
tag_image_eventbox.ButtonPressEvent += HandleTagImageButtonPressEvent;
@@ -242,8 +243,7 @@ namespace FSpot.Exporter.Facebook
LoginProgress (0.8, Catalog.GetString ("Session established, fetching photo albums..."));
Album[] albums = account.Facebook.GetAlbums ();
- AlbumStore store = new AlbumStore (albums);
- existing_album_combobox.Model = store;
+ existing_album_combobox.Model = new AlbumStore (albums);
existing_album_combobox.Active = 0;
album_info_vbox.Sensitive = true;
@@ -377,7 +377,25 @@ namespace FSpot.Exporter.Facebook
Log.Debug (message);
while (Application.EventsPending ()) Application.RunIteration ();
}
+ }
+
+ internal class AlbumStore : ListStore
+ {
+ private Album[] _albums;
+
+ public AlbumStore (Album[] albums) : base (typeof (string))
+ {
+ _albums = albums;
+ foreach (Album album in Albums) {
+ AppendValues (album.Name);
+ }
+ }
+ public Album[] Albums
+ {
+ get { return _albums; }
+ }
}
+
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]