From 5865900f821558b013b96eb3f78a843007ee053c Mon Sep 17 00:00:00 2001 From: eudald gubert i roldan Date: Sun, 12 Jan 2020 22:51:58 +0100 Subject: [PATCH] fix issue gschema --- data/gschema.xml | 12 ++++++------ src/Application.vala | 4 +--- src/Window.vala | 3 ++- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/data/gschema.xml b/data/gschema.xml index 1109340..b63d77c 100644 --- a/data/gschema.xml +++ b/data/gschema.xml @@ -1,26 +1,26 @@ - + 360 horizontal position the saved horizontal position of our window - + 360 vertical position the saved vertical position of our window - - 600 + + 1160 window width the saved width of our window - - 400 + + 795 window height the saved height of our window diff --git a/src/Application.vala b/src/Application.vala index 82003b4..3ee5bc7 100644 --- a/src/Application.vala +++ b/src/Application.vala @@ -24,9 +24,7 @@ public class elements : Gtk.Application { add_action (quit_action); set_accels_for_action ("app.quit", {"q"}); quit_action.activate.connect (() => { - if (app_window != null) { - app_window.destroy (); - } + app_window.destroy (); }); } diff --git a/src/Window.vala b/src/Window.vala index 446707b..18fa1c6 100644 --- a/src/Window.vala +++ b/src/Window.vala @@ -4,7 +4,8 @@ public class MainWindow : Gtk.ApplicationWindow { public MainWindow (Gtk.Application application) { Object (application: application, - icon_name: "com.github.eudaldgr.elements"); + icon_name: "com.github.eudaldgr.elements", + title: _("elements")); } construct {