[totem/wip/hadess/precise-stepping: 2/7] main: Use new bacon_time_label_reset() helper
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/wip/hadess/precise-stepping: 2/7] main: Use new bacon_time_label_reset() helper
- Date: Thu, 17 Feb 2022 20:49:07 +0000 (UTC)
commit f63a24cadd95793d622d56d9cd920ff5ef8a123e
Author: Bastien Nocera <hadess hadess net>
Date: Thu Feb 17 18:04:33 2022 +0100
main: Use new bacon_time_label_reset() helper
src/totem-object.c | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/src/totem-object.c b/src/totem-object.c
index 8a5a70495..74b4bcf06 100644
--- a/src/totem-object.c
+++ b/src/totem-object.c
@@ -1448,10 +1448,8 @@ play_pause_set_label (TotemObject *totem, TotemStates state)
totem_playlist_set_playing (totem->playlist, TOTEM_PLAYLIST_STATUS_PAUSED);
break;
case STATE_STOPPED:
- bacon_time_label_set_time (totem->time_label,
- 0, 0);
- bacon_time_label_set_time (totem->time_rem_label,
- 0, 0);
+ bacon_time_label_reset (totem->time_label);
+ bacon_time_label_reset (totem->time_rem_label);
id = "media-playback-start-symbolic";
totem_playlist_set_playing (totem->playlist, TOTEM_PLAYLIST_STATUS_NONE);
tip = N_("Play");
@@ -1841,10 +1839,8 @@ update_mrl_label (TotemObject *totem, const char *name)
g_clear_pointer (&totem->player_title, g_free);
totem->player_title = g_strdup (name);
} else {
- bacon_time_label_set_time (totem->time_label,
- 0, 0);
- bacon_time_label_set_time (totem->time_rem_label,
- 0, 0);
+ bacon_time_label_reset (totem->time_label);
+ bacon_time_label_reset (totem->time_rem_label);
g_object_notify (G_OBJECT (totem), "stream-length");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]