[gnome-initial-setup/shell/4765: 327/362] Fixed logic for tutorials started as existing user
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-initial-setup/shell/4765: 327/362] Fixed logic for tutorials started as existing user
- Date: Thu, 19 Mar 2015 01:48:34 +0000 (UTC)
commit fc7242a143b9cd16149d6be442390ddb76436313
Author: Srdjan Grubor <sgnn7 sgnn7 org>
Date: Wed Jan 14 08:09:22 2015 -0600
Fixed logic for tutorials started as existing user
Old code always started the tutorial with ignore_exit flag set
to true whic was incorrect. Now if the user is already existing,
the proper value is passed.
.../pages/summary/gis-summary-page.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/gnome-initial-setup/pages/summary/gis-summary-page.c
b/gnome-initial-setup/pages/summary/gis-summary-page.c
index 791cd94..5d29c61 100644
--- a/gnome-initial-setup/pages/summary/gis-summary-page.c
+++ b/gnome-initial-setup/pages/summary/gis-summary-page.c
@@ -254,6 +254,9 @@ launch_tutorial (GisSummaryPage *summary)
FBERemote *fbe_remote;
GError *error = NULL;
+ gboolean is_new_user = (gis_driver_get_mode (GIS_PAGE (summary)->driver) ==
+ GIS_DRIVER_MODE_NEW_USER);
+
fbe_remote = fberemote_proxy_new_for_bus_sync (G_BUS_TYPE_SESSION,
G_DBUS_PROXY_FLAGS_NONE,
"com.endlessm.Tutorial",
@@ -265,7 +268,7 @@ launch_tutorial (GisSummaryPage *summary)
g_critical ("Could not get DBus proxy for tutorial FBE remote: %s\n", error->message);
g_error_free (error);
- if (gis_driver_get_mode (GIS_PAGE (summary)->driver) == GIS_DRIVER_MODE_NEW_USER)
+ if (is_new_user)
{
log_user_in (summary);
}
@@ -276,7 +279,7 @@ launch_tutorial (GisSummaryPage *summary)
/* use g_dbus_proxy_call() to specify a custom timeout */
g_dbus_proxy_call (G_DBUS_PROXY (fbe_remote),
"PlayTutorial",
- g_variant_new ("(b)", TRUE),
+ g_variant_new ("(b)", is_new_user),
G_DBUS_CALL_FLAGS_NONE,
G_MAXINT,
NULL, /* cancellable */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]