call-display: Display two digits for minutes
This matches the final design.
This commit is contained in:
@@ -135,7 +135,7 @@ timeout_cb (CallsCallDisplay *self)
|
|||||||
}
|
}
|
||||||
|
|
||||||
minutes = (guint)(elapsed / MINUTE);
|
minutes = (guint)(elapsed / MINUTE);
|
||||||
g_string_append_printf (str, "%u:", minutes);
|
g_string_append_printf (str, "%02u:", minutes);
|
||||||
elapsed -= (minutes * MINUTE);
|
elapsed -= (minutes * MINUTE);
|
||||||
|
|
||||||
g_string_append_printf (str, "%02u", (guint)elapsed);
|
g_string_append_printf (str, "%02u", (guint)elapsed);
|
||||||
|
|||||||
@@ -54,7 +54,7 @@
|
|||||||
<object class="GtkLabel" id="time">
|
<object class="GtkLabel" id="time">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="label" translatable="yes">0:00</property>
|
<property name="label" translatable="yes">00:00</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
|
|||||||
Reference in New Issue
Block a user