The CcBoltDeviceEntry can now optionally show a warning indicator if the device is in the pending state. Since we *don't* want to show this in the main list, remove calls to gtk_widget_show_all and replace them with gtk_widget_show.
67 lines
2.5 KiB
XML
67 lines
2.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<requires lib="gtk+" version="3.20"/>
|
|
|
|
<template class="CcBoltDeviceEntry" parent="GtkListBoxRow">
|
|
<property name="visible">True</property>
|
|
<property name="can-focus">False</property>
|
|
<property name="activatable">True</property>
|
|
<child>
|
|
<object class="GtkGrid">
|
|
<property name="visible">True</property>
|
|
<property name="border-width">12</property>
|
|
<property name="margin_left">6</property>
|
|
<property name="margin_right">6</property>
|
|
<property name="column-spacing">12</property>
|
|
<property name="row-spacing">2</property>
|
|
<child>
|
|
<object class="GtkLabel" id="name_label">
|
|
<property name="ellipsize">end</property>
|
|
<property name="use-markup">True</property>
|
|
<property name="visible">True</property>
|
|
<property name="hexpand">True</property>
|
|
<property name="label">Device Name</property>
|
|
<property name="xalign">0.0</property>
|
|
<property name="valign">center</property>
|
|
</object>
|
|
<packing>
|
|
<property name="left-attach">0</property>
|
|
<property name="top-attach">0</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkBox">
|
|
<property name="visible">True</property>
|
|
<property name="hexpand">False</property>
|
|
<property name="halign">end</property>
|
|
<property name="spacing">6</property>
|
|
<child>
|
|
<object class="GtkImage" id="status_warning">
|
|
<property name="visible">False</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="icon_name">dialog-warning-symbolic</property>
|
|
<property name="icon_size">1</property>
|
|
<property name="margin_left">0</property>
|
|
<property name="xalign">0.0</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="status_label">
|
|
<property name="visible">True</property>
|
|
<property name="hexpand">False</property>
|
|
<property name="label">Status</property>
|
|
<property name="halign">end</property>
|
|
<property name="valign">center</property>
|
|
<property name="xalign">1.0</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="left-attach">1</property>
|
|
<property name="top-attach">0</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</template>
|
|
</interface>
|