[gnome-music/freeze-break] Runtime check for libnotify
- From: Vadim Rutkovsky <vrutkovsky src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/freeze-break] Runtime check for libnotify
- Date: Thu, 12 Sep 2013 09:48:08 +0000 (UTC)
commit a09726d0986b8ba2162578b8d38ea1b298d10bae
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date: Thu Sep 12 11:46:14 2013 +0200
Runtime check for libnotify
gnomemusic/notification.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnomemusic/notification.py b/gnomemusic/notification.py
index c17bfc7..6055842 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) > 4:
+ if len(self._notification.add_action.get_arguments()) > 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]