[gnome-documents] application: add methods to get the scale factor and GdkWindow
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] application: add methods to get the scale factor and GdkWindow
- Date: Fri, 25 Apr 2014 12:32:33 +0000 (UTC)
commit 3e863b0ccb97cdfe049fe5021f26f0f6d3427fda
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 083a6e5..43c6ebb 100644
--- a/src/application.js
+++ b/src/application.js
@@ -626,6 +626,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]