[gnome-clocks/wip/exalm/papercuts: 5/6] alarm-setup-dialog: Use AdwEntryRow
- From: Bilal Elmoussaoui <bilelmoussaoui src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks/wip/exalm/papercuts: 5/6] alarm-setup-dialog: Use AdwEntryRow
- Date: Sun, 7 Aug 2022 09:49:56 +0000 (UTC)
commit 9ce57e5fcc0106558268d0ae73542453bb41516c
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Fri Jul 29 16:29:37 2022 +0400
alarm-setup-dialog: Use AdwEntryRow
data/ui/alarm-setup-dialog.ui | 12 ++----------
src/alarm-setup-dialog.vala | 2 +-
2 files changed, 3 insertions(+), 11 deletions(-)
---
diff --git a/data/ui/alarm-setup-dialog.ui b/data/ui/alarm-setup-dialog.ui
index 695cf575..a2942861 100644
--- a/data/ui/alarm-setup-dialog.ui
+++ b/data/ui/alarm-setup-dialog.ui
@@ -88,17 +88,9 @@
</object>
</child>
<child>
- <object class="AdwActionRow">
- <property name="activatable">False</property>
+ <object class="AdwEntryRow" id="name_entry">
<property name="title" translatable="yes">Name</property>
- <property name="subtitle" translatable="yes">Optional</property>
- <child>
- <object class="GtkEntry" id="name_entry">
- <property name="valign">center</property>
- <property name="hexpand">True</property>
- <signal name="changed" handler="entry_changed" object="ClocksAlarmSetupDialog"
swapped="no"/>
- </object>
- </child>
+ <signal name="changed" handler="entry_changed" object="ClocksAlarmSetupDialog"
swapped="no"/>
</object>
</child>
<child>
diff --git a/src/alarm-setup-dialog.vala b/src/alarm-setup-dialog.vala
index 30163f3e..5d122cde 100644
--- a/src/alarm-setup-dialog.vala
+++ b/src/alarm-setup-dialog.vala
@@ -82,7 +82,7 @@ private class SetupDialog : Gtk.Dialog {
[GtkChild]
private unowned Gtk.SpinButton m_spinbutton;
[GtkChild]
- private unowned Gtk.Entry name_entry;
+ private unowned Adw.EntryRow name_entry;
[GtkChild]
private unowned Adw.ComboRow snooze_duration;
[GtkChild]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]