libsysprof-ui: use custom cell renderer for progress + .2 precision

This commit is contained in:
Christian Hergert
2019-05-22 10:05:12 -07:00
parent 57064c4dc5
commit eecb3192ec
3 changed files with 22 additions and 19 deletions

View File

@ -42,11 +42,11 @@
<property name="sort-column-id">1</property>
<property name="title" translatable="yes">Self</property>
<child>
<object class="GtkCellRendererProgress">
<object class="SysprofCellRendererPercent">
<property name="width">65</property>
</object>
<attributes>
<attribute name="value">1</attribute>
<attribute name="percent">1</attribute>
</attributes>
</child>
</object>
@ -58,11 +58,11 @@
<property name="sort-column-id">2</property>
<property name="title" translatable="yes">Total</property>
<child>
<object class="GtkCellRendererProgress">
<object class="SysprofCellRendererPercent">
<property name="width">65</property>
</object>
<attributes>
<attribute name="value">2</attribute>
<attribute name="percent">2</attribute>
</attributes>
</child>
</object>
@ -103,11 +103,11 @@
<property name="sort-column-id">1</property>
<property name="title" translatable="yes">Self</property>
<child>
<object class="GtkCellRendererProgress">
<object class="SysprofCellRendererPercent">
<property name="width">65</property>
</object>
<attributes>
<attribute name="value">1</attribute>
<attribute name="percent">1</attribute>
</attributes>
</child>
</object>
@ -119,11 +119,11 @@
<property name="sort-column-id">2</property>
<property name="title" translatable="yes">Total</property>
<child>
<object class="GtkCellRendererProgress">
<object class="SysprofCellRendererPercent">
<property name="width">65</property>
</object>
<attributes>
<attribute name="value">2</attribute>
<attribute name="percent">2</attribute>
</attributes>
</child>
</object>
@ -158,11 +158,11 @@
<property name="sort-column-id">1</property>
<property name="title" translatable="yes">Self</property>
<child>
<object class="GtkCellRendererProgress">
<object class="SysprofCellRendererPercent">
<property name="width">65</property>
</object>
<attributes>
<attribute name="value">1</attribute>
<attribute name="percent">1</attribute>
</attributes>
</child>
</object>
@ -174,11 +174,11 @@
<property name="sort-column-id">2</property>
<property name="title" translatable="yes">Total</property>
<child>
<object class="GtkCellRendererProgress">
<object class="SysprofCellRendererPercent">
<property name="width">65</property>
</object>
<attributes>
<attribute name="value">2</attribute>
<attribute name="percent">2</attribute>
</attributes>
</child>
</object>