[Xfce4-commits] [apps/parole] 01/01: Ensure the time divider is shown/hidden correctly
noreply at xfce.org
noreply at xfce.org
Sun Jul 14 00:24:54 CEST 2019
This is an automated email from the git hooks/post-receive script.
o c h o s i p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository apps/parole.
commit eb0af1049c5faff580c8204972591126bcbba4fb
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date: Sun Jul 14 00:24:10 2019 +0200
Ensure the time divider is shown/hidden correctly
Previously the state machine was a little borked and it always initially
showed up, but was hidden after toggling mini mode.
---
src/parole-player.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/parole-player.c b/src/parole-player.c
index d4ae7a5..831ebf7 100644
--- a/src/parole-player.c
+++ b/src/parole-player.c
@@ -1366,7 +1366,7 @@ parole_player_playing(ParolePlayer *player, const ParoleStream *stream) {
} else {
gtk_range_set_range(GTK_RANGE(player->priv->range), 0, duration);
gtk_widget_set_visible(player->priv->label_duration, TRUE);
- gtk_widget_set_visible(player->priv->label_divider, TRUE);
+ gtk_widget_set_visible(player->priv->label_divider, player->priv->mini_mode);
gtk_widget_set_visible(player->priv->label_elapsed, TRUE);
}
@@ -3495,6 +3495,7 @@ parole_player_init(ParolePlayer *player) {
player->priv->label_duration = GTK_WIDGET(gtk_builder_get_object(builder, "media_time_duration"));
player->priv->label_elapsed = GTK_WIDGET(gtk_builder_get_object(builder, "media_time_elapsed"));
player->priv->label_divider = GTK_WIDGET(gtk_builder_get_object(builder, "media_time_divider"));
+ gtk_widget_hide (player->priv->label_divider);
/* Time Slider */
player->priv->range = GTK_WIDGET(gtk_builder_get_object(builder, "media_progress_slider"));
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list