event-editor-dialog: Use HdyPreferencesGroup and HdyPreferencesPage
This helps simplifying the code a bit and standardizing it with the rest of GNOME.
This commit is contained in:
@@ -126,93 +126,69 @@
|
|||||||
<property name="spacing">0</property>
|
<property name="spacing">0</property>
|
||||||
<property name="border_width">0</property>
|
<property name="border_width">0</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkScrolledWindow" id="scrolled_window">
|
<object class="HdyPreferencesPage">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="vexpand">True</property>
|
||||||
<property name="hscrollbar_policy">never</property>
|
|
||||||
<property name="min_content_height">400</property>
|
|
||||||
<property name="propagate_natural_height">true</property>
|
|
||||||
<child>
|
|
||||||
<object class="GtkBox">
|
|
||||||
<property name="visible">True</property>
|
|
||||||
<property name="margin">18</property>
|
|
||||||
<property name="spacing">12</property>
|
|
||||||
<property name="orientation">vertical</property>
|
|
||||||
|
|
||||||
<!-- Summary -->
|
<!-- Summary -->
|
||||||
|
<child>
|
||||||
|
<object class="HdyPreferencesGroup">
|
||||||
|
<property name="visible">True</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GcalSummarySection" id="summary_section">
|
<object class="GcalSummarySection" id="summary_section">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="sensitive" bind-source="GcalEventEditorDialog" bind-property="writable" bind-flags="default" />
|
<property name="sensitive" bind-source="GcalEventEditorDialog" bind-property="writable" bind-flags="default" />
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
|
||||||
<child>
|
<!-- Schedule -->
|
||||||
<object class="GtkLabel">
|
<child>
|
||||||
<property name="visible">True</property>
|
<object class="HdyPreferencesGroup">
|
||||||
<property name="can_focus">False</property>
|
<property name="visible">True</property>
|
||||||
<property name="hexpand">True</property>
|
<property name="title" translatable="yes">Schedule</property>
|
||||||
<property name="margin-top">12</property>
|
|
||||||
<property name="xalign">0.0</property>
|
|
||||||
<property name="label" translatable="yes">Schedule</property>
|
|
||||||
<attributes>
|
|
||||||
<attribute name="weight" value="bold" />
|
|
||||||
</attributes>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<object class="GcalScheduleSection" id="schedule_section">
|
<object class="GcalScheduleSection" id="schedule_section">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="sensitive" bind-source="GcalEventEditorDialog" bind-property="writable" bind-flags="default" />
|
<property name="sensitive" bind-source="GcalEventEditorDialog" bind-property="writable" bind-flags="default" />
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
|
||||||
<child>
|
<!-- Reminders -->
|
||||||
<object class="GtkLabel">
|
<child>
|
||||||
<property name="visible">True</property>
|
<object class="HdyPreferencesGroup">
|
||||||
<property name="can_focus">False</property>
|
<property name="visible">True</property>
|
||||||
<property name="hexpand">True</property>
|
<property name="title" translatable="yes">Reminders</property>
|
||||||
<property name="margin-top">12</property>
|
|
||||||
<property name="xalign">0.0</property>
|
|
||||||
<property name="label" translatable="yes">Reminders</property>
|
|
||||||
<attributes>
|
|
||||||
<attribute name="weight" value="bold" />
|
|
||||||
</attributes>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
|
|
||||||
<!-- Reminders -->
|
|
||||||
<child>
|
<child>
|
||||||
<object class="GcalRemindersSection" id="reminders_section">
|
<object class="GcalRemindersSection" id="reminders_section">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="sensitive" bind-source="GcalEventEditorDialog" bind-property="writable" bind-flags="default" />
|
<property name="sensitive" bind-source="GcalEventEditorDialog" bind-property="writable" bind-flags="default" />
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
|
||||||
<!-- Notes -->
|
<!-- Notes -->
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel">
|
<object class="HdyPreferencesGroup">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">False</property>
|
<property name="title" translatable="yes">Notes</property>
|
||||||
<property name="hexpand">True</property>
|
|
||||||
<property name="margin-top">12</property>
|
|
||||||
<property name="xalign">0.0</property>
|
|
||||||
<property name="label" translatable="yes">Notes</property>
|
|
||||||
<attributes>
|
|
||||||
<attribute name="weight" value="bold" />
|
|
||||||
</attributes>
|
|
||||||
</object>
|
|
||||||
</child>
|
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<object class="GcalNotesSection" id="notes_section">
|
<object class="GcalNotesSection" id="notes_section">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="sensitive" bind-source="GcalEventEditorDialog" bind-property="writable" bind-flags="default" />
|
<property name="sensitive" bind-source="GcalEventEditorDialog" bind-property="writable" bind-flags="default" />
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
|
||||||
<!-- Delete Button -->
|
<!-- Delete Button -->
|
||||||
|
<child>
|
||||||
|
<object class="HdyPreferencesGroup">
|
||||||
|
<property name="visible">True</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkButton" id="delete_button">
|
<object class="GtkButton" id="delete_button">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
@@ -231,7 +207,6 @@
|
|||||||
</style>
|
</style>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user