[gnome-photos] main-toolbar: Clear active item when going back to overview
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos] main-toolbar: Clear active item when going back to overview
- Date: Tue, 13 Nov 2012 01:06:05 +0000 (UTC)
commit 187949edae469c6c2476c59c40da639c579b4711
Author: Debarshi Ray <debarshir gnome org>
Date: Mon Nov 12 23:46:06 2012 +0100
main-toolbar: Clear active item when going back to overview
Original patch from Cosimo Cecchi for gnome-documents.
src/photos-main-toolbar.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-main-toolbar.c b/src/photos-main-toolbar.c
index bc42b1c..9d581f6 100644
--- a/src/photos-main-toolbar.c
+++ b/src/photos-main-toolbar.c
@@ -172,7 +172,10 @@ static void
photos_main_toolbar_back_button_clicked (GtkButton *button, gpointer user_data)
{
PhotosMainToolbar *self = PHOTOS_MAIN_TOOLBAR (user_data);
- photos_mode_controller_set_window_mode (self->priv->mode_cntrlr, PHOTOS_WINDOW_MODE_OVERVIEW);
+ PhotosMainToolbarPrivate *priv = self->priv;
+
+ photos_base_manager_set_active_object (priv->item_mngr, NULL);
+ photos_mode_controller_set_window_mode (priv->mode_cntrlr, PHOTOS_WINDOW_MODE_OVERVIEW);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]