gnome-control-center/panels/info-overview/cc-info-overview-panel.ui
Nitin Joshi 57405b83d2 info-overview: Add "Firmware Version" row
Users often need information like Firmware version, serial number. Hence, it's
better to provide it by default in GNOME.
This changes is to display Firmware version only in "About" menu.

Reference: #1543
2022-11-16 09:34:56 +00:00

251 lines
9.7 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="CcInfoOverviewPanel" parent="CcPanel">
<child type="content">
<object class="AdwPreferencesPage">
<child>
<object class="AdwPreferencesGroup">
<child>
<object class="AdwClamp">
<property name="orientation">vertical</property>
<property name="maximum-size">192</property>
<property name="tightening-threshold">192</property>
<property name="child">
<object class="GtkPicture" id="os_logo">
<property name="can-shrink">False</property>
<property name="content-fit">scale-down</property>
<property name="alternative-text" translatable="yes">System Logo</property>
</object>
</property>
</object>
</child>
</object>
</child>
<child>
<object class="AdwPreferencesGroup">
<!-- Device name -->
<child>
<object class="CcListRow" id="hostname_row">
<property name="title" translatable="yes">Device Name</property>
<property name="secondary-label" bind-source="hostname_entry" bind-property="text" bind-flags="sync-create" />
<property name="show-arrow">True</property>
<signal name="activated" handler="cc_info_panel_row_activated_cb" swapped="yes"/>
</object>
</child>
</object>
</child>
<child>
<object class="AdwPreferencesGroup">
<!-- Hardware Model -->
<child>
<object class="CcListRow" id="hardware_model_row">
<property name="visible">False</property>
<property name="activatable">False</property>
<property name="title" translatable="yes">Hardware Model</property>
</object>
</child>
<!-- Firmware Version -->
<child>
<object class="CcListRow" id="firmware_version_row">
<property name="visible">False</property>
<property name="activatable">False</property>
<property name="title" translatable="yes">Firmware Version</property>
</object>
</child>
<!-- Memory -->
<child>
<object class="CcListRow" id="memory_row">
<property name="activatable">False</property>
<property name="title" translatable="yes">Memory</property>
</object>
</child>
<!-- Processor -->
<child>
<object class="CcListRow" id="processor_row">
<property name="activatable">False</property>
<property name="title" translatable="yes">Processor</property>
</object>
</child>
<!-- Graphics -->
<child>
<object class="CcListRow" id="graphics_row">
<property name="activatable">False</property>
<property name="title" translatable="yes">Graphics</property>
</object>
</child>
<!-- Disk Capacity -->
<child>
<object class="CcListRow" id="disk_row">
<property name="activatable">False</property>
<property name="title" translatable="yes">Disk Capacity</property>
<property name="secondary-label" translatable="yes">Calculating…</property>
</object>
</child>
</object>
</child>
<child>
<object class="AdwPreferencesGroup">
<!-- OS Name -->
<child>
<object class="CcListRow" id="os_name_row">
<property name="activatable">False</property>
<property name="title" translatable="yes"
comments="translators: this field contains the distro name and version">OS Name</property>
</object>
</child>
<!-- OS Build -->
<child>
<object class="CcListRow" id="os_build_row">
<property name="activatable">False</property>
<property name="title" translatable="yes"
comments="translators: this field contains the distro build ID">OS Build ID</property>
</object>
</child>
<!-- OS Type -->
<child>
<object class="CcListRow" id="os_type_row">
<property name="activatable">False</property>
<property name="title" translatable="yes">OS Type</property>
</object>
</child>
<!-- GNOME Version -->
<child>
<object class="CcListRow" id="gnome_version_row">
<property name="activatable">False</property>
<property name="title" translatable="yes">GNOME Version</property>
<property name="secondary-label" translatable="yes"
comments="translators: this is a placeholder while the GNOME version is being fetched">Loading…</property>
</object>
</child>
<!-- Windowing System -->
<child>
<object class="CcListRow" id="windowing_system_row">
<property name="activatable">False</property>
<property name="title" translatable="yes">Windowing System</property>
</object>
</child>
<!-- Virtualization -->
<child>
<object class="CcListRow" id="virtualization_row">
<property name="visible">False</property>
<property name="title" translatable="yes">Virtualization</property>
<property name="activatable">False</property>
</object>
</child>
<!-- Kernel version -->
<child>
<object class="CcListRow" id="kernel_row">
<property name="visible">False</property>
<property name="title" translatable="yes">Kernel Version</property>
<property name="activatable">False</property>
</object>
</child>
<!-- Software Updates -->
<child>
<object class="AdwActionRow" id="software_updates_row">
<property name="activatable">True</property>
<property name="title" translatable="yes">Software Updates</property>
<signal name="activated" handler="cc_info_panel_row_activated_cb" swapped="yes"/>
<child type="suffix">
<object class="GtkImage">
<property name="valign">center</property>
<property name="icon-name">adw-external-link-symbolic</property>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</child>
</template>
<object class="GtkDialog" id="hostname_editor">
<property name="visible">False</property>
<property name="modal">True</property>
<property name="use-header-bar">1</property>
<property name="default-height">24</property>
<property name="hide-on-close">True</property>
<property name="title" translatable="yes">Rename Device</property>
<signal name="response" handler="on_hostname_editor_dialog_response_cb" object="CcInfoOverviewPanel" swapped="no" />
<child>
<object class="GtkBox">
<property name="margin-top">18</property>
<property name="margin-start">12</property>
<property name="margin-end">12</property>
<property name="margin-bottom">18</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkLabel" id="device_name_description">
<property name="margin-bottom">18</property>
<property name="wrap">True</property>
<property name="max-width-chars">35</property>
<property name="xalign">0.0</property>
<property name="label" translatable="yes">The device name is used to identify this device when it is viewed over the network, or when pairing Bluetooth devices.</property>
</object>
</child>
<child>
<object class="GtkEntry" id="device_name_entry">
<accessibility>
<property name="label" translatable="yes">Device name</property>
<relation name="described-by">device_name_description</relation>
</accessibility>
<signal name="changed" handler="on_device_name_entry_changed" swapped="yes"/>
<signal name="activate" handler="on_device_name_entry_activated_cb" swapped="yes" />
</object>
</child>
</object>
</child>
<!-- Rename button -->
<child type="action">
<object class="GtkButton" id="rename_button">
<property name="use-underline">True</property>
<property name="label" translatable="yes">_Rename</property>
</object>
</child>
<!-- Cancel button -->
<child type="action">
<object class="GtkButton" id="cancel_button">
<property name="use-underline">True</property>
<property name="label" translatable="yes">_Cancel</property>
</object>
</child>
<action-widgets>
<action-widget response="apply" default="true">rename_button</action-widget>
<action-widget response="cancel">cancel_button</action-widget>
</action-widgets>
</object>
<object class="CcHostnameEntry" id="hostname_entry">
<property name="visible">0</property>
</object>
</interface>