summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-12-13 08:45:57 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-12-13 10:31:27 +0000
commitb6832a939623ad3b0ad61016344a432f47d1e97d (patch)
tree59beca91c9238b522a4fc08689fefa0186a7e8ad /vcl
parent1ec7f8b5b21bf74f684095b97a2b9900a71a0979 (diff)
Related: tdf#150007 add destructive-action to file overwrite message dialog
Change-Id: Ic522555a2d9d100a13f1d1dc35cfd6a57675447e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144038 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/unx/gtk3/fpicker/SalGtkFilePicker.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/unx/gtk3/fpicker/SalGtkFilePicker.cxx b/vcl/unx/gtk3/fpicker/SalGtkFilePicker.cxx
index 7a74cdaf937a..4068d57f2fa1 100644
--- a/vcl/unx/gtk3/fpicker/SalGtkFilePicker.cxx
+++ b/vcl/unx/gtk3/fpicker/SalGtkFilePicker.cxx
@@ -1007,6 +1007,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)
{