Move popover separator into .ui

Allows reusing a custom separator in multiple popovers
This commit is contained in:
Rafał Dzięgiel
2021-08-30 17:35:06 +02:00
parent 347d90b1ad
commit 04122d46a7
2 changed files with 57 additions and 21 deletions

26
ui/popover-separator.ui Normal file
View File

@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="ClapperPopoverSeparator" parent="GtkBox">
<property name="orientation">horizontal</property>
<property name="hexpand">True</property>
<child>
<object class="GtkSeparator">
<property name="orientation">horizontal</property>
<property name="hexpand">True</property>
<property name="valign">center</property>
</object>
</child>
<child>
<object class="GtkLabel" id="middle_label">
<property name="halign">center</property>
</object>
</child>
<child>
<object class="GtkSeparator">
<property name="orientation">horizontal</property>
<property name="hexpand">True</property>
<property name="valign">center</property>
</object>
</child>
</template>
</interface>