[gnome-clocks] Disable "Add" button by default on new timer dialog
- From: Bilal Elmoussaoui <bilelmoussaoui src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks] Disable "Add" button by default on new timer dialog
- Date: Wed, 4 May 2022 07:29:50 +0000 (UTC)
commit fa4e9a0e67e6715b51fd5bc1f248323774cca016
Author: Anthony Aromin <menekoiskawaii gmail com>
Date: Tue Feb 22 23:04:29 2022 +0800
Disable "Add" button by default on new timer dialog
src/timer-setup-dialog.vala | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/src/timer-setup-dialog.vala b/src/timer-setup-dialog.vala
index 4b8ec713..7acc6dee 100644
--- a/src/timer-setup-dialog.vala
+++ b/src/timer-setup-dialog.vala
@@ -29,6 +29,7 @@ public class SetupDialog: Gtk.Dialog {
add_button (_("Cancel"), Gtk.ResponseType.CANCEL);
var create_button = add_button (_("Add"), Gtk.ResponseType.ACCEPT);
+ this.set_response_sensitive (Gtk.ResponseType.ACCEPT, false);
create_button.add_css_class ("suggested-action");
timer_setup = new Setup ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]