[gnome-builder] Reduce vertical space and remove window shadowing.
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] Reduce vertical space and remove window shadowing.
- Date: Wed, 1 Aug 2018 19:31:44 +0000 (UTC)
commit 39a59ce43c648fa628b3140e128a935d782ed70e
Author: rockon999 <noreply evanwelsh com>
Date: Tue Jul 31 08:47:42 2018 -0500
Reduce vertical space and remove window shadowing.
src/plugins/meson-templates/resources/src/main.js.tmpl | 8 ++++----
src/plugins/meson-templates/resources/src/window.js.tmpl | 16 +++++++---------
2 files changed, 11 insertions(+), 13 deletions(-)
---
diff --git a/src/plugins/meson-templates/resources/src/main.js.tmpl
b/src/plugins/meson-templates/resources/src/main.js.tmpl
index 547889f82..2e9c6f5dc 100644
--- a/src/plugins/meson-templates/resources/src/main.js.tmpl
+++ b/src/plugins/meson-templates/resources/src/main.js.tmpl
@@ -18,13 +18,13 @@ function main(argv) {
});
application.connect('activate', app => {
- let window = app.get_active_window();
+ let activeWindow = app.activeWindow;
- if(!window) {
- window = new {{PreFix}}Window(app);
+ if (!activeWindow) {
+ activeWindow = new {{PreFix}}Window(app);
}
- window.present();
+ activeWindow.present();
});
return application.run(argv);
diff --git a/src/plugins/meson-templates/resources/src/window.js.tmpl
b/src/plugins/meson-templates/resources/src/window.js.tmpl
index 8251ddf98..52e96cb41 100644
--- a/src/plugins/meson-templates/resources/src/window.js.tmpl
+++ b/src/plugins/meson-templates/resources/src/window.js.tmpl
@@ -4,14 +4,12 @@ const { GObject, Gtk } = imports.gi;
const Lang = imports.lang;
var {{PreFix}}Window = GObject.registerClass({
- GTypeName: '{{PreFix}}Window',
- Template: 'resource://{{appid_path}}/{{ui_file}}',
- InternalChildren: ['label']
- },
- class {{PreFix}}Window extends Gtk.ApplicationWindow {
- _init(application) {
- super._init({ application });
- }
+ GTypeName: '{{PreFix}}Window',
+ Template: 'resource://{{appid_path}}/{{ui_file}}',
+ InternalChildren: ['label']
+}, class {{PreFix}}Window extends Gtk.ApplicationWindow {
+ _init(application) {
+ super._init({ application });
}
-);
+});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]