cui/source/options/certpath.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 6fd88230b543e98ff6981472cc075fd7bd2f6d9b
Author:     Moritz Duge <moritz.d...@allotropia.de>
AuthorDate: Thu Jul 18 02:12:43 2024 +0200
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Fri Jul 19 21:37:52 2024 +0200

    tdf#161909: Repair certdialog columns with VCLPLUGIN != gtk3
    
    Second column was broken since commit 
cd384e2d31f74223948ea70d8aa3c318d3ceeb50
    
    Change-Id: I4351ff2b3c2ca23884ab0f73906bfe120dc4f298
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170667
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/cui/source/options/certpath.cxx b/cui/source/options/certpath.cxx
index cbc5e8af2676..f3edc9c10501 100644
--- a/cui/source/options/certpath.cxx
+++ b/cui/source/options/certpath.cxx
@@ -32,6 +32,10 @@ CertPathDialog::CertPathDialog(weld::Window* pParent)
     
m_xCertPathList->set_size_request(m_xCertPathList->get_approximate_digit_width()
 * 70,
                                       m_xCertPathList->get_height_rows(6));
 
+    // needed for VLCPLUGIN != gtk3 (e.g. "gen")
+    int nControlWidth = m_xCertPathList->get_approximate_digit_width() * 40;
+    m_xCertPathList->set_column_fixed_widths({nControlWidth});
+
     m_xCertPathList->enable_toggle_buttons(weld::ColumnToggleType::Radio);
     m_xCertPathList->connect_toggled(LINK(this, CertPathDialog, 
CheckHdl_Impl));
 

Reply via email to