[gnome-software] Call g_set_prgname to set correct name for a11y tests



commit f21c168d7065d172bb5b8d03d945c80fb4eccc82
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date:   Wed Mar 12 13:32:16 2014 +0100

    Call g_set_prgname to set correct name for a11y tests
    
    By default pyatspi will use binary name for application, g_set_prgname will
    update it to required value. Gnome-weather does the similar trick in
    package.js
    
    This commit also updates tests

 src/gs-application.c |    1 +
 tests/actions.py     |    2 +-
 tests/basic.py       |    2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-application.c b/src/gs-application.c
index 496e33d..2688326 100644
--- a/src/gs-application.c
+++ b/src/gs-application.c
@@ -586,6 +586,7 @@ gs_application_class_init (GsApplicationClass *class)
 GsApplication *
 gs_application_new (void)
 {
+       g_set_prgname("org.gnome.Software");
        return g_object_new (GS_APPLICATION_TYPE,
                             "application-id", "org.gnome.Software",
                             NULL);
diff --git a/tests/actions.py b/tests/actions.py
index e7d470d..9663b59 100755
--- a/tests/actions.py
+++ b/tests/actions.py
@@ -20,7 +20,7 @@ from dogtail.rawinput import keyCombo
 try:
     run('gnome-software')
 
-    app = root.application('gnome-software');
+    app = root.application('org.gnome.Software')
 
     bus = Gio.bus_get_sync(Gio.BusType.SESSION, None)
     proxy = Gio.DBusProxy.new_sync(bus, Gio.DBusProxyFlags.NONE,
diff --git a/tests/basic.py b/tests/basic.py
index 69777aa..97461ff 100755
--- a/tests/basic.py
+++ b/tests/basic.py
@@ -21,7 +21,7 @@ from dogtail.procedural import *
 try:
     run('gnome-software')
 
-    app = root.application('gnome-software');
+    app = root.application('org.gnome.Software')
 
     all_button = app.child('All')
     installed_button = app.child('Installed')


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