Fixes for vala 0.36

This commit is contained in:
jasper 2017-04-13 07:10:01 +00:00
parent f703735c73
commit 49a1880671
3 changed files with 40 additions and 1 deletions

View File

@ -1,9 +1,10 @@
# $OpenBSD: Makefile,v 1.36 2017/01/05 08:41:58 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.37 2017/04/13 07:10:01 jasper Exp $
COMMENT= simple encrypted backup tool for GNOME
GNOME_VERSION= 34.3
GNOME_PROJECT= deja-dup
REVISION= 0
CATEGORIES= sysutils

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-deja-dup_widgets_ConfigList_vala,v 1.1 2017/04/13 07:10:01 jasper Exp $
Fix build with vala 0.36:
error: Argument 1: Cannot pass value to reference or output parameter
--- deja-dup/widgets/ConfigList.vala.orig Thu Apr 13 08:37:21 2017
+++ deja-dup/widgets/ConfigList.vala Thu Apr 13 08:37:26 2017
@@ -333,7 +333,7 @@ public class ConfigList : ConfigWidget
model.row_deleted.disconnect(write_to_config);
foreach (Gtk.TreeIter iter in iters) {
- (model as Gtk.ListStore).remove(iter);
+ (model as Gtk.ListStore).remove(ref iter);
}
model.row_deleted.connect(write_to_config);

View File

@ -0,0 +1,22 @@
$OpenBSD: patch-deja-dup_widgets_ConfigLocation_vala,v 1.1 2017/04/13 07:10:01 jasper Exp $
Fix build with vala 0.36:
error: Argument 1: Cannot pass value to reference or output parameter
--- deja-dup/widgets/ConfigLocation.vala.orig Thu Apr 13 08:37:56 2017
+++ deja-dup/widgets/ConfigLocation.vala Thu Apr 13 08:38:03 2017
@@ -397,12 +397,12 @@ public class ConfigLocation : ConfigWidget
if (uuid == saved_uuid)
return;
- store.remove(iter);
+ store.remove(ref iter);
if (--num_volumes == 0) {
Gtk.TreeIter sep_iter;
if (store.get_iter_from_string(out sep_iter, index_vol_sep.to_string())) {
- store.remove(sep_iter);
+ store.remove(ref sep_iter);
index_vol_sep = -2;
}
}