summaryrefslogtreecommitdiff
path: root/community/deja-dup/fix-build.patch
blob: 49b58cd967d9368bcc4230339bdc2c497278d97b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
=== modified file 'deja-dup/widgets/WidgetUtils.vala'
--- deja-dup/widgets/WidgetUtils.vala	2013-10-14 14:34:37 +0000
+++ deja-dup/widgets/WidgetUtils.vala	2013-12-06 17:19:31 +0000
@@ -19,6 +19,10 @@
 
 using GLib;
 
+// vala 0.22.1 changed the prototype for Notify.get_server_caps.
+// Rather than require that specific version, use 0.22.1's definition directly.
+extern GLib.List notify_get_server_caps();
+
 namespace DejaDup {
 
 public void show_uri(Gtk.Window? parent, string link)
@@ -59,7 +63,7 @@
       // Use Legacy unless we detect a different shell.
       shell = ShellEnv.LEGACY;
       // Next check for Shell by notification capabilities
-      unowned List<string> caps = Notify.get_server_caps();
+      List<string> caps = notify_get_server_caps();
       bool persistence = false, actions = false;
       foreach (string cap in caps) {
         if (cap == "persistence")