1
0
mirror of https://gitlab.gnome.org/GNOME/evince synced 2024-07-05 00:59:07 +00:00
evince/shell/evince-message-area.ui
Pablo Correa Gómez d269d4ad4f shell: Derive EvMessageArea from GtkBin to simplify GTK4 move
GtkInfoBar is a final class in GTK4, which we cannot derive from.
For single-child widgets like EvMessageArea, libadwaita provides
AdwBin, which is the GTK4 equivalent to GtkBin. Deriving EvMessageArea
from GtkBin now simplifies the GTK4 move.

Relates #1864

Relates !373

Co-authored-by: Qiu Wenbo <qiuwenbo@kylinos.com.cn>
2022-10-28 00:43:27 +00:00

64 lines
2.8 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="EvMessageArea" parent="GtkBin">
<property name="visible">True</property>
<child>
<object class="GtkInfoBar" id="info_bar">
<property name="show-close-button">True</property>
<property name="visible">True</property>
<child internal-child="content_area">
<object class="GtkBox" id="main_box">
<property name="orientation">vertical</property>
<property name="spacing">12</property>
<property name="border-width">12</property>
<child>
<object class="GtkBox" id="hbox">
<property name="orientation">horizontal</property>
<property name="spacing">12</property>
<child>
<object class="GtkImage" id="image">
<property name="icon-size">6</property>
<property name="xalign">0.5</property>
<property name="yalign">0.0</property>
</object>
</child>
<child>
<object class="GtkBox" id="vbox">
<property name="orientation">vertical</property>
<property name="spacing">12</property>
<property name="hexpand">True</property>
<property name="vexpand">False</property>
<property name="halign">fill</property>
<child>
<object class="GtkLabel" id="label">
<property name="use-markup">True</property>
<property name="wrap">True</property>
<property name="selectable">True</property>
<property name="xalign">0.0</property>
<property name="yalign">0.5</property>
<property name="can-focus">True</property>
<property name="vexpand">True</property>
</object>
</child>
<child>
<object class="GtkLabel" id="secondary_label">
<property name="use-markup">True</property>
<property name="wrap">True</property>
<property name="selectable">True</property>
<property name="xalign">0.0</property>
<property name="yalign">0.5</property>
<property name="can-focus">True</property>
<property name="visible">False</property>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</child>
</template>
</interface>