[banshee] [NextButton] Fix repeat submenu disappearing



commit dbd0869eb299464ab9e07aacc997f2bbca8ca26b
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Mon Apr 26 13:37:17 2010 -0700

    [NextButton] Fix repeat submenu disappearing
    
    There is an option to add a repeat submenu to the Next button's menu,
    but when the shuffle actions change, that submenu was getting removed.

 .../Banshee.Gui.Widgets/NextButton.cs              |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/NextButton.cs b/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/NextButton.cs
index 1c2f1ed..449c7a0 100644
--- a/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/NextButton.cs
+++ b/src/Core/Banshee.ThickClient/Banshee.Gui.Widgets/NextButton.cs
@@ -38,6 +38,7 @@ namespace Banshee.Gui.Widgets
     {
         PlaybackShuffleActions shuffle_actions;
         Widget button;
+        bool with_repeat_actions;
 
         public NextButton (InterfaceActionService actionService) : this (actionService, false)
         {
@@ -45,10 +46,11 @@ namespace Banshee.Gui.Widgets
 
         public NextButton (InterfaceActionService actionService, bool withRepeatActions)
         {
+            with_repeat_actions = withRepeatActions;
             shuffle_actions = actionService.PlaybackActions.ShuffleActions;
 
             button = actionService.PlaybackActions["NextAction"].CreateToolItem ();
-            var menu = shuffle_actions.CreateMenu (withRepeatActions);
+            var menu = shuffle_actions.CreateMenu (with_repeat_actions);
             Construct (button, menu, true);
 
             TooltipText = actionService.PlaybackActions["NextAction"].Tooltip;
@@ -62,7 +64,7 @@ namespace Banshee.Gui.Widgets
                 Menu.Deactivate ();
             }
 
-            Menu = shuffle_actions.CreateMenu ();
+            Menu = shuffle_actions.CreateMenu (with_repeat_actions);
 
             ToggleButton.Sensitive = shuffle_actions.Sensitive;
             if (Arrow != null) {



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