[gnome-music] use version_micro instead of get_arguments.
- From: Arnel A. Borja <arnelborja src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] use version_micro instead of get_arguments.
- Date: Fri, 13 Sep 2013 14:25:20 +0000 (UTC)
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]