[gtk+] message dialog: Prevent empty title from being shown
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] message dialog: Prevent empty title from being shown
- Date: Fri, 15 Jan 2016 16:59:44 +0000 (UTC)
commit 78162c5e881b23585d62588f885559d1d4bbc50b
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jan 15 11:58:51 2016 -0500
message dialog: Prevent empty title from being shown
We don't want to grow the titlebar by showing an empty label.
gtk/gtkmessagedialog.c | 1 +
gtk/ui/gtkmessagedialog.ui | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkmessagedialog.c b/gtk/gtkmessagedialog.c
index 0a56ace..a242afd 100644
--- a/gtk/gtkmessagedialog.c
+++ b/gtk/gtkmessagedialog.c
@@ -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");
diff --git a/gtk/ui/gtkmessagedialog.ui b/gtk/ui/gtkmessagedialog.ui
index 1f7cb37..8614543 100644
--- a/gtk/ui/gtkmessagedialog.ui
+++ b/gtk/ui/gtkmessagedialog.ui
@@ -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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]