forked from AuroraMiddleware/gtk
2336120010
If there is no secondary text, then the primary text is just a message,
not a title, and should not use title style.
This partially reverts 1e3ec7c1f9
. The
message dialog nown looks like it used to in GTK 3. However, it's still
styled only using a style class rather than using pango markup, as in
GTK 3.
Fixes #3509
52 lines
2.1 KiB
XML
52 lines
2.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface domain="gtk40">
|
|
<template class="GtkMessageDialog" parent="GtkDialog">
|
|
<property name="title"></property>
|
|
<property name="resizable">0</property>
|
|
<child internal-child="headerbar">
|
|
<object class="GtkHeaderBar" id="headerbar1">
|
|
<property name="show-title-buttons">0</property>
|
|
</object>
|
|
</child>
|
|
<child internal-child="content_area">
|
|
<object class="GtkBox" id="dialog-vbox1">
|
|
<property name="orientation">vertical</property>
|
|
<property name="spacing">20</property>
|
|
<child>
|
|
<object class="GtkBox" id="box">
|
|
<property name="margin-start">30</property>
|
|
<property name="margin-end">30</property>
|
|
<property name="spacing">30</property>
|
|
<child>
|
|
<object class="GtkBox" id="message_area">
|
|
<property name="orientation">vertical</property>
|
|
<property name="spacing">10</property>
|
|
<property name="hexpand">1</property>
|
|
<child>
|
|
<object class="GtkLabel" id="label">
|
|
<property name="halign">center</property>
|
|
<property name="valign">start</property>
|
|
<property name="wrap">1</property>
|
|
<property name="max-width-chars">60</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="secondary_label">
|
|
<property name="visible">0</property>
|
|
<property name="margin-bottom">2</property>
|
|
<property name="halign">center</property>
|
|
<property name="valign">start</property>
|
|
<property name="vexpand">1</property>
|
|
<property name="wrap">1</property>
|
|
<property name="max-width-chars">60</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</template>
|
|
</interface>
|