diff options
author | Ricky Kresslein <rk@lakoliu.com> | 2022-04-20 10:19:03 +0300 |
---|---|---|
committer | Ricky Kresslein <rk@lakoliu.com> | 2022-04-20 11:22:07 +0300 |
commit | 8c5a5c0ea6f2b23254cf1a201a22668510162c8d (patch) | |
tree | 2893cb9f269aacf0af72e3af2466048bc9e862c5 /src | |
parent | 49007b3d4073b19c7b9ea352bc36f4ecca2de22a (diff) | |
download | Furtherance-8c5a5c0ea6f2b23254cf1a201a22668510162c8d.tar.zst |
Set default button in Delete All dialog
Diffstat (limited to 'src')
-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 2e57935..4edb64d 100755 --- a/src/application.rs +++ b/src/application.rs @@ -178,12 +178,14 @@ impl FurtheranceApplication { (&gettext("Cancel"), gtk::ResponseType::Reject), (&gettext("Delete"), gtk::ResponseType::Accept) ]); + dialog.set_default_response(gtk::ResponseType::Accept); 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."))); let instructions = gtk::Label::new(Some( &gettext("Type DELETE in the box below then click Delete to proceed."))); let delete_entry = gtk::Entry::new(); + delete_entry.set_activates_default(true); message_area.append(&explanation); message_area.append(&instructions); message_area.append(&delete_entry); |