Skip to content

Commit

Permalink
fix issue gschema
Browse files Browse the repository at this point in the history
  • Loading branch information
eudald gubert i roldan committed Jan 12, 2020
1 parent dbd2fbc commit 5865900
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
12 changes: 6 additions & 6 deletions data/gschema.xml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<schemalist>
<schema path="/com/github/eudaldgr/elements/" id="com.github.eudaldgr.elements">
<key name="pos_x" type="i">
<key name="pos-x" type="i">
<default>360</default>
<summary>horizontal position</summary>
<description>the saved horizontal position of our window</description>
</key>

<key name="pos_y" type="i">
<key name="pos-y" type="i">
<default>360</default>
<summary>vertical position</summary>
<description>the saved vertical position of our window</description>
</key>

<key name="window_width" type="i">
<default>600</default>
<key name="window-width" type="i">
<default>1160</default>
<summary>window width</summary>
<description>the saved width of our window</description>
</key>

<key name="window_height" type="i">
<default>400</default>
<key name="window-height" type="i">
<default>795</default>
<summary>window height</summary>
<description>the saved height of our window</description>
</key>
Expand Down
4 changes: 1 addition & 3 deletions src/Application.vala
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ public class elements : Gtk.Application {
add_action (quit_action);
set_accels_for_action ("app.quit", {"<Control>q"});
quit_action.activate.connect (() => {
if (app_window != null) {
app_window.destroy ();
}
app_window.destroy ();
});
}

Expand Down
3 changes: 2 additions & 1 deletion src/Window.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5865900

Please sign in to comment.