Skip to content

Commit

Permalink
3.0.2 - Fix window resize slowness for real
Browse files Browse the repository at this point in the history
  • Loading branch information
Lains committed Apr 26, 2021
1 parent 9601fb5 commit cfda87d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
10 changes: 0 additions & 10 deletions data/io.github.lainsce.DotMatrix.gschema.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
<schemalist>
<schema id="io.github.lainsce.DotMatrix" path="/io/github/lainsce/DotMatrix/">
<key name="window-w" type="i">
<default>500</default>
<summary>Window width</summary>
<description>The width of the window</description>
</key>
<key name="window-h" type="i">
<default>500</default>
<summary>Window height</summary>
<description>The height of the window</description>
</key>
</schema>
</schemalist>
8 changes: 1 addition & 7 deletions src/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,7 @@ namespace DotMatrix {
});

line_color_button.rgba = ui.line_color;
this.set_size_request (360, 240);
listen_to_changes ();
this.set_size_request (445, 530); // shows an uniformed grid of dots at first launch
this.show ();
this.present ();
}
Expand All @@ -214,11 +213,6 @@ namespace DotMatrix {
return false;
}

public void listen_to_changes () {
DotMatrix.Application.gsettings.bind ("window-w", this, "default-width", GLib.SettingsBindFlags.DEFAULT);
DotMatrix.Application.gsettings.bind ("window-h", this, "default-height", GLib.SettingsBindFlags.DEFAULT);
}

public void action_about () {
const string COPYRIGHT = "Copyright \xc2\xa9 2019-2021 Paulo \"Lains\" Galardi\n";

Expand Down

0 comments on commit cfda87d

Please sign in to comment.