[gnome-music] use version_micro instead of get_arguments.



commit f204cd496ba460892b63d303e5fb2e2bfece4d7d
Author: Sai <suman sai14 gmail com>
Date:   Fri Sep 13 17:58:13 2013 +0530

    use version_micro instead of get_arguments.

 gnomemusic/notification.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnomemusic/notification.py b/gnomemusic/notification.py
index 6055842..e30ab07 100644
--- a/gnomemusic/notification.py
+++ b/gnomemusic/notification.py
@@ -121,7 +121,7 @@ class NotificationManager:
     def _set_actions(self, playing):
         self._notification.clear_actions()
 
-        if len(self._notification.add_action.get_arguments()) > 5:
+        if (Notify.VERSION_MINOR > 7) or (Notify.VERSION_MINOR == 7 and Notify.VERSION_MICRO > 5):
             self._notification.add_action('media-skip-backward', _("Previous"),
                                           self._go_previous, None)
             if playing:


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