[baobab] Avoid Vala deprecations
- From: Stefano Facchini <sfacchini src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [baobab] Avoid Vala deprecations
- Date: Mon, 11 Apr 2016 12:51:56 +0000 (UTC)
commit 2f1f6a6abc55be1d054ab41264f4a099681e493f
Author: Stefano Facchini <stefano facchini gmail com>
Date: Mon Apr 11 14:47:29 2016 +0200
Avoid Vala deprecations
src/baobab-application.vala | 4 ++--
src/baobab-scanner.vala | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/baobab-application.vala b/src/baobab-application.vala
index f39d3a4..0e004e7 100644
--- a/src/baobab-application.vala
+++ b/src/baobab-application.vala
@@ -51,8 +51,8 @@ namespace Baobab {
return (Application) GLib.Application.get_default ();
}
- public HashTable<File, unowned File> get_excluded_locations () {
- var excluded_locations = new HashTable<File, unowned File> (File.hash, File.equal);
+ public GenericSet<File> get_excluded_locations () {
+ var excluded_locations = new GenericSet<File> (File.hash, File.equal);
excluded_locations.add (File.new_for_path ("/proc"));
excluded_locations.add (File.new_for_path ("/sys"));
excluded_locations.add (File.new_for_path ("/selinux"));
diff --git a/src/baobab-scanner.vala b/src/baobab-scanner.vala
index 9f6620a..1bf79e2 100644
--- a/src/baobab-scanner.vala
+++ b/src/baobab-scanner.vala
@@ -85,7 +85,7 @@ namespace Baobab {
uint process_result_idle = 0;
HardLink[] hardlinks;
- HashTable<File, unowned File> excluded_locations;
+ GenericSet<File> excluded_locations;
bool successful = false;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]