[gnome-music/gnome-3-12] Don't reveal playertoolbar when space is pressed.



commit 29edf8849cc87cb2fdead5618ea9681381538ffb
Author: Sai Suman Prayaga <suman sai14 gmail com>
Date:   Mon Mar 24 16:43:45 2014 +0530

    Don't reveal playertoolbar when space is pressed.

 gnomemusic/window.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/window.py b/gnomemusic/window.py
index d433332..ce45190 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -288,8 +288,9 @@ class Window(Gtk.ApplicationWindow):
                     GLib.unichar_isprint(chr(Gdk.keyval_to_unicode(event.keyval))):
                 self.toolbar.searchbar.show_bar(True)
         else:
-            if not self.toolbar.searchbar.get_reveal_child() and event.keyval == Gdk.KEY_space:
-                self.player.play_pause()
+            if not self.toolbar.searchbar.get_reveal_child():
+                if event.keyval == Gdk.KEY_space and self.player.eventBox.get_visible():
+                    self.player.play_pause()
 
     def _notify_mode_disconnect(self, data=None):
         self._stack.disconnect(self._on_notify_model_id)


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