mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-13 12:51:16 +00:00
playback/player: GTK: Fix logic for setting the prev/next button insensitive at the end/beginning of the playlist
This commit is contained in:
parent
a622cb0d2c
commit
ead64d43fa
1 changed files with 2 additions and 4 deletions
|
@ -110,8 +110,7 @@ skip_prev_clicked_cb (GtkButton *button, GtkPlay *play)
|
|||
gst_player_set_uri (play->player, prev->data);
|
||||
gst_player_play (play->player);
|
||||
set_title (play, prev->data);
|
||||
} else {
|
||||
gtk_widget_set_sensitive (play->prev_button, FALSE);
|
||||
gtk_widget_set_sensitive (play->prev_button, g_list_previous (prev) != NULL);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -132,8 +131,7 @@ skip_next_clicked_cb (GtkButton *button, GtkPlay *play)
|
|||
gst_player_set_uri (play->player, next->data);
|
||||
gst_player_play (play->player);
|
||||
set_title (play, next->data);
|
||||
} else {
|
||||
gtk_widget_set_sensitive (play->next_button, FALSE);
|
||||
gtk_widget_set_sensitive (play->next_button, g_list_next (next) != NULL);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue