[california] Fix default widget issues in Show Event and Create/Update Event dlgs
- From: Jim Nelson <jnelson src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [california] Fix default widget issues in Show Event and Create/Update Event dlgs
- Date: Wed, 23 Jul 2014 01:06:38 +0000 (UTC)
commit 8614f2e6c6a6f204010c81550f10bfe009fc7cd0
Author: Jim Nelson <jim yorba org>
Date: Tue Jul 22 18:05:30 2014 -0700
Fix default widget issues in Show Event and Create/Update Event dlgs
src/host/host-create-update-event.vala | 2 ++
src/host/host-show-event.vala | 3 +++
2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/host/host-create-update-event.vala b/src/host/host-create-update-event.vala
index 3f5b9b0..a3e9206 100644
--- a/src/host/host-create-update-event.vala
+++ b/src/host/host-create-update-event.vala
@@ -115,6 +115,8 @@ public class CreateUpdateEvent : Gtk.Grid, Toolkit.Card {
calendar_model.add(calendar_source);
}
+ accept_button.can_default = true;
+ accept_button.has_default = true;
accept_button.get_style_context().add_class("suggested-action");
accept_button.clicked.connect(on_accept_button_clicked);
diff --git a/src/host/host-show-event.vala b/src/host/host-show-event.vala
index abf1fd7..ee8998b 100644
--- a/src/host/host-show-event.vala
+++ b/src/host/host-show-event.vala
@@ -63,6 +63,9 @@ public class ShowEvent : Gtk.Grid, Toolkit.Card {
Calendar.System.instance.is_24hr_changed.connect(build_display);
Calendar.System.instance.today_changed.connect(build_display);
+ close_button.can_default = true;
+ close_button.has_default = true;
+
remove_button.get_style_context().add_class("destructive-action");
remove_this_button.get_style_context().add_class("destructive-action");
remove_this_future_button.get_style_context().add_class("destructive-action");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]