summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2014-01-31 13:34:35 +0100
committerBastien Nocera <hadess@hadess.net>2014-01-31 13:37:48 +0100
commit025d7030b803af5fe7c6cc98277135769dde2d4d (patch)
tree5de11e0191dafbbc4a30683a4f72c4ad24e56d6d
parent33ad1248b986030be9e9c0d81861eb7fb5ce1d0b (diff)
downloadtotem-025d7030b803af5fe7c6cc98277135769dde2d4d.tar.gz
main: Disable modes when pressing back button
We don't want the selection or search modes to continue when the back button is pressed.
-rw-r--r--src/totem-grilo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/totem-grilo.c b/src/totem-grilo.c
index 6b380f95f..36b1fbd5a 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)) {