[gnome-initial-setup/shell/4765: 343/362] summary: forward current user language to the tutorial



commit 4933edaf2980135e4368cb0da2ad0c37eb9e952e
Author: Cosimo Cecchi <cosimo endlessm com>
Date:   Fri Feb 20 18:54:53 2015 -0800

    summary: forward current user language to the tutorial
    
    [endlessm/eos-shell#4620]

 .../summary/com.endlessm.Tutorial.FBERemote.xml    |    1 +
 .../pages/summary/gis-summary-page.c               |    4 +++-
 2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gnome-initial-setup/pages/summary/com.endlessm.Tutorial.FBERemote.xml 
b/gnome-initial-setup/pages/summary/com.endlessm.Tutorial.FBERemote.xml
index f1af796..8d2d9ad 100644
--- a/gnome-initial-setup/pages/summary/com.endlessm.Tutorial.FBERemote.xml
+++ b/gnome-initial-setup/pages/summary/com.endlessm.Tutorial.FBERemote.xml
@@ -4,6 +4,7 @@
   <interface name="com.endlessm.Tutorial.FBERemote">
     <method name="PlayTutorial">
       <arg type="b" direction="in" name="ignore_exit"/>
+      <arg type="s" direction="in" name="language"/>
     </method>
   </interface>
 </node>
diff --git a/gnome-initial-setup/pages/summary/gis-summary-page.c 
b/gnome-initial-setup/pages/summary/gis-summary-page.c
index 5d29c61..9352094 100644
--- a/gnome-initial-setup/pages/summary/gis-summary-page.c
+++ b/gnome-initial-setup/pages/summary/gis-summary-page.c
@@ -279,7 +279,9 @@ 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)", is_new_user),
+                     g_variant_new ("(bs)",
+                                    is_new_user,
+                                    gis_driver_get_user_language (GIS_PAGE (summary)->driver)),
                      G_DBUS_CALL_FLAGS_NONE,
                      G_MAXINT,
                      NULL, /* cancellable */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]