Doing this, the power profiles rows will look consistent with other rows, such as the "Dynamic workspaces" and "Fixed number of workspaces" from the Multitasking panel. This also cleans the code a bit.
73 lines
3 KiB
XML
73 lines
3 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<!-- interface-requires gtk+ 3.0 -->
|
|
<template class="CcPowerProfileRow" parent="GtkListBoxRow">
|
|
<property name="selectable">False</property>
|
|
<child>
|
|
<object class="GtkBox">
|
|
<property name="orientation">horizontal</property>
|
|
<property name="margin-start">12</property>
|
|
<property name="margin-end">12</property>
|
|
<property name="spacing">12</property>
|
|
<child>
|
|
<object class="GtkGrid">
|
|
<property name="margin-top">6</property>
|
|
<property name="margin-bottom">6</property>
|
|
<child>
|
|
<object class="GtkCheckButton" id="button">
|
|
<property name="margin-start">6</property>
|
|
<property name="margin-end">18</property>
|
|
<accessibility>
|
|
<property name="label" translatable="yes">Active</property>
|
|
</accessibility>
|
|
<signal name="toggled" handler="cc_power_profile_row_button_toggled_cb" object="CcPowerProfileRow" swapped="yes"/>
|
|
<layout>
|
|
<property name="column">0</property>
|
|
<property name="row">0</property>
|
|
<property name="row-span">2</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="title_label">
|
|
<property name="halign">start</property>
|
|
<property name="ellipsize">end</property>
|
|
<property name="hexpand">True</property>
|
|
<property name="vexpand">True</property>
|
|
<property name="use-markup">True</property>
|
|
<property name="use-underline">True</property>
|
|
<property name="xalign">0</property>
|
|
<property name="margin-end">6</property>
|
|
<layout>
|
|
<property name="column">1</property>
|
|
<property name="row">0</property>
|
|
</layout>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="subtitle_label">
|
|
<property name="ellipsize">end</property>
|
|
<property name="halign">start</property>
|
|
<property name="hexpand">True</property>
|
|
<property name="vexpand">True</property>
|
|
<property name="use-markup">True</property>
|
|
<property name="use-underline">True</property>
|
|
<property name="xalign">0</property>
|
|
<property name="margin-end">6</property>
|
|
<layout>
|
|
<property name="column">1</property>
|
|
<property name="row">1</property>
|
|
<property name="column-span">2</property>
|
|
</layout>
|
|
<style>
|
|
<class name="subtitle"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</template>
|
|
</interface>
|
|
|