banshee r3279 - in trunk/banshee: . src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea



Author: abock
Date: Wed Feb 20 01:06:19 2008
New Revision: 3279
URL: http://svn.gnome.org/viewvc/banshee?rev=3279&view=rev

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

    * src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/NotificationAreaService.cs:
    Added the skip song feature back



Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/NotificationAreaService.cs

Modified: trunk/banshee/src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/NotificationAreaService.cs
==============================================================================
--- trunk/banshee/src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/NotificationAreaService.cs	(original)
+++ trunk/banshee/src/Extensions/Banshee.NotificationArea/Banshee.NotificationArea/NotificationAreaService.cs	Wed Feb 20 01:06:19 2008
@@ -344,11 +344,21 @@
                     message, image, notif_area.Widget);
                 nf.Urgency = Urgency.Low;
                 nf.Timeout = 4500;
+                if (interface_action_service.PlaybackActions["NextAction"].Sensitive) {
+                    nf.AddAction ("skip-song", Catalog.GetString("Play next song"), OnSongSkipped);
+                }
                 nf.Show ();
                 
                 current_nf = nf;
             } catch (Exception e) {
-                Hyena.Log.Warning (Catalog.GetString ("Cannot show notification"), e.Message);
+                Hyena.Log.Warning (Catalog.GetString ("Cannot show notification"), e.Message, false);
+            }
+        }
+        
+        private void OnSongSkipped (object o, ActionArgs args)
+        {
+            if (args.Action == "skip-song") {
+                ServiceManager.PlaybackController.Next ();
             }
         }
         



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