[gnome-control-center/wip/new-design: 7/7] XML format and remove functions.
- From: Kate Hsuan <khsuan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/wip/new-design: 7/7] XML format and remove functions.
- Date: Mon, 1 Aug 2022 08:52:50 +0000 (UTC)
commit d17f51ff7f831e7153a62534c0235c851f1ad685
Author: Kate Hsuan <hpa redhat com>
Date: Mon Aug 1 16:14:33 2022 +0800
XML format and remove functions.
.../cc-firmware-security-panel.ui | 47 +++++++++-------------
.../firmware-security/cc-firmware-security-utils.c | 26 ------------
2 files changed, 18 insertions(+), 55 deletions(-)
---
diff --git a/panels/firmware-security/cc-firmware-security-panel.ui
b/panels/firmware-security/cc-firmware-security-panel.ui
index af2777664..6c935e963 100644
--- a/panels/firmware-security/cc-firmware-security-panel.ui
+++ b/panels/firmware-security/cc-firmware-security-panel.ui
@@ -3,10 +3,8 @@
<template class="CcfirmwareSecurityPanel" parent="CcPanel">
<child type="content">
<object class="AdwPreferencesPage">
-
<child>
<object class="AdwPreferencesGroup">
-
<child>
<object class="GtkBox" id="firmware_security_hbox">
<property name="spacing">24</property>
@@ -29,36 +27,29 @@
<property name="margin-top">24</property>
<property name="margin-bottom">24</property>
<property name="spacing">6</property>
-
-
<child>
- <object class="GtkBox" id="hsi_circle_box">
- <property name="orientation">vertical</property>
- <property name="halign">center</property>
- <property name="valign">center</property>
-
-
-
- <child>
- <object class="GtkLabel" id="hsi_circle_number">
+ <object class="GtkBox" id="hsi_circle_box">
+ <property name="orientation">vertical</property>
<property name="halign">center</property>
<property name="valign">center</property>
- <property name="vexpand">True</property>
- <property name="justify">center</property>
- <property name="label">9</property>
+ <child>
+ <object class="GtkLabel" id="hsi_circle_number">
+ <property name="halign">center</property>
+ <property name="valign">center</property>
+ <property name="vexpand">True</property>
+ <property name="justify">center</property>
+ <property name="label">9</property>
+ <style>
+ <class name="hsi-level-font" />
+ </style>
+ </object>
+ </child>
<style>
- <class name="hsi-level-font"/>
+ <class name="hsi-level-box" />
</style>
</object>
</child>
-
- <style>
- <class name="hsi-level-box"/>
- </style>
-
- </object>
- </child>
- <child>
+ <child>
<object class="GtkLabel" id="hsi_label">
<property name="justify">center</property>
<property name="wrap">True</property>
@@ -107,7 +98,7 @@
<property name="icon-name">channel-insecure</property>
<property name="margin-bottom">6</property>
<style>
- <class name="security-level-icon"/>
+ <class name="security-level-icon" />
</style>
</object>
</child>
@@ -139,7 +130,6 @@
</child>
</object>
</child>
-
<child>
<object class="AdwPreferencesGroup">
<property name="title">Security Events</property>
@@ -174,8 +164,7 @@
</child>
</object>
</child>
-
</object>
</child>
</template>
-</interface>
+</interface>
\ No newline at end of file
diff --git a/panels/firmware-security/cc-firmware-security-utils.c
b/panels/firmware-security/cc-firmware-security-utils.c
index decd7e4c3..98c547742 100644
--- a/panels/firmware-security/cc-firmware-security-utils.c
+++ b/panels/firmware-security/cc-firmware-security-utils.c
@@ -262,32 +262,6 @@ fwupd_security_attr_result_to_string(FwupdSecurityAttrResult result)
return NULL;
}
-gboolean
-fwupd_get_result_status (FwupdSecurityAttrResult result)
-{
- switch (result)
- {
- case FWUPD_SECURITY_ATTR_RESULT_ENABLED:
- case FWUPD_SECURITY_ATTR_RESULT_VALID:
- case FWUPD_SECURITY_ATTR_RESULT_LOCKED:
- case FWUPD_SECURITY_ATTR_RESULT_ENCRYPTED:
- case FWUPD_SECURITY_ATTR_RESULT_NOT_TAINTED:
- case FWUPD_SECURITY_ATTR_RESULT_FOUND:
- case FWUPD_SECURITY_ATTR_RESULT_SUPPORTED:
- return true;
- case FWUPD_SECURITY_ATTR_RESULT_UNKNOWN:
- case FWUPD_SECURITY_ATTR_RESULT_NOT_ENABLED:
- case FWUPD_SECURITY_ATTR_RESULT_NOT_VALID:
- case FWUPD_SECURITY_ATTR_RESULT_NOT_LOCKED:
- case FWUPD_SECURITY_ATTR_RESULT_NOT_ENCRYPTED:
- case FWUPD_SECURITY_ATTR_RESULT_TAINTED:
- case FWUPD_SECURITY_ATTR_RESULT_NOT_FOUND:
- case FWUPD_SECURITY_ATTR_RESULT_NOT_SUPPORTED:
- return false;
- default:
- return false;
- }
-}
/* ->summary and ->description are translated */
FwupdSecurityAttr *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]