[rygel] ui: Fix for upcoming Vala 0.36
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] ui: Fix for upcoming Vala 0.36
- Date: Fri, 24 Feb 2017 19:13:01 +0000 (UTC)
commit eef34e267464d5e80d9e679343271d5905ae1548
Author: Jens Georg <mail jensge org>
Date: Fri Feb 24 20:12:27 2017 +0100
ui: Fix for upcoming Vala 0.36
Signed-off-by: Jens Georg <mail jensge org>
src/ui/rygel-media-pref-section.vala | 4 ++++
src/ui/rygel-network-pref-section.vala | 8 ++++++++
2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/src/ui/rygel-media-pref-section.vala b/src/ui/rygel-media-pref-section.vala
index fae34f4..1b283cb 100644
--- a/src/ui/rygel-media-pref-section.vala
+++ b/src/ui/rygel-media-pref-section.vala
@@ -152,7 +152,11 @@ public class Rygel.MediaPrefSection : PreferencesSection {
var path = row_ref.get_path ();
this.liststore.get_iter (out iter, path);
+#if VALA_0_36
+ this.liststore.remove (ref iter);
+#else
this.liststore.remove (iter);
+#endif
}
}
diff --git a/src/ui/rygel-network-pref-section.vala b/src/ui/rygel-network-pref-section.vala
index e47f366..3e32d03 100644
--- a/src/ui/rygel-network-pref-section.vala
+++ b/src/ui/rygel-network-pref-section.vala
@@ -137,7 +137,11 @@ public class Rygel.NetworkPrefSection : PreferencesSection {
TreeIter iter;
if (this.find_interface (context.interface, out iter)) {
+#if VALA_0_36
+ this.iface_store.remove (ref iter);
+#else
this.iface_store.remove (iter);
+#endif
}
}
@@ -158,7 +162,11 @@ public class Rygel.NetworkPrefSection : PreferencesSection {
var path = row_ref.get_path ();
this.networks_store.get_iter (out iter, path);
+#if VALA_0_36
+ this.networks_store.remove (ref iter);
+#else
this.networks_store.remove (iter);
+#endif
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]