[gnome-software] details page: trivial: Use gs_shell_set_mode instead of change_mode()
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] details page: trivial: Use gs_shell_set_mode instead of change_mode()
- Date: Wed, 10 Oct 2018 07:43:18 +0000 (UTC)
commit 5d73f204a8b50d3cd63e84cccaa1ac49a434fff7
Author: Kalev Lember <klember redhat com>
Date: Tue Oct 9 16:45:48 2018 +0200
details page: trivial: Use gs_shell_set_mode instead of change_mode()
gs_shell_change_mode is more of an internal implementation detail for
the GsShell.
src/gs-details-page.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-details-page.c b/src/gs-details-page.c
index 9aa8e21a..73daa871 100644
--- a/src/gs-details-page.c
+++ b/src/gs-details-page.c
@@ -1717,7 +1717,7 @@ gs_details_page_file_to_app_cb (GObject *source,
if (list == NULL) {
g_warning ("failed to convert file to GsApp: %s", error->message);
/* go back to the overview */
- gs_shell_change_mode (self->shell, GS_SHELL_MODE_OVERVIEW, NULL, FALSE);
+ gs_shell_set_mode (self->shell, GS_SHELL_MODE_OVERVIEW);
} else {
GsApp *app = gs_app_list_index (list, 0);
g_set_object (&self->app_local_file, app);
@@ -1742,7 +1742,7 @@ gs_details_page_url_to_app_cb (GObject *source,
if (list == NULL) {
g_warning ("failed to convert URL to GsApp: %s", error->message);
/* go back to the overview */
- gs_shell_change_mode (self->shell, GS_SHELL_MODE_OVERVIEW, NULL, FALSE);
+ gs_shell_set_mode (self->shell, GS_SHELL_MODE_OVERVIEW);
} else {
GsApp *app = gs_app_list_index (list, 0);
_set_app (self, app);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]