info-overview: Use AdwPreferences{Page,Group}
This commit is contained in:
parent
079bf51086
commit
96ecd3acdf
2 changed files with 130 additions and 157 deletions
|
@ -60,13 +60,11 @@ struct _CcInfoOverviewPanel
|
|||
CcListRow *disk_row;
|
||||
CcListRow *gnome_version_row;
|
||||
CcListRow *graphics_row;
|
||||
GtkListBox *hardware_box;
|
||||
CcListRow *hardware_model_row;
|
||||
GtkDialog *hostname_editor;
|
||||
CcHostnameEntry *hostname_entry;
|
||||
CcListRow *hostname_row;
|
||||
CcListRow *memory_row;
|
||||
GtkListBox *os_box;
|
||||
GtkPicture *os_logo;
|
||||
CcListRow *os_name_row;
|
||||
CcListRow *os_type_row;
|
||||
|
@ -939,13 +937,11 @@ cc_info_overview_panel_class_init (CcInfoOverviewPanelClass *klass)
|
|||
gtk_widget_class_bind_template_child (widget_class, CcInfoOverviewPanel, disk_row);
|
||||
gtk_widget_class_bind_template_child (widget_class, CcInfoOverviewPanel, gnome_version_row);
|
||||
gtk_widget_class_bind_template_child (widget_class, CcInfoOverviewPanel, graphics_row);
|
||||
gtk_widget_class_bind_template_child (widget_class, CcInfoOverviewPanel, hardware_box);
|
||||
gtk_widget_class_bind_template_child (widget_class, CcInfoOverviewPanel, hardware_model_row);
|
||||
gtk_widget_class_bind_template_child (widget_class, CcInfoOverviewPanel, hostname_editor);
|
||||
gtk_widget_class_bind_template_child (widget_class, CcInfoOverviewPanel, hostname_entry);
|
||||
gtk_widget_class_bind_template_child (widget_class, CcInfoOverviewPanel, hostname_row);
|
||||
gtk_widget_class_bind_template_child (widget_class, CcInfoOverviewPanel, memory_row);
|
||||
gtk_widget_class_bind_template_child (widget_class, CcInfoOverviewPanel, os_box);
|
||||
gtk_widget_class_bind_template_child (widget_class, CcInfoOverviewPanel, os_logo);
|
||||
gtk_widget_class_bind_template_child (widget_class, CcInfoOverviewPanel, os_name_row);
|
||||
gtk_widget_class_bind_template_child (widget_class, CcInfoOverviewPanel, os_type_row);
|
||||
|
|
|
@ -3,20 +3,10 @@
|
|||
<!-- interface-requires gtk+ 3.0 -->
|
||||
<template class="CcInfoOverviewPanel" parent="CcPanel">
|
||||
<child>
|
||||
<object class="GtkScrolledWindow">
|
||||
<property name="min-content-height">480</property>
|
||||
<property name="hscrollbar-policy">never</property>
|
||||
<object class="AdwPreferencesPage">
|
||||
<child>
|
||||
<object class="AdwClamp">
|
||||
<property name="margin_top">32</property>
|
||||
<property name="margin_bottom">32</property>
|
||||
<property name="margin_start">12</property>
|
||||
<property name="margin_end">12</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="valign">center</property>
|
||||
<property name="spacing">30</property>
|
||||
<property name="orientation">vertical</property>
|
||||
<object class="AdwPreferencesGroup">
|
||||
|
||||
<child>
|
||||
<object class="GtkPicture" id="os_logo">
|
||||
<property name="can-shrink">False</property>
|
||||
|
@ -24,13 +14,11 @@
|
|||
</object>
|
||||
</child>
|
||||
|
||||
</object>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<object class="GtkListBox">
|
||||
<property name="selection-mode">none</property>
|
||||
<signal name="row-activated" handler="cc_info_panel_row_activated_cb" swapped="yes"/>
|
||||
<style>
|
||||
<class name="boxed-list" />
|
||||
</style>
|
||||
<object class="AdwPreferencesGroup">
|
||||
|
||||
<!-- Device name -->
|
||||
<child>
|
||||
|
@ -38,6 +26,7 @@
|
|||
<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>
|
||||
|
||||
|
@ -45,11 +34,7 @@
|
|||
</child>
|
||||
|
||||
<child>
|
||||
<object class="GtkListBox" id="hardware_box">
|
||||
<property name="selection-mode">none</property>
|
||||
<style>
|
||||
<class name="boxed-list" />
|
||||
</style>
|
||||
<object class="AdwPreferencesGroup">
|
||||
|
||||
<!-- Hardware Model -->
|
||||
<child>
|
||||
|
@ -97,12 +82,7 @@
|
|||
</child>
|
||||
|
||||
<child>
|
||||
<object class="GtkListBox" id="os_box">
|
||||
<property name="selection-mode">none</property>
|
||||
<signal name="row-activated" handler="cc_info_panel_row_activated_cb" swapped="yes"/>
|
||||
<style>
|
||||
<class name="boxed-list" />
|
||||
</style>
|
||||
<object class="AdwPreferencesGroup">
|
||||
|
||||
<!-- OS Name -->
|
||||
<child>
|
||||
|
@ -152,6 +132,7 @@
|
|||
<object class="CcListRow" id="software_updates_row">
|
||||
<property name="title" translatable="yes">Software Updates</property>
|
||||
<property name="icon-name">go-next-symbolic</property>
|
||||
<signal name="activated" handler="cc_info_panel_row_activated_cb" swapped="yes"/>
|
||||
</object>
|
||||
</child>
|
||||
|
||||
|
@ -160,10 +141,6 @@
|
|||
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</template>
|
||||
|
||||
<object class="GtkDialog" id="hostname_editor">
|
||||
|
|
Loading…
Add table
Reference in a new issue