Hello
I'm trying to update some Gnome shell extensions to work with 3.8 version.
for gnome-shell 3.4, dbus is obsolete and replace with Gio.
Could you help me to update this part of code?
*--------------------------------------------------------**
**/* Zeitgeist D-Bus Interface */**
**
**const LOG_NAME = 'org.gnome.zeitgeist.Engine';**
**const LOG_PATH = '/org/gnome/zeitgeist/log/activity';**
**const LogIface = {**
** name: 'org.gnome.zeitgeist.Log',**
** methods: [**
** { name: 'GetEvents',**
** inSignature: 'au',**
** outSignature: 'a'+SIG_EVENT },**
** { name: 'FindRelatedUris',**
** inSignature: 'au',**
** outSignature: '(xx)a(' + SIG_EVENT + ')a'+ SIG_EVENT + 'uuu'
},**
** { name: 'FindEventIds',**
** inSignature: '(xx)a' + SIG_EVENT + 'uuu',**
** outSignature: 'au' },**
** { name: 'FindEvents',**
** inSignature: '(xx)a' + SIG_EVENT + 'uuu',**
** outSignature: 'a' + SIG_EVENT },**
** { name: 'InsertEvents',**
** inSignature: 'a' + SIG_EVENT,**
** outSignature: 'au' },**
** { name: 'DeleteEvents',**
** inSignature: 'au',**
** outSignature: '(xx)' },**
** { name: 'DeleteLog',**
** inSignature: '',**
** outSignature: '' },**
** { name: 'Quit',**
** inSignature: '',**
** outSignature: '' },**
** // FIXME: Add missing DBus Methods**
** // - InstallMonitor**
** // - RemoveMonitor**
** ],**
** properties: [**
** { name: 'Get',**
** inSignature: 'ss',**
** outSignature: 'v',**
** access: 'read' },**
** { name: 'Set',**
** inSignature: 'ssv',**
** outSignature: '',**
** access: 'read' },**
** { name: 'GetAll',**
** inSignature: 's',**
** outSignature: 'a{sv}',**
** access: 'read' },**
** ]**
**};**
**
**const Log = DBus.makeProxyClass(LogIface);**
**const _log = new Log(DBus.session, LOG_NAME, LOG_PATH);**
**
**--------------------------------------------------------*
I tried to replace the last 2 lines by:
*const Log = Gio.DBusProxy.makeProxyWrapper(LogIface);**
**const _log = new Log(Gio.DBus.session, LOG_NAME, LOG_PATH);*
with no success...
Thank you for your help.
LGDN.
||
_______________________________________________
gnome-shell-list mailing list
gnome-shell-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-shell-list