[sushi] application: add a Close() DBus method to force quit



commit f99951f39d24351282dd965b0c19f779803936f3
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Aug 1 12:43:06 2011 +0200

    application: add a Close() DBus method to force quit

 src/js/ui/application.js |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/src/js/ui/application.js b/src/js/ui/application.js
index 71b3b4d..8cb9910 100644
--- a/src/js/ui/application.js
+++ b/src/js/ui/application.js
@@ -49,7 +49,10 @@ const SushiIface = {
                  outSignature: '' },
                { name: "ShowFile",
                  inSignature: 'sib',
-                 outSignature: '' } ],
+                 outSignature: '' },
+               { name: "Close",
+                 inSignature: '',
+                 outSignature: '' }],
 
     signals: [],
     properties: []
@@ -115,6 +118,10 @@ Application.prototype = {
     Activate : function() {
     },
 
+    Close: function() {
+        this.quit();
+    },
+
     ShowFile : function(uri, xid, closeIfAlreadyShown) {
 	let file = Gio.file_new_for_uri(uri);
 	if (closeIfAlreadyShown &&



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