vcl/unx/gtk3/gtkframe.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit 62bfa279b7395f108bdc093784f81f412f4e107c
Author:     Vladislav Tarakanov <[email protected]>
AuthorDate: Thu Jun 22 14:58:06 2023 +0400
Commit:     Aron Budea <[email protected]>
CommitDate: Fri Feb 2 01:13:34 2024 +0100

    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]>
    (cherry picked from commit be53ee28d7435809e71e7e6b2ce929c87f07ba33)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162883
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    Reviewed-by: Aron Budea <[email protected]>

diff --git a/vcl/unx/gtk3/gtkframe.cxx b/vcl/unx/gtk3/gtkframe.cxx
index d26e3301ffb0..9e7c7c6ad254 100644
--- a/vcl/unx/gtk3/gtkframe.cxx
+++ b/vcl/unx/gtk3/gtkframe.cxx
@@ -974,6 +974,11 @@ void GtkSalFrame::InitCommon()
     m_pFixedContainer = GTK_FIXED(gtk_fixed_new());
     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)

Reply via email to