Part 1: Currently all graphics devices have to share a single row for their names, this method doesn't pretty well for devices with long names or computers that may have multiple GPUs. The new mockup fixes this by having a separate entry for each graphics device. This commit turns graphics_row into a GtkBox, graphics_row is going to act like a space where gpu entries will be placed. graphics_row will be populated in the code using create_graphics_row() to have separate entries for each graphics device Part 2: Currently all graphics devices have to share a single row for their names, this method doesn't pretty well for devices with l> The new mockup fixes this by having a separate entry for each graphics device. This commit adds a method to popuplate graphics_row with GPU information entries. It uses the existing logic from get_renderer_from_switcheroo to iterate over a list of graphics devices and build a CcInfoEntry for each device. It finally appends the widget to graphics_row Part 3: Currently all graphics devices have to share a single row for their names, this method doesn't pretty well for devices with l> The new mockup fixes this by having a separate entry for each graphics device. The list of graphics devices is now processed in create_graphics_rows function, so remove that logic from get_renderer_from_switcheroo () and return a GSList instead of a string. graphics_hardware_string has been renamed to graphics_hardware_list to imply the change. Since create_graphics_rows expects a list, get_graphics_hardware method has been modified to create a renderer list from the outputs of get_renderer_from_session or get_renderer_from_helper in case that get_renderer_from_switcheroo fails.
173 lines
No EOL
6.6 KiB
XML
173 lines
No EOL
6.6 KiB
XML
<?xml version="1.0"?>
|
|
<interface>
|
|
<template class="CcSystemDetailsWindow" parent="AdwWindow">
|
|
<property name="title" translatable="yes">System Details</property>
|
|
<property name="modal">True</property>
|
|
<property name="hide-on-close">True</property>
|
|
<property name="destroy_with_parent">True</property>
|
|
<property name="default-width">640</property>
|
|
<property name="default-height">420</property>
|
|
<property name="content">
|
|
<object class="GtkBox">
|
|
<property name="orientation">vertical</property>
|
|
<child>
|
|
<object class="AdwHeaderBar">
|
|
<child type="start">
|
|
<object class="GtkButton">
|
|
<property name="label" translatable="yes">Copy</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkBox">
|
|
<property name="orientation">vertical</property>
|
|
<property name="margin-top">12</property>
|
|
<property name="margin-bottom">12</property>
|
|
<property name="margin-start">12</property>
|
|
<property name="margin-end">12</property>
|
|
<property name="spacing">12</property>
|
|
|
|
<!-- Hardware Information -->
|
|
<child>
|
|
<object class="GtkBox">
|
|
<property name="orientation">vertical</property>
|
|
<property name="margin-top">6</property>
|
|
<property name="margin-bottom">6</property>
|
|
<property name="margin-start">6</property>
|
|
<property name="margin-end">6</property>
|
|
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="label" translatable="yes">Hardware Information</property>
|
|
<property name="halign">start</property>
|
|
<attributes>
|
|
<attribute name="weight" value="bold"/>
|
|
</attributes>
|
|
</object>
|
|
</child>
|
|
|
|
<!-- Hardware Model -->
|
|
<child>
|
|
<object class="CcInfoEntry" id="hardware_model_row">
|
|
<property name="label" translatable="yes">Model</property>
|
|
</object>
|
|
</child>
|
|
|
|
<!-- Memory -->
|
|
<child>
|
|
<object class="CcInfoEntry" id="memory_row">
|
|
<property name="label" translatable="yes">Memory</property>
|
|
</object>
|
|
</child>
|
|
|
|
<!-- Processor -->
|
|
<child>
|
|
<object class="CcInfoEntry" id="processor_row">
|
|
<property name="label" translatable="yes">Processor</property>
|
|
</object>
|
|
</child>
|
|
|
|
<!-- Graphics -->
|
|
<child>
|
|
<object class="GtkBox" id="graphics_row">
|
|
<property name="orientation">vertical</property>
|
|
</object>
|
|
</child>
|
|
|
|
<!-- Storage -->
|
|
<child>
|
|
<object class="CcInfoEntry" id="disk_row">
|
|
<property name="label" translatable="yes">Disk Capacity</property>
|
|
</object>
|
|
</child>
|
|
|
|
</object>
|
|
</child>
|
|
|
|
<!-- Software Information -->
|
|
<child>
|
|
<object class="GtkBox">
|
|
<property name="orientation">vertical</property>
|
|
<property name="margin-top">6</property>
|
|
<property name="margin-bottom">6</property>
|
|
<property name="margin-start">6</property>
|
|
<property name="margin-end">6</property>
|
|
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="label" translatable="yes">Software Information</property>
|
|
<property name="halign">start</property>
|
|
<attributes>
|
|
<attribute name="weight" value="bold"/>
|
|
</attributes>
|
|
</object>
|
|
</child>
|
|
|
|
<!-- Firmware Version -->
|
|
<child>
|
|
<object class="CcInfoEntry" id="firmware_version_row">
|
|
<property name="label" translatable="yes">Firmware Version</property>
|
|
</object>
|
|
</child>
|
|
|
|
<!-- OS Name -->
|
|
<child>
|
|
<object class="CcInfoEntry" id="os_name_row">
|
|
<property name="label" translatable="yes"
|
|
comments="translators: this field contains the distro name and version">OS Name</property>
|
|
</object>
|
|
</child>
|
|
|
|
<!-- OS Build -->
|
|
<child>
|
|
<object class="CcInfoEntry" id="os_build_row">
|
|
<property name="label" translatable="yes"
|
|
comments="translators: this field contains the distro build">OS Build</property>
|
|
</object>
|
|
</child>
|
|
|
|
<!-- OS Type -->
|
|
<child>
|
|
<object class="CcInfoEntry" id="os_type_row">
|
|
<property name="label" translatable="yes"
|
|
comments="translators: this field contains the distro type">OS Type</property>
|
|
</object>
|
|
</child>
|
|
|
|
<!-- GNOME Version -->
|
|
<child>
|
|
<object class="CcInfoEntry" id="gnome_version_row">
|
|
<property name="label" translatable="yes">GNOME Version</property>
|
|
</object>
|
|
</child>
|
|
|
|
<!-- Windowing System -->
|
|
<child>
|
|
<object class="CcInfoEntry" id="windowing_system_row">
|
|
<property name="label" translatable="yes">Windowing System</property>
|
|
</object>
|
|
</child>
|
|
|
|
<!-- Virtualization -->
|
|
<child>
|
|
<object class="CcInfoEntry" id="virtualization_row">
|
|
<property name="label" translatable="yes">Virtualization</property>
|
|
</object>
|
|
</child>
|
|
|
|
<!-- Kernel version -->
|
|
<child>
|
|
<object class="CcInfoEntry" id="kernel_row">
|
|
<property name="label" translatable="yes">Kernel Version</property>
|
|
</object>
|
|
</child>
|
|
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</property>
|
|
</template>
|
|
</interface> |