Enforce minimum window width on Linux

This commit is contained in:
Dain Nilsson 2024-03-19 09:42:28 +01:00
parent 25eea079c6
commit 593c2276eb
No known key found for this signature in database
GPG Key ID: F04367096FBA95E8

View File

@ -47,7 +47,9 @@ static void my_application_activate(GApplication* application) {
gtk_window_set_title(window, "Yubico Authenticator");
}
gtk_window_set_default_size(window, 400, 720);
gtk_window_set_default_size(window, 320, 720);
// Sets the minimum window size, should match desktop/window_manager_helper/defaults.dart
gtk_widget_set_size_request(GTK_WIDGET(window), 300, 0);
gtk_widget_realize(GTK_WIDGET(window));
g_autoptr(FlDartProject) project = fl_dart_project_new();