[f-spot/FSPOT_0_6_0_STABLE] add a LinkButton to the f-spot group page



commit 7e38e854cdbf06cceda6a297a91198dc1f4bae56
Author: Stephane Delcroix <stephane delcroix org>
Date:   Mon Nov 2 10:43:55 2009 +0100

    add a LinkButton to the f-spot group page

 .../FacebookExport/FacebookExport.addin.xml        |    4 ++--
 .../Exporters/FacebookExport/FacebookExport.cs     |    4 ++++
 src/FSpot.addin.xml                                |    2 +-
 src/UI.Dialog/ThreadProgressDialog.cs              |   20 ++++++++++++++++++++
 4 files changed, 27 insertions(+), 3 deletions(-)
---
diff --git a/extensions/Exporters/FacebookExport/FacebookExport.addin.xml b/extensions/Exporters/FacebookExport/FacebookExport.addin.xml
index 80f9dee..612dea3 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.8"
+	version="0.6.0.9"
 	name="FacebookExport"
 	description="Export pictures to facebook"
 	author="George Talusan, Jim Ramsay, Stephane Delcroix"
@@ -8,7 +8,7 @@
 	category="Export"
 	defaultEnabled="false">
 	<Dependencies>
-		<Addin id="Core" version="0.6"/>
+		<Addin id="Core" version="0.6.1.5"/>
 	</Dependencies>
 	<Extension path = "/FSpot/Menus/Exports">
 		<ExportMenuItem id="Facebook" _label = "F_acebook..." class = "FSpot.Exporter.Facebook.FacebookExport" />
diff --git a/extensions/Exporters/FacebookExport/FacebookExport.cs b/extensions/Exporters/FacebookExport/FacebookExport.cs
index 36d7e22..bcd894b 100644
--- a/extensions/Exporters/FacebookExport/FacebookExport.cs
+++ b/extensions/Exporters/FacebookExport/FacebookExport.cs
@@ -381,6 +381,10 @@ namespace FSpot.Exporter.Facebook
 			progress_dialog.Fraction = 1.0;
 			progress_dialog.ProgressText = Catalog.GetString ("Upload Complete");
 			progress_dialog.ButtonLabel = Gtk.Stock.Ok;
+
+			var li = new LinkButton ("http://www.facebook.com/group.php?gid=158960179844&ref=mf";, Catalog.GetString ("Visit F-Spot group on Facebook"));
+			progress_dialog.VBoxPackEnd (li);
+			li.ShowAll ();
 		}
 	}
 }
diff --git a/src/FSpot.addin.xml b/src/FSpot.addin.xml
index d10c986..e75b561 100644
--- a/src/FSpot.addin.xml
+++ b/src/FSpot.addin.xml
@@ -1,6 +1,6 @@
 <Addin namespace = "FSpot" 
        id = "Core" 
-       version = "0.6.0.1"
+       version = "0.6.1.5"
        compatVersion = "0.6"
        isroot="true">
 
diff --git a/src/UI.Dialog/ThreadProgressDialog.cs b/src/UI.Dialog/ThreadProgressDialog.cs
index d41087e..273321b 100644
--- a/src/UI.Dialog/ThreadProgressDialog.cs
+++ b/src/UI.Dialog/ThreadProgressDialog.cs
@@ -12,6 +12,9 @@
 
 using System;
 using System.Threading;
+using System.Collections.Generic;
+
+using Gtk;
 
 namespace FSpot.UI.Dialog {
 	public class ThreadProgressDialog : Gtk.Dialog {
@@ -111,6 +114,17 @@ namespace FSpot.UI.Dialog {
 			}
 		}
 
+		List<Widget> widgets;
+		public void VBoxPackEnd (Widget w)
+		{
+			if (widgets == null)
+				widgets = new List<Widget> ();
+			lock (syncHandle) {
+				widgets.Add (w);
+				delay.Start ();
+			}
+		}
+
 		internal void SetProperties (string progress_text, string button_label, string message, double fraction)
 		{
 			lock (syncHandle) {
@@ -156,6 +170,12 @@ namespace FSpot.UI.Dialog {
 			button.Label = button_label;
 			retry_button.Visible = skip_button.Visible = retry_skip;
 
+			if (widgets != null && widgets.Count > 0) {
+				foreach (var w in widgets)
+					VBox.PackEnd (w);
+				widgets.Clear ();
+			}
+
 			return false;
 		}
 



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