aboutsummaryrefslogtreecommitdiff
path: root/examples/exportmenu.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/exportmenu.py')
-rwxr-xr-xexamples/exportmenu.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/exportmenu.py b/examples/exportmenu.py
index b7c37b1..ed996e2 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()
@@ -42,7 +42,7 @@ def bus_acquired(bus, name):
bar = Gio.MenuItem.new('bar', 'bar')
bar.set_attribute_value('x-defaultvalue',
GLib.Variant.new_string('Hello World!'))
- bar.set_attribute_value('x-canonical-currentvalue',
+ bar.set_attribute_value('x-ayatana-currentvalue',
GLib.Variant.new_string('awesome'))
bar.set_attribute_value('x-velocity', GLib.Variant.new_uint64(83374))
menu.append_item(bar)