banshee r3093 - in trunk/banshee: . src/Core/Banshee.ThickClient/Banshee.Gui src/Core/Nereid/Nereid src/Extensions/Banshee.PlayQueue/Banshee.PlayQueue



Author: gburt
Date: Wed Jan 30 01:40:18 2008
New Revision: 3093
URL: http://svn.gnome.org/viewvc/banshee?rev=3093&view=rev

Log:
2008-01-29  Gabriel Burt  <gabriel burt gmail com>

	* src/Core/Banshee.ThickClient/Banshee.Gui/BansheeActionGroup.cs: New Add
	method that takes params ActionEntry [] and sets all the created Actions
	as IsImportant=true so if they are used in the toolbar their text will
	appear.

	* src/Extensions/Banshee.PlayQueue/Banshee.PlayQueue/PlayQueueSource.cs:
	Use new Add(params ActionEntry []) override to add actions.

	* src/Core/Nereid/Nereid/PlayerInterface.cs: Set the toolbar style to
	BothHoriz.

	* src/Core/Banshee.ThickClient/Banshee.Gui/ViewActions.cs:
	* src/Core/Banshee.ThickClient/Banshee.Gui/PlaybackActions.cs: Inherit
	from BansheeActionGroup.


Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/BansheeActionGroup.cs
   trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/PlaybackActions.cs
   trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/ViewActions.cs
   trunk/banshee/src/Core/Nereid/Nereid/PlayerInterface.cs
   trunk/banshee/src/Extensions/Banshee.PlayQueue/Banshee.PlayQueue/PlayQueueSource.cs

Modified: trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/BansheeActionGroup.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/BansheeActionGroup.cs	(original)
+++ trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/BansheeActionGroup.cs	Wed Jan 30 01:40:18 2008
@@ -45,6 +45,15 @@
         {
         }
 
+        public void Add (params ActionEntry [] action_entries)
+        {
+            base.Add (action_entries);
+            
+            foreach (ActionEntry entry in action_entries) {
+                this[entry.name].IsImportant = true;
+            }
+        }
+
         public void UpdateActions (bool visible, bool sensitive, params string [] action_names)
         {
             UpdateActions (visible, sensitive, null, action_names);

Modified: trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/PlaybackActions.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/PlaybackActions.cs	(original)
+++ trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/PlaybackActions.cs	Wed Jan 30 01:40:18 2008
@@ -39,7 +39,7 @@
 
 namespace Banshee.Gui
 {
-    public class PlaybackActions : ActionGroup
+    public class PlaybackActions : BansheeActionGroup
     {
         private InterfaceActionService action_service;
         private Action play_pause_action;

Modified: trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/ViewActions.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/ViewActions.cs	(original)
+++ trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/ViewActions.cs	Wed Jan 30 01:40:18 2008
@@ -37,7 +37,7 @@
 
 namespace Banshee.Gui
 {
-    public class ViewActions : ActionGroup
+    public class ViewActions : BansheeActionGroup
     {
         private InterfaceActionService action_service;
     

Modified: trunk/banshee/src/Core/Nereid/Nereid/PlayerInterface.cs
==============================================================================
--- trunk/banshee/src/Core/Nereid/Nereid/PlayerInterface.cs	(original)
+++ trunk/banshee/src/Core/Nereid/Nereid/PlayerInterface.cs	Wed Jan 30 01:40:18 2008
@@ -138,8 +138,8 @@
             toolbar_alignment.BottomPadding = 3;
             
             header_toolbar = (Toolbar)action_service.UIManager.GetWidget ("/HeaderToolbar");
-            header_toolbar.ToolbarStyle = ToolbarStyle.Icons;
             header_toolbar.ShowArrow = false;
+            header_toolbar.ToolbarStyle = ToolbarStyle.BothHoriz;
             
             toolbar_alignment.Add (header_toolbar);
             toolbar_alignment.ShowAll ();

Modified: trunk/banshee/src/Extensions/Banshee.PlayQueue/Banshee.PlayQueue/PlayQueueSource.cs
==============================================================================
--- trunk/banshee/src/Extensions/Banshee.PlayQueue/Banshee.PlayQueue/PlayQueueSource.cs	(original)
+++ trunk/banshee/src/Extensions/Banshee.PlayQueue/Banshee.PlayQueue/PlayQueueSource.cs	Wed Jan 30 01:40:18 2008
@@ -70,20 +70,20 @@
             ServiceManager.SourceManager.AddSource (this);
             
             InterfaceActionService uia_service = ServiceManager.Get<InterfaceActionService> ();
-            uia_service.TrackActions.Add (new ActionEntry [] {
+            uia_service.TrackActions.Add (
                 new ActionEntry ("AddToPlayQueueAction", Stock.Add,
                     Catalog.GetString ("Add to Play Queue"), null,
                     Catalog.GetString ("Append selected songs to the play queue"),
                     OnAddToPlayQueue)
-            });
+            );
             
             actions = new BansheeActionGroup ("PlayQueueSource");
-            uia_service.GlobalActions.Add (new ActionEntry [] {
+            uia_service.GlobalActions.Add (
                 new ActionEntry ("ClearPlayQueueAction", Stock.Clear,
                     Catalog.GetString ("Clear Play Queue"), null,
                     Catalog.GetString ("Remove all tracks from the play queue"),
                     OnClearPlayQueue)
-            });
+            );
             
             uia_service.UIManager.AddUiFromResource ("GlobalUI.xml");
             



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