[seahorse/wip/nielsdg/delete-dialog-css] DeleteDialog: use "destructive-action" for Delete
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [seahorse/wip/nielsdg/delete-dialog-css] DeleteDialog: use "destructive-action" for Delete
- Date: Sat, 2 Mar 2019 14:17:37 +0000 (UTC)
commit a999b64895a40dc2944accf7bd53caba39608250
Author: Niels De Graef <nielsdegraef gmail com>
Date: Sat Mar 2 15:15:35 2019 +0100
DeleteDialog: use "destructive-action" for Delete
This will make the button turn red, which provides a warning to the
user that this action is a removal (which might be irreversible).
common/delete-dialog.vala | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/common/delete-dialog.vala b/common/delete-dialog.vala
index 5afa1237..013c81fd 100644
--- a/common/delete-dialog.vala
+++ b/common/delete-dialog.vala
@@ -89,6 +89,7 @@ public class DeleteDialog : Gtk.MessageDialog {
cancel.show();
var delet = new Gtk.Button.with_mnemonic(_("_Delete"));
+ delet.get_style_context().add_class("destructive-action");
add_action_widget(delet, Gtk.ResponseType.OK);
delet.show();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]