Fix build with vala 0.22 OBS-URL: https://build.opensuse.org/request/show/212229 OBS-URL: https://build.opensuse.org/package/show/GNOME:Apps/deja-dup?expand=0&rev=54
26 lines
963 B
Diff
26 lines
963 B
Diff
=== modified file 'CMakeLists.txt'
|
|
Index: deja-dup/widgets/WidgetUtils.vala
|
|
===================================================================
|
|
--- deja-dup/widgets/WidgetUtils.vala.orig
|
|
+++ deja-dup/widgets/WidgetUtils.vala
|
|
@@ -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)
|
|
@@ -60,7 +64,7 @@ public ShellEnv get_shell()
|
|
// 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")
|