[gnome-boxes] collection-view: Reset selection when exiting selection mode
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] collection-view: Reset selection when exiting selection mode
- Date: Mon, 29 Oct 2012 21:35:05 +0000 (UTC)
commit fd040fec490daa2a0fb1f0ae8c9d5320e9411a63
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Wed Oct 24 03:11:05 2012 +0300
collection-view: Reset selection when exiting selection mode
This requires patches to libgd in bug#686832 to work.
https://bugzilla.gnome.org/show_bug.cgi?id=686833
src/collection-view.vala | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/collection-view.vala b/src/collection-view.vala
index ed7c46b..70ba7f3 100644
--- a/src/collection-view.vala
+++ b/src/collection-view.vala
@@ -46,6 +46,8 @@ private class Boxes.CollectionView: Boxes.UI {
setup_view ();
App.app.notify["selection-mode"].connect (() => {
icon_view.set_selection_mode (App.app.selection_mode);
+ if (!App.app.selection_mode)
+ icon_view.unselect_all (); // Reset selection on exiting selection mode
});
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]