[gnome-code-assistance] [backends/js] Export dbus objects before requiring name
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-code-assistance] [backends/js] Export dbus objects before requiring name
- Date: Sun, 11 Jan 2015 13:56:46 +0000 (UTC)
commit a29f4f0313a9317a18458d1954e3bcc6f1b2b9a1
Author: Jesse van den Kieboom <jessevdk gmail com>
Date: Sun Jan 11 14:55:49 2015 +0100
[backends/js] Export dbus objects before requiring name
.../gnome/codeassistance/transport_dbus.js | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/backends/jscommon/gnome/codeassistance/transport_dbus.js
b/backends/jscommon/gnome/codeassistance/transport_dbus.js
index 1df9686..8a0ce7b 100644
--- a/backends/jscommon/gnome/codeassistance/transport_dbus.js
+++ b/backends/jscommon/gnome/codeassistance/transport_dbus.js
@@ -486,13 +486,12 @@ Transport.prototype = {
},
run: function() {
- GLib.idle_add(GLib.PRIORITY_DEFAULT, Lang.bind(this, function() {
- Gio.DBus.session.own_name('org.gnome.CodeAssist.v1.' + this.service.language,
- Gio.BusNameOwnerFlags.NONE,
- Lang.bind(this, this.onBusAcquired),
- Lang.bind(this, this.onNameAcquired),
- Lang.bind(this, this.onNameLost));
- }));
+ Gio.bus_own_name(Gio.BusType.SESSION,
+ 'org.gnome.CodeAssist.v1.' + this.service.language,
+ Gio.BusNameOwnerFlags.NONE,
+ Lang.bind(this, this.onBusAcquired),
+ Lang.bind(this, this.onNameAcquired),
+ Lang.bind(this, this.onNameLost));
this.main.run();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]