[gnote] Make delete button visually destructive
- From: Aurimas Černius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Make delete button visually destructive
- Date: Tue, 20 Sep 2022 19:23:56 +0000 (UTC)
commit 1b1a107b3894f658ef8c331249d4093a3e8d1fc2
Author: Aurimas Černius <aurisc4 gmail com>
Date: Tue Sep 20 22:11:47 2022 +0300
Make delete button visually destructive
Fixes https://gitlab.gnome.org/GNOME/gnote/-/issues/120
src/note.cpp | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/note.cpp b/src/note.cpp
index d04fff6b..798bbcff 100644
--- a/src/note.cpp
+++ b/src/note.cpp
@@ -76,6 +76,7 @@ namespace gnote {
button = manage(new Gtk::Button(_("_Delete"), true));
button->property_can_default().set_value(true);
+ button->get_style_context()->add_class("destructive-action");
button->show ();
dialog.add_action_widget(*button, 666);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]