vcl/unx/gtk3/fpicker/SalGtkFilePicker.cxx | 4 ++++ 1 file changed, 4 insertions(+)
New commits: commit 0614198babeeb48359c8363c1b098688ccb1406d Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Tue Dec 13 08:45:57 2022 +0000 Commit: Adolfo Jayme Barrientos <fit...@ubuntu.com> CommitDate: Tue Dec 13 11:22:23 2022 +0000 Related: tdf#150007 add destructive-action to file overwrite message dialog Change-Id: Ic522555a2d9d100a13f1d1dc35cfd6a57675447e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144024 Tested-by: Jenkins Reviewed-by: Adolfo Jayme Barrientos <fit...@ubuntu.com> diff --git a/vcl/unx/gtk3/fpicker/SalGtkFilePicker.cxx b/vcl/unx/gtk3/fpicker/SalGtkFilePicker.cxx index 183ea20a0a4a..cdb31b326c92 100644 --- a/vcl/unx/gtk3/fpicker/SalGtkFilePicker.cxx +++ b/vcl/unx/gtk3/fpicker/SalGtkFilePicker.cxx @@ -1006,6 +1006,10 @@ sal_Int16 SAL_CALL SalGtkFilePicker::execute() aMsg.getStr() ); + GtkWidget* pOkButton = gtk_dialog_get_widget_for_response(GTK_DIALOG(dlg), GTK_RESPONSE_YES); + GtkStyleContext* pStyleContext = gtk_widget_get_style_context(pOkButton); + gtk_style_context_add_class(pStyleContext, "destructive-action"); + sal_Int32 nSegmentCount = aFileObj.getSegmentCount(); if (nSegmentCount >= 2) {