[gnome-documents] application: add methods to get the scale factor and GdkWindow



commit 9d666e3147a050139929cce25fa457f41c116f28
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue Aug 6 15:37:00 2013 +0200

    application: add methods to get the scale factor and GdkWindow
    
    We'll use these to render HiDpi icons.

 src/application.js |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index 871b246..0a406f2 100644
--- a/src/application.js
+++ b/src/application.js
@@ -576,6 +576,14 @@ const Application = new Lang.Class({
 
         this._activationTimestamp = timestamp;
         this.activate();
+    },
+
+    getScaleFactor: function() {
+        return this._mainWindow.window.get_scale_factor();
+    },
+
+    getGdkWindow: function() {
+        return this._mainWindow.window.get_window();
     }
 });
 Utils.addJSSignalMethods(Application.prototype);


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