[gnome-music] BUG 734513 - adds check to see if play button is focused before changing play state.



commit ee66b5fe27f1a51c681f41fc19247151776996b0
Author: Tina Hinojsa <agustina hinojosa gmail com>
Date:   Tue Nov 11 15:56:41 2014 -0800

    BUG 734513 - adds check to see if play button is focused before changing play state.

 gnomemusic/window.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gnomemusic/window.py b/gnomemusic/window.py
index fcfeea7..dcdf99c 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -335,7 +335,8 @@ class Window(Gtk.ApplicationWindow):
         else:
             if not self.toolbar.searchbar.get_reveal_child():
                 if event.keyval == Gdk.KEY_space and self.player.actionbar.get_visible():
-                    self.player.play_pause()
+                    if self.get_focus() != self.player.playBtn:
+                        self.player.play_pause()
 
     @log
     def _notify_mode_disconnect(self, data=None):


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