summaryrefslogtreecommitdiff
path: root/src/ui.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2015-11-03 12:10:06 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2015-11-03 12:10:06 +0100
commit02cc3d8088c307a26f9b52e294fb932d1e40ee4d (patch)
treec7e987a1421f4c7db08c1aa4bf17107185dca4d0 /src/ui.vala
parentf64f5d0c9e37828bc1a42f8e69bbc4d3d8c549f5 (diff)
Imported Upstream version 3.19.1upstream/3.19.1
Diffstat (limited to 'src/ui.vala')
-rw-r--r--src/ui.vala7
1 files changed, 7 insertions, 0 deletions
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)