event-editor/summary: Port to GTK4

This commit is contained in:
Georges Basile Stavracas Neto
2022-02-11 09:18:38 -03:00
parent 333b8ecc2a
commit b5dc363a3b
6 changed files with 41 additions and 281 deletions
+6 -16
View File
@@ -1,34 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="GcalSummarySection" parent="GtkBin">
<property name="can_focus">False</property>
<template class="GcalSummarySection" parent="AdwBin">
<child>
<object class="GtkListBox">
<property name="visible">True</property>
<property name="selection-mode">none</property>
<style>
<class name="content" />
<class name="boxed-list" />
</style>
<!-- Summary -->
<child>
<object class="HdyActionRow">
<property name="visible">True</property>
<object class="AdwActionRow">
<property name="title" translatable="yes">Title</property>
<property name="activatable-widget">summary_entry</property>
<child>
<object class="GcalExpandableEntry" id="summary_entry">
<property name="visible">True</property>
<object class="GtkEntry" id="summary_entry">
<property name="hexpand">True</property>
<property name="halign">end</property>
<property name="valign">center</property>
<property name="can_focus">True</property>
<property name="width-chars">20</property>
<property name="max-width-chars">30</property>
<property name="propagate-natural-width">True</property>
</object>
</child>
@@ -37,22 +31,18 @@
<!-- Location -->
<child>
<object class="HdyActionRow">
<property name="visible">True</property>
<object class="AdwActionRow">
<property name="title" translatable="yes">Location</property>
<property name="activatable-widget">location_entry</property>
<child>
<object class="GcalExpandableEntry" id="location_entry">
<property name="visible">True</property>
<object class="GtkEntry" id="location_entry">
<property name="hexpand">True</property>
<property name="halign">end</property>
<property name="valign">center</property>
<property name="can_focus">True</property>
<property name="width-chars">20</property>
<property name="max-width-chars">30</property>
<property name="secondary_icon_name">find-location-symbolic</property>
<property name="propagate-natural-width">True</property>
</object>
</child>