[totem] main: Use totem_object_get_main_page()



commit 10501eaf87334ba0246af5142df9b1fb38414256
Author: Bastien Nocera <hadess hadess net>
Date:   Wed May 22 17:50:12 2013 +0200

    main: Use totem_object_get_main_page()

 src/totem-object.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/totem-object.c b/src/totem-object.c
index a063699..ab8e351 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -3555,11 +3555,9 @@ 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")) {
-               //FIXME do the dance to show the search bar when grilo is shown
+       /* Check whether we're in the player panel */
+       if (!g_str_equal (totem_object_get_main_page (totem), "player"))
                return FALSE;
-       }
 
        /* Check whether the sidebar needs the key events */
        if (event->type == GDK_KEY_PRESS) {


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