[sushi] application: Remove the Activate method, and the RemoteApplication proxy



commit 99170ffb85e8c62d6077d521d5ea263a1a32efd6
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Wed Jul 18 22:00:38 2012 -0400

    application: Remove the Activate method, and the RemoteApplication proxy
    
    They do nothing.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=680221

 src/js/ui/application.js |   26 +-------------------------
 1 files changed, 1 insertions(+), 25 deletions(-)
---
diff --git a/src/js/ui/application.js b/src/js/ui/application.js
index c8afc7e..a6f3b62 100644
--- a/src/js/ui/application.js
+++ b/src/js/ui/application.js
@@ -44,10 +44,7 @@ const _SUSHI_DBUS_PATH = '/org/gnome/NautilusPreviewer';
 const SushiIface = {
     name: 'org.gnome.NautilusPreviewer',
 
-    methods: [ { name: 'Activate',
-                 inSignature: '',
-                 outSignature: '' },
-               { name: 'ShowFile',
+    methods: [ { name: 'ShowFile',
                  inSignature: 'sib',
                  outSignature: '' },
                { name: 'Close',
@@ -58,21 +55,6 @@ const SushiIface = {
     properties: []
 };
 
-function RemoteApplication(args) {
-    this._init(args);
-}
-
-RemoteApplication.prototype = {
-    _init : function(args) {
-        DBus.session.proxifyObject(this,
-                                   SushiIface.name,
-                                   _SUSHI_DBUS_PATH);
-    }
-}
-
-DBus.proxifyPrototype(RemoteApplication.prototype,
-                      SushiIface);
-
 function Application(args) {
     this._init(args);
 }
@@ -93,9 +75,6 @@ Application.prototype = {
     },
 
     _onNameNotAcquired : function() {
-        let remoteApp = new RemoteApplication();
-        remoteApp.ActivateRemote();
-
         this.quit();
     },
 
@@ -115,9 +94,6 @@ Application.prototype = {
         settings.gtk_application_prefer_dark_theme = true;
     },
 
-    Activate : function() {
-    },
-
     Close: function() {
         this.quit();
     },



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]