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



commit 612d5674988ea0f71f043e10afffc6cf6f6e4e80
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 5a9a995..a2244bf 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -329,7 +329,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]