cui/source/dialogs/uipickerdlg.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit c535ce3724ffa3a25528286be953cdc899e67604
Author:     Heiko Tietze <tietze.he...@gmail.com>
AuthorDate: Fri Aug 22 15:50:17 2025 +0200
Commit:     Heiko Tietze <heiko.tie...@documentfoundation.org>
CommitDate: Sat Aug 23 09:13:03 2025 +0200

    Resolves tdf#167223 - Show correct label even with gtk3
    
    Change-Id: I7c9333169368e9d64793e5ab96e2a8f87dd08489
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190071
    Tested-by: Jenkins
    Reviewed-by: Heiko Tietze <heiko.tie...@documentfoundation.org>

diff --git a/cui/source/dialogs/uipickerdlg.cxx 
b/cui/source/dialogs/uipickerdlg.cxx
index 0b567ddc0891..78fd267c13ec 100644
--- a/cui/source/dialogs/uipickerdlg.cxx
+++ b/cui/source/dialogs/uipickerdlg.cxx
@@ -35,9 +35,10 @@ UIPickerDialog::UIPickerDialog(weld::Window* pParent)
     m_xOKBtn->set_visible(false);
     m_xCancelBtn->set_label(CuiResId(RID_CUISTR_HYPDLG_CLOSEBUT)); // "close"
 
+    // it's mandatory for gtk3 to set the icon before changing the label
+    m_xApplyBtn->set_from_icon_name("sw/res/sc20558.png");
     m_xApplyBtn->set_label(
         CuiResId(RID_CUISTR_UI_APPLY).replaceFirst("%MODULE", 
UITabPage::GetCurrentApp()));
-    m_xApplyBtn->set_from_icon_name("sw/res/sc20558.png");
     m_xResetBtn->set_label(CuiResId(RID_CUISTR_UI_APPLYALL));
     m_xApplyBtn->connect_clicked(LINK(this, UIPickerDialog, OnApplyClick));
     m_xResetBtn->connect_clicked(LINK(this, UIPickerDialog, OnApplyClick));

Reply via email to