Commit a1246eb1 authored by Jonathan Matthew's avatar Jonathan Matthew

shell: implement 'jump to playing' for queue as side pane

Focus the side pane and scroll to the playing entry rather than trying the
normal code path, which leads to an assertion failure.

https://bugzilla.gnome.org/show_bug.cgi?id=729373
parent 26d0551d
......@@ -2652,11 +2652,17 @@ rb_shell_jump_to_current (RBShell *shell, gboolean select_page)
if (source == NULL)
return;
if (select_page) {
rb_shell_select_page (shell, RB_DISPLAY_PAGE (source));
if (source == RB_SOURCE (shell->priv->queue_source) &&
g_settings_get_boolean (shell->priv->settings, "queue-as-sidebar")) {
gtk_widget_grab_focus (shell->priv->queue_sidebar);
songs = RB_ENTRY_VIEW (shell->priv->queue_sidebar);
} else {
if (select_page) {
rb_shell_select_page (shell, RB_DISPLAY_PAGE (source));
}
songs = rb_source_get_entry_view (source);
}
songs = rb_source_get_entry_view (source);
if (songs != NULL) {
entry = rb_shell_player_get_playing_entry (shell->priv->player_shell);
if (entry != NULL) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment