[banshee: 26/61] [InternetArchive] Rename Source to SearchSource



commit 3339392685c6112b2bfba2eba4845bd1ae7de9da
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Sun Oct 11 16:14:58 2009 -0700

    [InternetArchive] Rename Source to SearchSource

 .../Banshee.InternetArchive.addin.xml              |    2 +-
 .../Banshee.InternetArchive/Actions.cs             |    2 +-
 .../Banshee.InternetArchive/DetailsSource.cs       |    2 +-
 .../Banshee.InternetArchive/HeaderFilters.cs       |    4 ++--
 .../{Source.cs => SearchSource.cs}                 |   10 +++++-----
 src/Extensions/Banshee.InternetArchive/Makefile.am |    4 ++--
 .../Resources/DetailsSourceActiveUI.xml            |    2 +-
 ...ActiveSourceUI.xml => SearchSourceActiveUI.xml} |    2 +-
 8 files changed, 14 insertions(+), 14 deletions(-)
---
diff --git a/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive.addin.xml b/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive.addin.xml
index d974d7f..c166a31 100644
--- a/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive.addin.xml
+++ b/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive.addin.xml
@@ -17,6 +17,6 @@
   </Dependencies>
 
   <Extension path="/Banshee/SourceManager/Source">
-    <Source class="Banshee.InternetArchive.Source"/>
+    <Source class="Banshee.InternetArchive.SearchSource"/>
   </Extension>
 </Addin>
