From 47ce4bf917467120b979447f7872633f81d43031 Mon Sep 17 00:00:00 2001
From: Jeremy Bicha <jbi...@ubuntu.com>
Date: Sat, 17 Jun 2017 20:52:26 -0400
Subject: [PATCH] Fix build with vala 0.36

Closes: #871186
---
 debian/patches/Build-with-vala-0.36.patch | 24 ++++++++++++++++++++++++
 debian/patches/series                     |  1 +
 2 files changed, 25 insertions(+)
 create mode 100644 debian/patches/Build-with-vala-0.36.patch
 create mode 100644 debian/patches/series

diff --git a/debian/patches/Build-with-vala-0.36.patch b/debian/patches/Build-with-vala-0.36.patch
new file mode 100644
index 0000000..e200285
--- /dev/null
+++ b/debian/patches/Build-with-vala-0.36.patch
@@ -0,0 +1,24 @@
+From: Jeremy Bicha <jbi...@ubuntu.com>
+Date: Sat, 17 Jun 2017 20:52:03 -0400
+Subject: Build with vala 0.36
+
+---
+ src/setup.vala | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/src/setup.vala b/src/setup.vala
+index 674c24b..6b2ae1e 100644
+--- a/src/setup.vala
++++ b/src/setup.vala
+@@ -338,7 +338,11 @@ class Setup : Object {
+         foreach (var row in rows) {
+             Gtk.TreeIter iter;
+             if (model.get_iter (out iter, row)) {
++#if VALA_0_36
++                ((Gtk.ListStore)model).remove (ref iter);
++#else
+                 ((Gtk.ListStore)model).remove (iter);
++#endif
+             }
+         }
+     }
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..5325942
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+Build-with-vala-0.36.patch
-- 
2.11.0

Reply via email to