[baobab/wip/new-design] Wire up the 'volume-removed' signal
- From: Stefano Facchini <sfacchini src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [baobab/wip/new-design] Wire up the 'volume-removed' signal
- Date: Wed, 4 Apr 2012 11:36:45 +0000 (UTC)
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]