diff options
author | Ricky Kresslein <rk@lakoliu.com> | 2022-04-20 11:03:29 +0300 |
---|---|---|
committer | Ricky Kresslein <rk@lakoliu.com> | 2022-04-20 11:22:07 +0300 |
commit | c93eb023478d004b59e93513626ec804dafd6b42 (patch) | |
tree | fc3bee454c2444c3b353b3b15c781502b58ca871 /src/application.rs | |
parent | 8c5a5c0ea6f2b23254cf1a201a22668510162c8d (diff) | |
download | Furtherance-c93eb023478d004b59e93513626ec804dafd6b42.tar.zst |
Add destructive-action class to all delete buttons (Issue #31)
Diffstat (limited to 'src/application.rs')
-rwxr-xr-x | src/application.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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::<gtk::Box>().unwrap(); let explanation = gtk::Label::new(Some(&gettext("This will delete ALL of your task history."))); |