[gnome-control-center/wip/hughsie/hsi-fixes] firmware-security: Set the HSI row icon correctly for higher HSI levels



commit 78d07d75236070561c4f596535d05ef498f95d4f
Author: Kate Hsuan <hpa redhat com>
Date:   Wed Jul 20 17:37:13 2022 +0800

    firmware-security: Set the HSI row icon correctly for higher HSI levels
    
    Set icon image to "emblem-default-symbolic" for higher HSI value.

 panels/firmware-security/cc-firmware-security-dialog.c | 6 ++++++
 1 file changed, 6 insertions(+)
---
diff --git a/panels/firmware-security/cc-firmware-security-dialog.c 
b/panels/firmware-security/cc-firmware-security-dialog.c
index 574c8a3e8..c92202540 100644
--- a/panels/firmware-security/cc-firmware-security-dialog.c
+++ b/panels/firmware-security/cc-firmware-security-dialog.c
@@ -115,6 +115,8 @@ update_dialog (CcFirmwareSecurityDialog *self)
       break;
 
     case 2:
+      adw_action_row_set_icon_name (ADW_ACTION_ROW (self->firmware_security_dialog_min_row),
+                                    "emblem-default-symbolic");
       adw_action_row_set_icon_name (ADW_ACTION_ROW (self->firmware_security_dialog_basic_row),
                                     "emblem-default-symbolic");
       gtk_widget_add_css_class (self->firmware_security_dialog_min_row, "success-icon");
@@ -129,6 +131,10 @@ update_dialog (CcFirmwareSecurityDialog *self)
 
     case 3:
     case 4:
+      adw_action_row_set_icon_name (ADW_ACTION_ROW (self->firmware_security_dialog_min_row),
+                                    "emblem-default-symbolic");
+      adw_action_row_set_icon_name (ADW_ACTION_ROW (self->firmware_security_dialog_basic_row),
+                                    "emblem-default-symbolic");
       adw_action_row_set_icon_name (ADW_ACTION_ROW (self->firmware_security_dialog_extend_row),
                                     "emblem-default-symbolic");
       gtk_widget_add_css_class (self->firmware_security_dialog_min_row, "success-icon");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]