diff options
author | Lluis Sanchez Gual <lluis@novell.com> | 2011-04-04 21:36:26 +0400 |
---|---|---|
committer | Lluis Sanchez Gual <lluis@novell.com> | 2011-04-04 21:36:26 +0400 |
commit | 40158811551f5b8c58acb7dc96c1787e4aad6920 (patch) | |
tree | 1fac286fd31a9298b54883a095e66e273c69ab64 /Mono.Addins.Gui | |
parent | d71ab8378c703aacaa12d8e58f3b42498e58ae04 (diff) |
Show the last version of all add-ins, hide old versions
Diffstat (limited to 'Mono.Addins.Gui')
-rw-r--r-- | Mono.Addins.Gui/Mono.Addins.Gui/AddinManagerDialog.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Mono.Addins.Gui/Mono.Addins.Gui/AddinManagerDialog.cs b/Mono.Addins.Gui/Mono.Addins.Gui/AddinManagerDialog.cs index fcf2ef0..fc04f96 100644 --- a/Mono.Addins.Gui/Mono.Addins.Gui/AddinManagerDialog.cs +++ b/Mono.Addins.Gui/Mono.Addins.Gui/AddinManagerDialog.cs @@ -159,7 +159,7 @@ namespace Mono.Addins.Gui filterEntry = new SearchEntry (); filterEntry.Entry.SetSizeRequest (200, filterEntry.Entry.SizeRequest ().Height); filterEntry.Parent = notebook; - filterEntry.Show (); + filterEntry.ShowAll (); notebook.SizeAllocated += delegate { RepositionFilter (); }; @@ -223,7 +223,7 @@ namespace Mono.Addins.Gui int count = 0; tree.Clear (); - foreach (Addin ainfo in AddinManager.Registry.GetAddins ()) { + foreach (Addin ainfo in AddinManager.Registry.GetModules (AddinSearchFlags.IncludeAddins | AddinSearchFlags.LatestVersionsOnly)) { if (Services.InApplicationNamespace (service, ainfo.Id) && !ainfo.Description.IsHidden) { AddinHeader ah = SetupService.GetAddinHeader (ainfo); if (IsFiltered (ah)) @@ -285,9 +285,9 @@ namespace Mono.Addins.Gui AddinRepositoryEntry[] reps; if (rep == AllRepoMarker) - reps = service.Repositories.GetAvailableAddins (); + reps = service.Repositories.GetAvailableAddins (RepositorySearchFlags.LatestVersionsOnly); else - reps = service.Repositories.GetAvailableAddins (rep); + reps = service.Repositories.GetAvailableAddins (rep, RepositorySearchFlags.LatestVersionsOnly); int count = 0; @@ -333,7 +333,7 @@ namespace Mono.Addins.Gui updatesTree.Clear (); AddinRepositoryEntry[] reps; - reps = service.Repositories.GetAvailableAddins (); + reps = service.Repositories.GetAvailableAddins (RepositorySearchFlags.LatestVersionsOnly); int count = 0; @@ -344,7 +344,7 @@ namespace Mono.Addins.Gui // Find whatever version is installed Addin sinfo = AddinManager.Registry.GetAddin (Addin.GetIdName (arep.Addin.Id)); - if (sinfo == null || Addin.CompareVersions (sinfo.Version, arep.Addin.Version) <= 0) + if (sinfo == null || !sinfo.Enabled || Addin.CompareVersions (sinfo.Version, arep.Addin.Version) <= 0) continue; if (IsFiltered (arep.Addin)) |