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:
Matthias Clasen 2016-01-15 11:58:51 -05:00
parent fc804bba2d
commit 78162c5e88
2 changed files with 2 additions and 1 deletions

View File

@ -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");

View File

@ -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>