From e72815691706f2d49b8c230da6cc9ff700206892 Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Mon, 15 Nov 2021 03:03:35 +0100 Subject: Rename com.canonical.test* --- examples/exportactiongroup.py | 8 ++++---- examples/exportmenu.py | 6 +++--- examples/info-menumodel.cpp | 4 ++-- examples/render-menumodel.qml | 8 ++++---- tests/script/dbusmenuscript.h | 6 +++--- tests/script/menuscript.py | 6 +++--- 6 files changed, 19 insertions(+), 19 deletions(-) diff --git a/examples/exportactiongroup.py b/examples/exportactiongroup.py index b1237a8..df05b0d 100755 --- a/examples/exportactiongroup.py +++ b/examples/exportactiongroup.py @@ -18,8 +18,8 @@ """ This example script exports an action group on the session bus under the name -com.canonical.testactiongroup and at the object path -/com/canonical/testactiongroup. +org.ayatana.testactiongroup and at the object path +/org/ayatana/testactiongroup. """ import sys @@ -28,8 +28,8 @@ from gi.repository import Gio from gi.repository import GLib -BUS_NAME = 'com.canonical.testactiongroup' -BUS_OBJECT_PATH = '/com/canonical/testactiongroup' +BUS_NAME = 'org.ayatana.testactiongroup' +BUS_OBJECT_PATH = '/org/ayatana/testactiongroup' def action_activated(action, data): diff --git a/examples/exportmenu.py b/examples/exportmenu.py index b7c37b1..8e0f16e 100755 --- a/examples/exportmenu.py +++ b/examples/exportmenu.py @@ -18,7 +18,7 @@ """ This example script exports a menu model on the session bus under the name -com.canonical.testmenu and at the object path /com/canonical/testmenu. +org.ayatana.testmenu and at the object path /org/ayatana/testmenu. The menu model contains items that have attributes with custom values, as well as sub-menus. """ @@ -29,8 +29,8 @@ from gi.repository import Gio from gi.repository import GLib -BUS_NAME = 'com.canonical.testmenu' -BUS_OBJECT_PATH = '/com/canonical/testmenu' +BUS_NAME = 'org.ayatana.testmenu' +BUS_OBJECT_PATH = '/org/ayatana/testmenu' def bus_acquired(bus, name): menu = Gio.Menu() diff --git a/examples/info-menumodel.cpp b/examples/info-menumodel.cpp index a0bdb0a..d4fd0a7 100644 --- a/examples/info-menumodel.cpp +++ b/examples/info-menumodel.cpp @@ -33,8 +33,8 @@ #include -#define BUS_NAME "com.canonical.testmenu" -#define BUS_OBJECT_PATH "/com/canonical/testmenu" +#define BUS_NAME "org.ayatana.testmenu" +#define BUS_OBJECT_PATH "/org/ayatana/testmenu" class MenuModelMonitor : public QDBusMenuModel diff --git a/examples/render-menumodel.qml b/examples/render-menumodel.qml index 7d8e0a1..5458eeb 100644 --- a/examples/render-menumodel.qml +++ b/examples/render-menumodel.qml @@ -18,8 +18,8 @@ */ // This example QML application renders a menu model exposed on the session bus -// under the well-known name com.canonical.testmenu and at the object path -// /com/canonical/testmenu. +// under the well-known name org.ayatana.testmenu and at the object path +// /org/ayatana/testmenu. import QtQuick 2.0 import QMenuModel 0.1 @@ -32,8 +32,8 @@ Item { QDBusMenuModel { id: menuModel busType: DBus.SessionBus - busName: "com.canonical.testmenu" - objectPath: "/com/canonical/testmenu" + busName: "org.ayatana.testmenu" + objectPath: "/org/ayatana/testmenu" onStatusChanged: { if (status == DBus.Connecting) { view.reset() diff --git a/tests/script/dbusmenuscript.h b/tests/script/dbusmenuscript.h index 862686c..03c5ad3 100644 --- a/tests/script/dbusmenuscript.h +++ b/tests/script/dbusmenuscript.h @@ -24,9 +24,9 @@ #include #include -#define SCRIPT_SERVICE_NAME "com.canonical.test" -#define SCRIPT_OBJECT_PATH "/com/canonical/test/menuscript" -#define SCRIPT_INTERFACE_NAME "com.canonical.test.menuscript" +#define SCRIPT_SERVICE_NAME "org.ayatana.test" +#define SCRIPT_OBJECT_PATH "/org/ayatana/test/menuscript" +#define SCRIPT_INTERFACE_NAME "org.ayatana.test.menuscript" #define MENU_SERVICE_NAME SCRIPT_SERVICE_NAME ".menu" #define MENU_OBJECT_PATH SCRIPT_OBJECT_PATH "/menu" diff --git a/tests/script/menuscript.py b/tests/script/menuscript.py index db71c08..caa96e2 100644 --- a/tests/script/menuscript.py +++ b/tests/script/menuscript.py @@ -21,9 +21,9 @@ from gi.repository import GObject from gi.repository import GLib from gi.repository import Gio -SERVICE_NAME = "com.canonical.test" -INTERFACE_NAME = "com.canonical.test.menuscript" -OBJECT_PATH = "/com/canonical/test/menuscript" +SERVICE_NAME = "org.ayatana.test" +INTERFACE_NAME = "org.ayatana.test.menuscript" +OBJECT_PATH = "/org/ayatana/test/menuscript" MENU_SERVICE_NAME= SERVICE_NAME + ".menu" MENU_OBJECT_PATH = OBJECT_PATH + "/menu" bus = None -- cgit v1.2.3