[banshee/stable-1.6] [NextButton] Fix repeat submenu disappearing
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee/stable-1.6] [NextButton] Fix repeat submenu disappearing
- Date: Mon, 26 Apr 2010 20:43:45 +0000 (UTC)
commit c6bcd2f16fd4366c00c6d49b073bda0a99bb7a6a
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]