blob: 730b8d91a69e9e478413cbfc273e818ee8fd1fd2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="CcListRow" parent="GtkListBoxRow">
<property name="visible">1</property>
<child>
<object class="GtkBox" id="box">
<property name="visible">1</property>
<property name="margin">12</property>
<property name="spacing">12</property>
<child>
<object class="GtkBox">
<property name="visible">1</property>
<property name="valign">center</property>
<property name="orientation">vertical</property>
<!-- Title -->
<child>
<object class="GtkLabel" id="title">
<property name="visible">1</property>
<property name="hexpand">1</property>
<property name="xalign">0.0</property>
<property name="ellipsize">end</property>
</object>
</child>
<!-- Subtitle -->
<child>
<object class="GtkLabel" id="subtitle">
<property name="visible">0</property>
<property name="hexpand">1</property>
<property name="xalign">0.0</property>
<property name="wrap-mode">word</property>
<property name="max-width-chars">42</property>
<style>
<class name="dim-label"/>
</style>
<attributes>
<attribute name="scale" value="0.83"/>
</attributes>
</object>
</child>
</object>
</child>
<!-- Secondary Label -->
<child>
<object class="GtkLabel" id="secondary_label">
<property name="visible">1</property>
<property name="valign">center</property>
<property name="ellipsize">end</property>
<property name="selectable" bind-source="CcListRow" bind-property="activatable" bind-flags="sync-create|invert-boolean" />
<style>
<class name="dim-label"/>
</style>
</object>
</child>
<!-- Icon -->
<child>
<object class="GtkImage" id="icon">
<property name="visible">0</property>
<property name="valign">center</property>
<style>
<class name="dim-label"/>
</style>
</object>
</child>
<!-- Switch -->
<child>
<object class="GtkSwitch" id="enable_switch">
<property name="visible">0</property>
<property name="can-focus">0</property>
<property name="valign">center</property>
<signal name="notify::active" handler="cc_list_row_switch_active_cb" swapped="yes"/>
</object>
</child>
</object>
</child>
</template>
</interface>
|