[gnome-software] Add a big red warning to all device firmware updates
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Add a big red warning to all device firmware updates
- Date: Wed, 25 Nov 2015 16:47:08 +0000 (UTC)
commit 1c1c5a8a36ea8a95fd9b7a36b899ea967a9e6610
Author: Richard Hughes <richard hughsie com>
Date: Wed Nov 25 16:34:22 2015 +0000
Add a big red warning to all device firmware updates
src/gs-app-row.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-app-row.c b/src/gs-app-row.c
index 46dedba..6afd4e2 100644
--- a/src/gs-app-row.c
+++ b/src/gs-app-row.c
@@ -139,6 +139,15 @@ gs_app_row_refresh (GsAppRow *app_row)
/* join the lines*/
str = gs_app_row_get_description (app_row);
gs_string_replace (str, "\n", " ");
+
+ /* add warning */
+ if (gs_app_get_kind (priv->app) == GS_APP_KIND_FIRMWARE_UPDATE) {
+ g_string_append_printf (str, "\n\n<span foreground=\"red\" font_weight=\"bold\">%s</span>",
+ /* TRANSLATORS: during the update the device
+ * will restart into a special update-only mode */
+ _("Device cannot be used during update."));
+ }
+
gtk_label_set_markup (GTK_LABEL (priv->description_label), str->str);
g_string_free (str, TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]