GNOME Bugzilla – Bug 773884
show previous/next button for media controls only if there is one.
Last modified: 2017-03-01 10:02:04 UTC
The media controls in notification always show previous/next buttons irrespective of whether it's possible or not. It would be nice if these buttons are shown only if there is some previous/next item to play, or else fading out those buttons
Created attachment 339057 [details] [review] mpris: Hide forward/backward controls when unavailable Media notifications currently always show the forward and backward buttons, regardless of whether the corresponding action is available or not. While this is consistent with most media players, we don't have the concept of insensitive controls in notifications, so hide them completely when the corresponding action is not available.
Making the button insensitive would be better than hiding it, but hiding seems OK.
*** Bug 778817 has been marked as a duplicate of this bug. ***
Review of attachment 339057 [details] [review]: lgtm
Created attachment 346869 [details] [review] mpris: Make forward/backward insensitive when unavailable With the style changes in bug 775763 (namely removing the background in normal state), making unavailable controls insensitive works quite well in my opinion. So here's the preferred alternative to hiding ...
Review of attachment 346869 [details] [review]: sure
Attachment 346869 [details] pushed as 1981652 - mpris: Make forward/backward insensitive when unavailable