shell: update sidebar when active panel is set externally
When the active panel is not changed through sidebar navigation, e.g. by calling the Control Center through command line and asking to open a specific panel, the panel is correctly opened but the sidebar is not updated to reflect that. Fix that by selecting the externally set panel row, and eventually moving to the correct list. https://bugzilla.gnome.org/show_bug.cgi?id=769063
This commit is contained in:
parent
1345cf36c5
commit
42a360eed6
3 changed files with 35 additions and 0 deletions
|
@ -475,6 +475,8 @@ cc_window_set_active_panel_from_id (CcShell *shell,
|
|||
|
||||
if (old_panel)
|
||||
gtk_container_remove (GTK_CONTAINER (self->stack), old_panel);
|
||||
|
||||
cc_panel_list_set_active_panel (CC_PANEL_LIST (self->panel_list), start_id);
|
||||
}
|
||||
|
||||
g_free (name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue