[gnome-music/wip/jfelder/fix-playbackstatus-widgets: 3/3] artistalbumalbumwidget: Use Playback enum
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/fix-playbackstatus-widgets: 3/3] artistalbumalbumwidget: Use Playback enum
- Date: Thu, 22 Mar 2018 10:34:10 +0000 (UTC)
commit 1d1af6bd0b1ad6f827e29cd3958b08de168f928e
Author: Jean Felder <jfelder src gnome org>
Date: Thu Mar 22 11:28:19 2018 +0100
artistalbumalbumwidget: Use Playback enum
gnomemusic/widgets/artistalbumwidget.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gnomemusic/widgets/artistalbumwidget.py b/gnomemusic/widgets/artistalbumwidget.py
index f679671c..c0b471e7 100644
--- a/gnomemusic/widgets/artistalbumwidget.py
+++ b/gnomemusic/widgets/artistalbumwidget.py
@@ -27,6 +27,7 @@ from gi.repository import GObject, Gtk
from gnomemusic import log
from gnomemusic.albumartcache import Art
from gnomemusic.grilo import grilo
+from gnomemusic.gstplayer import Playback
from gnomemusic.widgets.coverstack import CoverStack
from gnomemusic.widgets.disclistboxwidget import DiscBox
import gnomemusic.utils as utils
@@ -130,7 +131,7 @@ class ArtistAlbumWidget(Gtk.Box):
self._selection_mode = False
self._disc_listbox.set_selection_mode(False)
self._header_bar.set_selection_mode(False)
- if(self._player.get_playback_status() != 2):
+ if self._player.get_playback_status() != Playback.STOPPED:
self._player.actionbar.set_visible(True)
@log
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]