diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-11-17 13:13:59 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-11-17 13:13:59 +0100 |
commit | 8089cd5052ff617c05ef981b24881d4b89b5436c (patch) | |
tree | 9511d64514ca43f233539279f699c5b099e010d8 /examples/exportmenu.py | |
parent | 7f41ec3ad465feae093eab4d4ae54b8454a63018 (diff) | |
parent | 0d2c880a580c1ea9bb796e1116d18560fea0e4d6 (diff) | |
download | qmenumodel-8089cd5052ff617c05ef981b24881d4b89b5436c.tar.gz qmenumodel-8089cd5052ff617c05ef981b24881d4b89b5436c.tar.bz2 qmenumodel-8089cd5052ff617c05ef981b24881d4b89b5436c.zip |
Merge branch 'tari01-pr/rename-canonical-properties'
Attributes GH PR #7: https://github.com/AyatanaIndicators/qmenumodel/pull/7
Diffstat (limited to 'examples/exportmenu.py')
-rwxr-xr-x | examples/exportmenu.py | 8 |
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) |