[f-spot] Remove addins.f-spot.org addin repo.
- From: Ruben Vermeersch <rubenv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [f-spot] Remove addins.f-spot.org addin repo.
- Date: Thu, 8 Jul 2010 10:40:24 +0000 (UTC)
commit 3fdeed2821eab8f6f2605fcdf3747e4f446e9f29
Author: Ruben Vermeersch <ruben savanne be>
Date: Thu Jul 8 12:39:32 2010 +0200
Remove addins.f-spot.org addin repo.
Not used anymore. Slight cleanups.
src/main.cs | 30 ++++++++++++++++--------------
1 files changed, 16 insertions(+), 14 deletions(-)
---
diff --git a/src/main.cs b/src/main.cs
index 0de0f29..52e3323 100644
--- a/src/main.cs
+++ b/src/main.cs
@@ -242,20 +242,7 @@ namespace FSpot
return 1;
}
- // Initialize Mono.Addins
- uint timer = Log.InformationTimerStart ("Initializing Mono.Addins");
- AddinManager.Initialize (FSpot.Global.BaseDirectory);
- AddinManager.Registry.Update (null);
- SetupService setupService = new SetupService (AddinManager.Registry);
- string maj_version = String.Join (".", Defines.VERSION.Split ('.'), 0, 3);
- foreach (AddinRepository repo in setupService.Repositories.GetRepositories ())
- if (repo.Url.StartsWith ("http://addins.f-spot.org/") && !repo.Url.StartsWith ("http://addins.f-spot.org/" + maj_version)) {
- Log.InformationFormat ("Unregistering {0}", repo.Url);
- setupService.Repositories.RemoveRepository (repo.Url);
- }
- setupService.Repositories.RegisterRepository (null, "http://addins.f-spot.org/" + maj_version, false);
- Log.DebugTimerPrint (timer, "Mono.Addins Initialization took {0}");
-
+ InitializeAddins ();
// Gtk initialization
Gtk.Application.Init (Defines.PACKAGE, ref args);
@@ -286,6 +273,21 @@ namespace FSpot
return 0;
}
+ static void InitializeAddins ()
+ {
+ uint timer = Log.InformationTimerStart ("Initializing Mono.Addins");
+ AddinManager.Initialize (FSpot.Global.BaseDirectory);
+ AddinManager.Registry.Update (null);
+ SetupService setupService = new SetupService (AddinManager.Registry);
+ foreach (AddinRepository repo in setupService.Repositories.GetRepositories ()) {
+ if (repo.Url.StartsWith ("http://addins.f-spot.org/")) {
+ Log.InformationFormat ("Unregistering {0}", repo.Url);
+ setupService.Repositories.RemoveRepository (repo.Url);
+ }
+ }
+ Log.DebugTimerPrint (timer, "Mono.Addins Initialization took {0}");
+ }
+
static void Startup ()
{
if (ApplicationContext.CommandLine.Contains ("slideshow"))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]