[gnome-music] Don't reveal playertoolbar when space is pressed.
- From: Vadim Rutkovsky <vrutkovsky src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] Don't reveal playertoolbar when space is pressed.
- Date: Mon, 24 Mar 2014 12:04:29 +0000 (UTC)
commit 539945f650af0c51a183487b16635c2c27e59a15
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 ff710a8..4f10344 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]