[sushi] application: immediately export the NautilusPreviewer implementation
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sushi] application: immediately export the NautilusPreviewer implementation
- Date: Sat, 22 Sep 2012 15:45:23 +0000 (UTC)
commit 92434adc402d91f47fcdc2603a0dedf1f328fc1d
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Thu Sep 20 16:54:14 2012 -0400
application: immediately export the NautilusPreviewer implementation
Exporting it in startup is too late - we will error on the first call to
ShowFile, requiring two activations to actually display the window.
https://bugzilla.gnome.org/show_bug.cgi?id=684460
src/js/ui/application.js | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/js/ui/application.js b/src/js/ui/application.js
index 94024df..771673f 100644
--- a/src/js/ui/application.js
+++ b/src/js/ui/application.js
@@ -57,12 +57,13 @@ const Application = new Lang.Class({
_init : function(args) {
this.parent({ application_id: SUSHI_DBUS_NAME });
+
+ this._dbusImpl = Gio.DBusExportedObject.wrapJSObject(SushiIface, this);
+ this._dbusImpl.export(Gio.DBus.session, SUSHI_DBUS_PATH);
},
vfunc_startup : function() {
this.parent();
- this._dbusImpl = Gio.DBusExportedObject.wrapJSObject(SushiIface, this);
- this._dbusImpl.export(Gio.DBus.session, SUSHI_DBUS_PATH);
this._defineStyleAndThemes();
this._createMainWindow();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]