tdf#155955 - small Calc window size after deleting the configuration file
Set the default window size for the case when the configuration file is missing
Change-Id: I58391590557678e927fcefd49a8f43511c08e3ba
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153430
Tested-by: Jenkins
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
diff --git a/vcl/unx/gtk3/gtkframe.cxx b/vcl/unx/gtk3/gtkframe.cxx
index ea13a70..516ada8 100644
--- a/vcl/unx/gtk3/gtkframe.cxx
+++ b/vcl/unx/gtk3/gtkframe.cxx
@@ -990,6 +990,11 @@ void GtkSalFrame::InitCommon()
#endif
m_pDrawingArea = GTK_DRAWING_AREA(gtk_drawing_area_new());
#endif
if (GTK_IS_WINDOW(m_pWindow))
{
Size aDefWindowSize = calcDefaultSize();
gtk_window_set_default_size(GTK_WINDOW(m_pWindow), aDefWindowSize.Width(), aDefWindowSize.Height());
}
gtk_widget_set_can_focus(GTK_WIDGET(m_pFixedContainer), true);
gtk_widget_set_size_request(GTK_WIDGET(m_pFixedContainer), 1, 1);
#if !GTK_CHECK_VERSION(4,0,0)