deja-dup 34.3
[git/cygwin-packages/deja-dup.git] / 05-packagekit.patch
1 --- origsrc/deja-dup-34.3/CMakeLists.txt 2017-03-02 12:26:26.776101800 -0600
2 +++ src/deja-dup-34.3/CMakeLists.txt 2017-03-02 12:27:32.449738500 -0600
3 @@ -37,7 +37,7 @@ deja_check_modules(GLIB REQUIRED glib-2.
4 deja_check_modules(GTK REQUIRED gtk+-3.0>=3.6)
5 deja_check_modules(NOTIFY REQUIRED libnotify>=0.7)
6 deja_check_modules(PEAS REQUIRED libpeas-1.0)
7 -deja_check_modules(PK REQUIRED packagekit-glib2)
8 +deja_check_modules(PK packagekit-glib2)
9 deja_check_modules(SECRET REQUIRED libsecret-1)
10
11 # This is obnoxious.
12 --- origsrc/deja-dup-34.3/deja-dup/preferences/Preferences.vala 2015-11-29 07:58:23.000000000 -0600
13 +++ src/deja-dup-34.3/deja-dup/preferences/Preferences.vala 2017-03-02 12:41:19.269186300 -0600
14 @@ -62,6 +62,7 @@ public class Preferences : Gtk.Grid
15 }
16 }
17
18 +#if HAVE_PK
19 async void install_duplicity()
20 {
21 backup_button.sensitive = false;
22 @@ -119,6 +120,7 @@ public class Preferences : Gtk.Grid
23 backup_button.sensitive = true;
24 restore_button.sensitive = true;
25 }
26 +#endif
27
28 Gtk.Widget make_settings_page()
29 {
30 @@ -201,9 +203,11 @@ public class Preferences : Gtk.Grid
31 (w as Gtk.Button).clicked.connect((b) => {
32 if (duplicity_installed) {
33 run_deja_dup("--restore", b.get_display().get_app_launch_context());
34 +#if HAVE_PK
35 } else {
36 restore_progress.visible = true;
37 install_duplicity.begin();
38 +#endif
39 }
40 });
41 restore_button = w as Gtk.Button;
42 @@ -247,9 +251,11 @@ public class Preferences : Gtk.Grid
43 (w as Gtk.Button).clicked.connect((b) => {
44 if (duplicity_installed) {
45 run_deja_dup("--backup", b.get_display().get_app_launch_context());
46 +#if HAVE_PK
47 } else {
48 backup_progress.visible = true;
49 install_duplicity.begin();
50 +#endif
51 }
52 });
53 backup_button = w as Gtk.Button;
This page took 0.037326 seconds and 5 git commands to generate.