[totem] main: Disable modes when pressing back button



commit 025d7030b803af5fe7c6cc98277135769dde2d4d
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Jan 31 13:34:35 2014 +0100

    main: Disable modes when pressing back button
    
    We don't want the selection or search modes to continue when
    the back button is pressed.

 src/totem-grilo.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/totem-grilo.c b/src/totem-grilo.c
index 6b380f9..36b1fbd 100644
--- a/src/totem-grilo.c
+++ b/src/totem-grilo.c
@@ -1451,6 +1451,8 @@ totem_grilo_back_button_clicked (TotemGrilo *self)
        g_assert (path);
 
        set_browser_filter_model_for_path (self, NULL);
+       totem_main_toolbar_set_search_mode (TOTEM_MAIN_TOOLBAR (self->priv->header), FALSE);
+       gd_main_view_set_selection_mode (GD_MAIN_VIEW (self->priv->browser), FALSE);
 
        /* Remove all the items at that level */
        if (gtk_tree_model_get_iter (self->priv->browser_model, &iter, path)) {


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