[gnome-packagekit] Add icon for critical updates
- From: Matthias Klumpp <mak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-packagekit] Add icon for critical updates
- Date: Wed, 20 Jul 2022 19:36:49 +0000 (UTC)
commit 1a9b02ea6535eba9ea19fd8fec3e00a930ea3ebc
Author: Matthias Klumpp <matthias tenstral net>
Date: Wed Jul 20 21:36:38 2022 +0200
Add icon for critical updates
This fixes the testsuite.
src/gpk-enum.c | 1 +
src/gpk-self-test.c | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/gpk-enum.c b/src/gpk-enum.c
index 313a7a85..4a154742 100644
--- a/src/gpk-enum.c
+++ b/src/gpk-enum.c
@@ -36,6 +36,7 @@ static const PkEnumMatch enum_info_icon_name[] = {
{PK_INFO_ENUM_LOW, "pk-update-low"},
{PK_INFO_ENUM_NORMAL, "pk-update-normal"},
{PK_INFO_ENUM_IMPORTANT, "pk-update-high"},
+ {PK_INFO_ENUM_CRITICAL, "pk-update-security"},
{PK_INFO_ENUM_SECURITY, "pk-update-security"},
{PK_INFO_ENUM_BUGFIX, "pk-update-bugfix"},
{PK_INFO_ENUM_ENHANCEMENT, "pk-update-enhancement"},
diff --git a/src/gpk-self-test.c b/src/gpk-self-test.c
index 60a19231..5f832962 100644
--- a/src/gpk-self-test.c
+++ b/src/gpk-self-test.c
@@ -55,7 +55,7 @@ gpk_test_enum_func (void)
for (i = PK_INFO_ENUM_UNKNOWN+1; i < PK_INFO_ENUM_LAST; i++) {
string = gpk_info_enum_to_icon_name (i);
if (string == NULL || g_strcmp0 (string, "help-browser") == 0) {
- g_warning ("failed to get %s", pk_info_enum_to_string (i));
+ g_warning ("failed to get %s (got %s instead)", pk_info_enum_to_string (i), string);
break;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]