mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-15 23:00:08 +00:00
message dialog: Prevent empty title from being shown
We don't want to grow the titlebar by showing an empty label.
This commit is contained in:
parent
fc804bba2d
commit
78162c5e88
@ -442,6 +442,7 @@ gtk_message_dialog_constructed (GObject *object)
|
||||
gtk_widget_show (box);
|
||||
gtk_widget_set_size_request (box, -1, 16);
|
||||
label = gtk_label_new ("");
|
||||
gtk_widget_set_no_show_all (label, TRUE);
|
||||
gtk_widget_set_margin_top (label, 6);
|
||||
gtk_widget_set_margin_bottom (label, 6);
|
||||
gtk_style_context_add_class (gtk_widget_get_style_context (label), "title");
|
||||
|
@ -2,7 +2,7 @@
|
||||
<interface domain="gtk30">
|
||||
<!-- interface-requires gtk+ 3.10 -->
|
||||
<template class="GtkMessageDialog" parent="GtkDialog">
|
||||
<property name="title"> </property>
|
||||
<property name="title"></property>
|
||||
<property name="resizable">0</property>
|
||||
<property name="type_hint">dialog</property>
|
||||
<property name="skip_taskbar_hint">1</property>
|
||||
|
Loading…
Reference in New Issue
Block a user