From c93eb023478d004b59e93513626ec804dafd6b42 Mon Sep 17 00:00:00 2001 From: Ricky Kresslein Date: Wed, 20 Apr 2022 11:03:29 +0300 Subject: Add destructive-action class to all delete buttons (Issue #31) --- src/application.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/application.rs') diff --git a/src/application.rs b/src/application.rs index 4edb64d..9120446 100755 --- a/src/application.rs +++ b/src/application.rs @@ -179,6 +179,8 @@ impl FurtheranceApplication { (&gettext("Delete"), gtk::ResponseType::Accept) ]); dialog.set_default_response(gtk::ResponseType::Accept); + let delete_btn = dialog.widget_for_response(gtk::ResponseType::Accept).unwrap(); + delete_btn.add_css_class("destructive-action"); let message_area = dialog.message_area().downcast::().unwrap(); let explanation = gtk::Label::new(Some(&gettext("This will delete ALL of your task history."))); -- cgit 1.4.1