[krb5-auth-dialog] prefs: Switch notifications page to AdwActionRow
- From: Guido Günther <guidog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [krb5-auth-dialog] prefs: Switch notifications page to AdwActionRow
- Date: Fri, 21 Oct 2022 08:55:39 +0000 (UTC)
commit bfd75b197b83671b568e37d8d652b0d68b737e42
Author: Guido Günther <agx sigxcpu org>
Date: Thu Oct 20 17:00:17 2022 +0200
prefs: Switch notifications page to AdwActionRow
src/resources/ui/ka-preferences.ui | 41 +++++++++++++-------------------------
1 file changed, 14 insertions(+), 27 deletions(-)
---
diff --git a/src/resources/ui/ka-preferences.ui b/src/resources/ui/ka-preferences.ui
index 304e149..64c92c2 100644
--- a/src/resources/ui/ka-preferences.ui
+++ b/src/resources/ui/ka-preferences.ui
@@ -151,33 +151,20 @@
<object class="AdwPreferencesGroup">
<property name="title" translatable="yes">Notifications</property>
<child>
- <object class="GtkBox">
- <property name="orientation">vertical</property>
- <property name="spacing">6</property>
- <child>
- <object class="GtkBox">
- <property name="spacing">6</property>
- <child>
- <object class="GtkLabel">
- <property name="label" translatable="yes" comments="Used in
combination: 'Warn x minutes before expiry'">Warn</property>
- </object>
- </child>
- <child>
- <object class="GtkSpinButton" id="prompt_mins_entry">
- <property name="tooltip-text" translatable="yes">Send notification
about ticket expiry that many minutes before it finally expires</property>
- <property name="adjustment">adjustment1</property>
- <property name="snap_to_ticks">True</property>
- <property name="numeric">True</property>
- </object>
- </child>
- </object>
- </child>
- <child>
- <object class="GtkLabel">
- <property name="label" translatable="yes" comments="Used in combination:
'Warn x minutes before expiry'">minutes before ticket expiry</property>
- </object>
- </child>
- </object>
+ <object class="AdwActionRow">
+ <property name="title" translatable="yes">Warn before ticket expiry</property>
+ <!-- Not marked as translatable: UI will change here so no need to bother
translators -->
+ <property name="subtitle" translatable="no">Show notification that many minutes
before ticket expiry</property>
+ <child>
+ <object class="GtkSpinButton" id="prompt_mins_entry">
+ <property name="tooltip-text" translatable="yes">Send notification about ticket
expiry that many minutes before it finally expires</property>
+ <property name="adjustment">adjustment1</property>
+ <property name="snap_to_ticks">True</property>
+ <property name="numeric">True</property>
+ <property name="valign">center</property>
+ </object>
+ </child>
+ </object>
</child>
</object>
</child>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]