Skip to content

Commit

Permalink
Reinstate min dimensions as const
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Wootten authored and Jeremy Wootten committed Dec 6, 2024
1 parent eb9d6e8 commit 1a330f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/Application.vala
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
*/

public class Terminal.Application : Gtk.Application {
public const int MINIMUM_WIDTH = 600;
public const int MINIMUM_HEIGHT = 400;

private string commandline = "\0"; // used to temporary hold the argument to --commandline=
private uint dbus_id = 0;

Expand Down
2 changes: 1 addition & 1 deletion src/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ namespace Terminal {
Application.settings_sys.changed["monospace-font-name"].connect (update_font);
Application.settings.changed["font"].connect (update_font);

set_size_request (app.minimum_width, app.minimum_height);
set_size_request (Application.MINIMUM_WIDTH, Application.MINIMUM_HEIGHT);

show_all ();

Expand Down

0 comments on commit 1a330f8

Please sign in to comment.