[totem] main: Only control playback when in the player



commit a055b07e50a3dfece43f2985726c2add50bf5fcd
Author: Bastien Nocera <hadess hadess net>
Date:   Mon May 6 14:49:14 2013 +0200

    main: Only control playback when in the player

 libgd              |    2 +-
 src/totem-object.c |    4 ++++
 2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/libgd b/libgd
index bda4b2c..572fcf4 160000
--- a/libgd
+++ b/libgd
@@ -1 +1 @@
-Subproject commit bda4b2cd115de3780136c17a8efd49e609914482
+Subproject commit 572fcf471c8d521ddbff7dab5be08450ec15c995
diff --git a/src/totem-object.c b/src/totem-object.c
index 675ce69..43aedfe 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -3480,6 +3480,10 @@ window_key_press_event_cb (GtkWidget *win, GdkEventKey *event, TotemObject *tote
        if (totem->disable_kbd_shortcuts != FALSE)
                return FALSE;
 
+       /* Check whether we're in the browse panel */
+       if (!g_str_equal (gtk_stack_get_visible_child_name (GTK_STACK (totem->stack)), "player"))
+               return FALSE;
+
        /* Check whether the sidebar needs the key events */
        if (event->type == GDK_KEY_PRESS) {
                if (totem_sidebar_is_focused (totem, &sidebar_handles_kbd) != FALSE) {


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