From 02cc3d8088c307a26f9b52e294fb932d1e40ee4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Tue, 3 Nov 2015 12:10:06 +0100 Subject: Imported Upstream version 3.19.1 --- src/ui.vala | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/ui.vala') diff --git a/src/ui.vala b/src/ui.vala index ab1cfd4..a66db50 100644 --- a/src/ui.vala +++ b/src/ui.vala @@ -1639,6 +1639,7 @@ public class UserInterface : Gtk.ApplicationWindow if (packages_to_install.length > 0) { +#if HAVE_PACKAGEKIT stack.visible = true; spinner.active = true; instructions_label.set_text (/* Label shown while installing drivers */ @@ -1671,12 +1672,17 @@ public class UserInterface : Gtk.ApplicationWindow } instructions_label.set_text (result_text); }); +#else + instructions_label.set_text (/* Label shown to prompt user to install packages (when PackageKit not available) */ + _("You need to install the %s package(s).").printf (string.joinv (", ", packages_to_install))); +#endif } dialog.run (); dialog.destroy (); } +#if HAVE_PACKAGEKIT private async Pk.Results? install_packages (string[] packages, Pk.ProgressCallback progress_callback) throws GLib.Error { var task = new Pk.Task (); @@ -1693,6 +1699,7 @@ public class UserInterface : Gtk.ApplicationWindow return yield task.install_packages_async (package_ids, null, progress_callback); } +#endif [GtkCallback] private bool simple_scan_window_window_state_event_cb (Gtk.Widget widget, Gdk.EventWindowState event) -- cgit v1.2.3