banshee r3197 - in trunk/banshee: . src src/Core/Banshee.ThickClient/Banshee.Gui src/Dap src/Dap/Banshee.Dap.MassStorage src/Dap/Banshee.DapCore



Author: abock
Date: Sat Feb  9 23:54:45 2008
New Revision: 3197
URL: http://svn.gnome.org/viewvc/banshee?rev=3197&view=rev

Log:
2008-02-09  Aaron Bockover  <abock gnome org>

    * src/Core/Banshee.ThickClient/Banshee.Gui/SourceActions.cs: Do not
    show the 'sort children' menu item if the source does not have children
    (thanks Scott)



Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/   (props changed)
   trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/SourceActions.cs
   trunk/banshee/src/Dap/   (props changed)
   trunk/banshee/src/Dap/Banshee.Dap.MassStorage/   (props changed)
   trunk/banshee/src/Dap/Banshee.DapCore/   (props changed)

Modified: trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/SourceActions.cs
==============================================================================
--- trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/SourceActions.cs	(original)
+++ trunk/banshee/src/Core/Banshee.ThickClient/Banshee.Gui/SourceActions.cs	Sat Feb  9 23:54:45 2008
@@ -234,6 +234,10 @@
                 UpdateAction ("SourcePropertiesAction", source.HasProperties, true, source);
                 last_source = source;
             }
+            
+            if (source != null) {
+                UpdateAction ("SortChildrenAction", source.Children.Count > 0, true, null);
+            }
         }
 
         private static bool ConfirmUnmap(IUnmapableSource source)



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