[baobab/wip/new-design] Wire up the 'volume-removed' signal



commit 0e4c56d43896b2f2e77cb9b9b7d690ec7f1eeeaa
Author: Stefano Facchini <stefano facchini gmail com>
Date:   Wed Apr 4 13:36:44 2012 +0200

    Wire up the 'volume-removed' signal

 src/baobab-location-monitor.vala |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/baobab-location-monitor.vala b/src/baobab-location-monitor.vala
index 2e64d98..2476164 100644
--- a/src/baobab-location-monitor.vala
+++ b/src/baobab-location-monitor.vala
@@ -28,6 +28,14 @@ namespace Baobab {
 
 		void volume_removed (Volume volume) {
 			print ("Vol removed: %s\n", volume.get_name ());
+			foreach (var location in locations) {
+				if (location.volume == volume) {
+					locations.remove (location);
+					break;
+				}
+			}
+
+			changed ();
 		}
 
 		void volume_added (Volume volume) {



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