[simple-scan/gnome-3-24: 1/3] Fix compilation with Vala 0.36. Based on a patch by David King
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [simple-scan/gnome-3-24: 1/3] Fix compilation with Vala 0.36. Based on a patch by David King
- Date: Thu, 27 Apr 2017 09:03:40 +0000 (UTC)
commit 7d9773efc9f6c3671b5a4322c6dbdf20f707782c
Author: Robert Ancell <robert ancell canonical com>
Date: Wed Apr 26 11:01:04 2017 +1200
Fix compilation with Vala 0.36. Based on a patch by David King
src/ui.vala | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/ui.vala b/src/ui.vala
index 5e375c4..8d7a587 100644
--- a/src/ui.vala
+++ b/src/ui.vala
@@ -453,7 +453,11 @@ public class UserInterface : Gtk.ApplicationWindow
for (i = 0; i < n_delete; i++)
{
device_model.iter_nth_child (out iter, null, index);
+#if VALA_0_36
+ device_model.remove (ref iter);
+#else
device_model.remove (iter);
+#endif
}
}
else
@@ -466,7 +470,11 @@ public class UserInterface : Gtk.ApplicationWindow
/* Remove any remaining devices */
while (device_model.iter_nth_child (out iter, null, index))
+#if VALA_0_36
+ device_model.remove (ref iter);
+#else
device_model.remove (iter);
+#endif
/* Select the previously selected device or the first available device */
if (!have_selection)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]