panel-list: Replace set_view() by go_previous()

Instead of directly selecting the view that the panel
list will have, let it decide which is the previous
view instead.

This does not change anything functionality wise, but
in the future where we have sidebar widget (and thus
the main window does not control which view the sidebar
is display) this will be important.
This commit is contained in:
Georges Basile Stavracas Neto 2018-11-16 13:26:02 -02:00
parent 6541c128df
commit b02bc2a935
No known key found for this signature in database
GPG key ID: 886C17EE170D1385
3 changed files with 48 additions and 43 deletions

View file

@ -51,8 +51,7 @@ void cc_panel_list_set_search_query (CcPanelList
CcPanelListView cc_panel_list_get_view (CcPanelList *self);
void cc_panel_list_set_view (CcPanelList *self,
CcPanelListView view);
void cc_panel_list_go_previous (CcPanelList *self);
void cc_panel_list_add_panel (CcPanelList *self,
CcPanelCategory category,