edit-dialog: Make date & time rows expandable
Add a human-readable label and move the widgets to the expandable section.
This commit is contained in:
@@ -207,22 +207,33 @@
|
||||
|
||||
<!-- Start -->
|
||||
<child>
|
||||
<object class="HdyActionRow">
|
||||
<object class="HdyExpanderRow">
|
||||
<property name="visible">True</property>
|
||||
<property name="title" translatable="yes">Starts</property>
|
||||
<property name="activatable-widget">start_date_selector</property>
|
||||
|
||||
<child type="action">
|
||||
<object class="GtkLabel" id="event_start_label">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="xalign">1.0</property>
|
||||
<property name="label" translatable="yes">Check this out!</property>
|
||||
</object>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="valign">center</property>
|
||||
<property name="hexpand">True</property>
|
||||
<property name="halign">center</property>
|
||||
<property name="margin">12</property>
|
||||
<property name="spacing">6</property>
|
||||
|
||||
<child>
|
||||
<object class="GcalDateSelector" id="start_date_selector">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="valign">center</property>
|
||||
<property name="input-hints">no-emoji</property>
|
||||
<signal name="notify::date" handler="sync_datetimes" object="GcalEditDialog" swapped="yes" />
|
||||
</object>
|
||||
@@ -244,22 +255,33 @@
|
||||
|
||||
<!-- End -->
|
||||
<child>
|
||||
<object class="HdyActionRow">
|
||||
<object class="HdyExpanderRow">
|
||||
<property name="visible">True</property>
|
||||
<property name="title" translatable="yes">Ends</property>
|
||||
<property name="activatable-widget">end_date_selector</property>
|
||||
|
||||
<child type="action">
|
||||
<object class="GtkLabel" id="event_end_label">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="xalign">1.0</property>
|
||||
<property name="label" translatable="yes">Check this out!</property>
|
||||
</object>
|
||||
</child>
|
||||
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="valign">center</property>
|
||||
<property name="hexpand">True</property>
|
||||
<property name="halign">center</property>
|
||||
<property name="margin">12</property>
|
||||
<property name="spacing">6</property>
|
||||
|
||||
<child>
|
||||
<object class="GcalDateSelector" id="end_date_selector">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="valign">center</property>
|
||||
<property name="input-hints">no-emoji</property>
|
||||
<signal name="notify::date" handler="sync_datetimes" object="GcalEditDialog" swapped="yes" />
|
||||
</object>
|
||||
|
||||
Reference in New Issue
Block a user