[banshee] [Audiobook] Cleanup



commit e889b2022ba4562cb9ae0c1e15b0c4fb71ae8a8d
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Mon May 17 15:48:43 2010 -0700

    [Audiobook] Cleanup

 .../Banshee.Audiobook/AudiobookLibrarySource.cs    |    6 +++---
 .../Banshee.Audiobook/BookView.cs                  |    5 ++---
 2 files changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/src/Extensions/Banshee.Audiobook/Banshee.Audiobook/AudiobookLibrarySource.cs b/src/Extensions/Banshee.Audiobook/Banshee.Audiobook/AudiobookLibrarySource.cs
index 862ae2d..8ee7958 100644
--- a/src/Extensions/Banshee.Audiobook/Banshee.Audiobook/AudiobookLibrarySource.cs
+++ b/src/Extensions/Banshee.Audiobook/Banshee.Audiobook/AudiobookLibrarySource.cs
@@ -102,11 +102,11 @@ namespace Banshee.Audiobook
 
             Properties.SetString ("ActiveSourceUIResource", "ActiveSourceUI.xml");
             Properties.Set<bool> ("ActiveSourceUIResourcePropagate", true);
-            Properties.Set<System.Action> ("ActivationAction", delegate { SwitchToGrid (); });
+            Properties.Set<System.Action> ("ActivationAction", delegate { SwitchToGridView (); });
 
             title_switcher = new Gtk.HBox () { Spacing = 0 };
             var b = new Gtk.Button () { Label = this.Name, Relief = Gtk.ReliefStyle.None };
-            b.Clicked += delegate { SwitchToGrid (); };
+            b.Clicked += delegate { SwitchToGridView (); };
             title_switcher.PackStart (b);
 
             title_switcher.ShowAll ();
@@ -152,7 +152,7 @@ namespace Banshee.Audiobook
             get { return false; }
         }
 
-        private void SwitchToGrid ()
+        internal void SwitchToGridView ()
         {
             var last_book = CurrentViewBook;
             if (last_book != null) {
diff --git a/src/Extensions/Banshee.Audiobook/Banshee.Audiobook/BookView.cs b/src/Extensions/Banshee.Audiobook/Banshee.Audiobook/BookView.cs
index 9d0d895..1adbae4 100644
--- a/src/Extensions/Banshee.Audiobook/Banshee.Audiobook/BookView.cs
+++ b/src/Extensions/Banshee.Audiobook/Banshee.Audiobook/BookView.cs
@@ -73,7 +73,7 @@ namespace Banshee.Audiobook
 
         public BookView ()
         {
-            BuildInfoBox ();
+            BuildWidgets ();
             ShowAll ();
         }
 
@@ -144,7 +144,7 @@ namespace Banshee.Audiobook
 
 #endregion
 
-        private void BuildInfoBox ()
+        private void BuildWidgets ()
         {
             align = new Alignment (0.5f, 0.0f, 0.0f, 0.0f) { BorderWidth = 6 };
             align.TopPadding = 6;
@@ -233,7 +233,6 @@ namespace Banshee.Audiobook
 
             align.Child = hbox;
             Child = align;
-            ShowAll ();
         }
     }
 }



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