[baobab/wip/vala: 63/65] Wire up the 'volume-removed' signal
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [baobab/wip/vala: 63/65] Wire up the 'volume-removed' signal
- Date: Thu, 5 Apr 2012 12:20:15 +0000 (UTC)
commit fea367b9fe7bf8e3bc11914eb796899fe90f65c8
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]