vcl/unx/gtk3/gtkframe.cxx | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit be53ee28d7435809e71e7e6b2ce929c87f07ba33
Author: Vladislav Tarakanov <[email protected]>
AuthorDate: Thu Jun 22 14:58:06 2023 +0400
Commit: Caolán McNamara <[email protected]>
CommitDate: Thu Jun 22 18:35:24 2023 +0200
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 <[email protected]>
Reviewed-by: Caolán McNamara <[email protected]>
diff --git a/vcl/unx/gtk3/gtkframe.cxx b/vcl/unx/gtk3/gtkframe.cxx
index ea13a70ad0ca..516ada842a8c 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)