summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmin Irgaliev <irgaliev01@mail.ru>2023-06-28 17:40:12 +0400
committerCaolán McNamara <caolan.mcnamara@collabora.com>2023-06-30 10:40:28 +0200
commit431dc963a0d18341c9b4869a2a64009b7ff7f699 (patch)
tree3552da508f848efae351c32a7b28b2149121a19e
parenta815a1dbc765df464a36f120ff32c2a834c1fc8f (diff)
tdf#125543 Fix window size in GTK3 plugin
When importing a csv file, the size of the main window Calc in windowed mode were not set because of erroneous check for widget visibility in gtk3. Now it isn't the visibility of the widget that is checked, but whether the checked widget is a window. A similar problem was observed in Base Change-Id: I48f882f407ba17c6c983c5b0939b9ff789ee59f6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153670 Tested-by: Jenkins Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com> Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
-rw-r--r--vcl/unx/gtk3/gtkframe.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/unx/gtk3/gtkframe.cxx b/vcl/unx/gtk3/gtkframe.cxx
index 516ada842a8c..d8d5760a16bb 100644
--- a/vcl/unx/gtk3/gtkframe.cxx
+++ b/vcl/unx/gtk3/gtkframe.cxx
@@ -841,8 +841,7 @@ void GtkSalFrame::window_resize(tools::Long nWidth, tools::Long nHeight)
}
gtk_window_set_default_size(GTK_WINDOW(m_pWindow), nWidth, nHeight);
#if !GTK_CHECK_VERSION(4,0,0)
- if (gtk_widget_get_visible(m_pWindow))
- gtk_window_resize(GTK_WINDOW(m_pWindow), nWidth, nHeight);
+ gtk_window_resize(GTK_WINDOW(m_pWindow), nWidth, nHeight);
#endif
}