[gnome-clocks/zbrown/world-clocks: 31/35] alarms: New dialog design
- From: Zander <zbrown src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks/zbrown/world-clocks: 31/35] alarms: New dialog design
- Date: Sun, 23 Feb 2020 18:17:50 +0000 (UTC)
commit e0525c3c200c79c3a42f54c79a6d708119c17f74
Author: Zander Brown <zbrown gnome org>
Date: Tue Aug 6 14:00:12 2019 +0100
alarms: New dialog design
data/ui/alarm.ui | 2 +-
data/ui/alarmsetupdialog.ui | 3 +++
src/alarm.vala | 8 ++++++++
3 files changed, 12 insertions(+), 1 deletion(-)
---
diff --git a/data/ui/alarm.ui b/data/ui/alarm.ui
index 58032d4..ec5ff5f 100644
--- a/data/ui/alarm.ui
+++ b/data/ui/alarm.ui
@@ -45,7 +45,7 @@
<property name="visible">True</property>
<property name="maximum-width">600</property>
<child>
- <object class="GtkListBox" id="listbox">
+ <object class="GtkBox">
<property name="visible">True</property>
<property name="margin">12</property>
<property name="valign">start</property>
diff --git a/data/ui/alarmsetupdialog.ui b/data/ui/alarmsetupdialog.ui
index 7e20c89..3872acd 100644
--- a/data/ui/alarmsetupdialog.ui
+++ b/data/ui/alarmsetupdialog.ui
@@ -183,6 +183,9 @@
</child>
</object>
</child>
+ <style>
+ <class name="frame"/>
+ </style>
</object>
</child>
</object>
diff --git a/src/alarm.vala b/src/alarm.vala
index c23283e..cba75db 100644
--- a/src/alarm.vala
+++ b/src/alarm.vala
@@ -572,6 +572,9 @@ private class SetupDialog : Hdy.Dialog {
delete_button.visible = alarm != null;
listbox.set_header_func((Gtk.ListBoxUpdateHeaderFunc) Hdy.list_box_separator_header);
+ delete_area.visible = alarm != null;
+ listbox.set_header_func((Gtk.ListBoxUpdateHeaderFunc) Hdy.list_box_separator_header);
+
other_alarms = new List<Item> ();
var n = all_alarms.get_n_items ();
for (int i = 0; i < n; i++) {
@@ -883,6 +886,11 @@ public class Face : Gtk.Stack, Clocks.Clock {
}
}
+ [GtkCallback]
+ private void create_alarm () {
+ activate_new();
+ }
+
private void load () {
alarms.deserialize (settings.get_value ("alarms"), Item.deserialize);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]