diff --git a/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/Actions.cs b/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/Actions.cs
index 198fa25..b38363d 100644
--- a/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/Actions.cs
+++ b/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/Actions.cs
@@ -39,7 +39,7 @@ namespace Banshee.InternetArchive
 {
     public class Actions : Banshee.Gui.BansheeActionGroup
     {
-        public Actions (Source source) : base ("InternetArchive")
+        public Actions (SearchSource source) : base ("InternetArchive")
         {
             Add (
                 new ActionEntry ("ViewItemDetails", null, Catalog.GetString ("View Item Details"), null, null, (o, a) => {
diff --git a/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/DetailsSource.cs b/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/DetailsSource.cs
index fedb3c2..37e7bd9 100644
--- a/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/DetailsSource.cs
+++ b/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/DetailsSource.cs
@@ -69,7 +69,7 @@ namespace Banshee.InternetArchive
             track_model.Reloaded += delegate { OnUpdated (); };
 
             Properties.SetString ("ActiveSourceUIResource", "DetailsSourceActiveUI.xml");
-            Properties.SetString ("GtkActionPath", "/InternetArchiveDetailsContextMenu");
+            Properties.SetString ("GtkActionPath", "/IaDetailsSourcePopup");
 
             Properties.Set<Gtk.Widget> ("Nereid.SourceContents", new DetailsSourceContents (this, item));
         }
diff --git a/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/HeaderFilters.cs b/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/HeaderFilters.cs
index db681b4..0fbb657 100644
--- a/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/HeaderFilters.cs
+++ b/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/HeaderFilters.cs
@@ -39,13 +39,13 @@ namespace Banshee.InternetArchive
 {
     public class HeaderFilters : HBox
     {
-        private Source source;
+        private SearchSource source;
 
         private ComboBox sort_combo, media_type_combo;
         private TreeStore media_type_store;
         private Banshee.Widgets.SearchEntry search_entry;
 
-        public HeaderFilters (Source source)
+        public HeaderFilters (SearchSource source)
         {
             this.source = source;
 
diff --git a/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/Source.cs b/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/SearchSource.cs
similarity index 97%
rename from src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/Source.cs
rename to src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/SearchSource.cs
index 710f559..93f3b53 100644
--- a/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/Source.cs
+++ b/src/Extensions/Banshee.InternetArchive/Banshee.InternetArchive/SearchSource.cs
@@ -1,5 +1,5 @@
 //
-// Source.cs
+// SearchSource.cs
 //
 // Authors:
 //   Gabriel Burt <gburt novell com>
@@ -53,7 +53,7 @@ using IA=InternetArchive;
 
 namespace Banshee.InternetArchive
 {
-    public class Source : Banshee.Sources.PrimarySource
+    public class SearchSource : Banshee.Sources.PrimarySource
     {
         private static string name = Catalog.GetString ("Internet Archive");
 
@@ -64,7 +64,7 @@ namespace Banshee.InternetArchive
 
         public IA.Search Search { get { return search; } }
 
-        public Source () : base (name, name, "internet-archive", 190)
+        public SearchSource () : base (name, name, "internet-archive", 190)
         {
             IA.Search.UserAgent = Banshee.Web.Browser.UserAgent;
             IA.Search.TimeoutMs = 12*1000;
@@ -114,8 +114,8 @@ namespace Banshee.InternetArchive
                 Catalog.GetString ("Description"), Catalog.GetString ("Publisher")
             ));
 
-            Properties.SetString ("ActiveSourceUIResource", "ActiveSourceUI.xml");
-            Properties.SetString ("GtkActionPath", "/InternetArchiveContextMenu");
+            Properties.SetString ("ActiveSourceUIResource", "SearchSourceActiveUI.xml");
+            Properties.SetString ("GtkActionPath", "/IaSearchSourcePopup");
 
             actions = new Actions (this);
 
diff --git a/src/Extensions/Banshee.InternetArchive/Makefile.am b/src/Extensions/Banshee.InternetArchive/Makefile.am
index 7db34d2..3aca9d4 100644
--- a/src/Extensions/Banshee.InternetArchive/Makefile.am
+++ b/src/Extensions/Banshee.InternetArchive/Makefile.am
@@ -8,7 +8,7 @@ SOURCES = \
 	Banshee.InternetArchive/DetailsSource.cs \
 	Banshee.InternetArchive/DetailsSourceContents.cs \
 	Banshee.InternetArchive/HeaderFilters.cs \
-	Banshee.InternetArchive/Source.cs \
+	Banshee.InternetArchive/SearchSource.cs \
 	InternetArchive/Collection.cs \
 	InternetArchive/Details.cs \
 	InternetArchive/DetailsFile.cs \
@@ -24,7 +24,7 @@ SOURCES = \
 
 RESOURCES = \
 	Banshee.InternetArchive.addin.xml \
-	Resources/ActiveSourceUI.xml \
+	Resources/SearchSourceActiveUI.xml \
 	Resources/DetailsSourceActiveUI.xml
 
 include $(top_srcdir)/build/build.mk
diff --git a/src/Extensions/Banshee.InternetArchive/Resources/DetailsSourceActiveUI.xml b/src/Extensions/Banshee.InternetArchive/Resources/DetailsSourceActiveUI.xml
index 1e82ac8..33b5ddd 100644
--- a/src/Extensions/Banshee.InternetArchive/Resources/DetailsSourceActiveUI.xml
+++ b/src/Extensions/Banshee.InternetArchive/Resources/DetailsSourceActiveUI.xml
@@ -5,7 +5,7 @@
     </placeholder>
   </toolbar>
 
-  <popup action="InternetArchiveDetailsContextMenu">
+  <popup action="IaDetailsSourcePopup">
     <menuitem action="VisitInternetArchive" />
   </popup>
 
diff --git a/src/Extensions/Banshee.InternetArchive/Resources/ActiveSourceUI.xml b/src/Extensions/Banshee.InternetArchive/Resources/SearchSourceActiveUI.xml
similarity index 96%
rename from src/Extensions/Banshee.InternetArchive/Resources/ActiveSourceUI.xml
rename to src/Extensions/Banshee.InternetArchive/Resources/SearchSourceActiveUI.xml
index 37b9fdc..0caf3bd 100644
--- a/src/Extensions/Banshee.InternetArchive/Resources/ActiveSourceUI.xml
+++ b/src/Extensions/Banshee.InternetArchive/Resources/SearchSourceActiveUI.xml
@@ -20,7 +20,7 @@
     </menu>
   </menubar>
 
-  <popup action="InternetArchiveContextMenu">
+  <popup action="IaSearchSourcePopup">
     <menuitem action="VisitInternetArchive" />
   </popup>
 



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